From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atting Subject: Re: wrap long table formula Date: Tue, 01 Nov 2011 19:53:57 +0100 Message-ID: <87wrbjptbu.fsf@bye.fritz.box> 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> <8957.1320158456@alphaville.dokosmarshall.org> Reply-To: henry atting Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLJTV-0003Bn-18 for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 14:54:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLJTS-0007aK-Dv for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 14:54:16 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:49431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLJTR-0007ZA-Th for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 14:54:14 -0400 In-Reply-To: <8957.1320158456@alphaville.dokosmarshall.org> (Nick Dokos's message of "Tue, 01 Nov 2011 10:40:56 -0400") 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: nicholas.dokos@hp.com Cc: henry atting , emacs-orgmode@gnu.org, mail@christianmoe.com, Carsten Dominik Nick Dokos writes: > 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 Thanks again to all, both solutions are working fine; I could get rid of my tapeworm formula. Is there a place where these advanced features are explained more thoroughly? henry -- http://literaturlatenight.de