From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: tables: sum columns only in certain ranges of rows Date: Mon, 04 Jul 2016 19:12:14 +0000 Message-ID: <87oa6db4kx.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK9IF-0006ln-2I for emacs-orgmode@gnu.org; Mon, 04 Jul 2016 15:12:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK9IA-0002PJ-QW for emacs-orgmode@gnu.org; Mon, 04 Jul 2016 15:12:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:50220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK9IA-0002Oo-Jo for emacs-orgmode@gnu.org; Mon, 04 Jul 2016 15:12:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bK9I5-00080H-NL for emacs-orgmode@gnu.org; Mon, 04 Jul 2016 21:12:21 +0200 Received: from 229.red-88-22-82.staticip.rima-tde.net ([88.22.82.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jul 2016 21:12:21 +0200 Received: from oub by 229.red-88-22-82.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jul 2016 21:12:21 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi Is the a simple way to tell a org-table that it adds say two columns in a certain way $4=0.2*($2+$3) but only for certain values of the row. I hoped that a hline would help but it does not the row containing Taylor is treated in the same way as row 1 to 4. | Row | Name | E1 | E2 | Res | |-----+--------+----+----+-----| | 1 | Smith | 1 | 2 | 0.6 | | 2 | Miller | 2 | 1 | 0.6 | | 3 | Meyer | 1 | 4 | 1. | | 4 | Wilson | 2 | 1 | 0.6 | |-----+--------+----+----+-----| | 5 | Taylor | 1 | 2 | 0.6 | |-----+--------+----+----+-----| #+TBLFM: $1=@#-1::$5=0.2*($3+$4) So what is the most comfortable to obtain what I want? Thanks Uwe Brauer