From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Can this table formula be done more efficient Date: Sun, 8 Jun 2014 12:19:15 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc96c83bec5604fb506d1f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtaC5-0008UF-JH for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 06:19:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtaC4-0001qq-8m for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 06:19:17 -0400 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:57317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtaC4-0001qa-5d for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 06:19:16 -0400 Received: by mail-qg0-f54.google.com with SMTP id q108so7492693qgd.41 for ; Sun, 08 Jun 2014 03:19:15 -0700 (PDT) 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: emacs-orgmode@gnu.org --047d7bdc96c83bec5604fb506d1f Content-Type: text/plain; charset=UTF-8 At the moment I am using the following formula: #+TBLFM: @<<$4..@>>$4 = $2 - $3 :: @>$2=vsum(@<<$2..@>>$2) :: @>$3=vsum(@<<$3..@>>$3) :: @>$4=vsum(@<<$4..@>>$4) This does what I want, but there are two things that could be improved. - The second, third and fourth formula do exactly the same, only on different columns. Could this be rewritten to one formula? - The line becomes long and hard to evaluate for a person. Is there a possibility to put the formulas below each-other? -- Cecil Westerhof --047d7bdc96c83bec5604fb506d1f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
At the moment I am using the following formula:
=C2=A0=C2= =A0=C2=A0 #+TBLFM: @<<$4..@>>$4 =3D $2 - $3 :: @>$2=3Dvsum(@= <<$2..@>>$2) :: @>$3=3Dvsum(@<<$3..@>>$3) :: @&g= t;$4=3Dvsum(@<<$4..@>>$4)

This does what I want, but there are two things that could be impro= ved.

- The second, third and fourth formula do exactly the same, only on dif= ferent columns. Could this be rewritten to one formula?

- The li= ne becomes long and hard to evaluate for a person. Is there a possibility t= o put the formulas below each-other?

--
Cecil Westerhof
--047d7bdc96c83bec5604fb506d1f--