From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: wrap long table formula Date: Tue, 01 Nov 2011 10:40:56 -0400 Message-ID: <8957.1320158456@alphaville.dokosmarshall.org> References: <871utt45w4.fsf@bye.fritz.box> <479AAB0D-5CA9-48F8-9CCC-A9DAA75C841C@gmail.com> <87wrbl2qeo.fsf@bye.fritz.box> <874nyojopl.fsf@bye.fritz.box> <4EAF9FCD.6070605@christianmoe.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLFeI-0002t3-4P for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 10:49:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLFeB-0001gz-Vz for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 10:49:10 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:13337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLFeB-0001gS-Qq for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 10:49:03 -0400 In-Reply-To: Message from Christian Moe of "Tue, 01 Nov 2011 08:29:17 BST." <4EAF9FCD.6070605@christianmoe.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: henry atting , nicholas.dokos@hp.com, emacs-orgmode@gnu.org, Carsten Dominik Christian Moe wrote: > On 11/1/11 8:17 AM, henry atting wrote: > > > I was thinking of a column formula but have no clue if it's > > possible and if so, how. > > > > In this short example the formula's length is no problem but for a > > table with 12 rows or more it certainly is; -- and currently it's the > > only way I can realize it. > > > > | | | > > |---+---| > > | 2 | | > > | 6 | 4 | > > | 7 | 5 | > > #+TBLFM: @3$2=vmean(@2$1..@3$1::@4$2=vmean(@2$1..@4$1 > > > | | | > |---+-----| > | 2 | | > | 6 | 4 | > | 7 | 5 | > | 3 | 4.5 | > | 9 | 5.4 | > #+TBLFM: @3$2..@>$2=vmean(@2$1..@0$1) > Another common way to deal with an exceptional cell is to use a field formula for the exceptional cell and a column formula for the rest: field formulas take precedence: #+TBLFM: @2$2 = string("") :: $2 = vmean(@2$1..@0$2) Nick