From: Cecil Westerhof <cldwesterhof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Can this table formula be done more efficient
Date: Mon, 9 Jun 2014 09:04:16 +0200 [thread overview]
Message-ID: <CAG-LmmA-DtcJxJPDQg5Etd5nb+TJfGAccin2dArpcJq1W0dzsA@mail.gmail.com> (raw)
In-Reply-To: <87tx7vk482.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
2014-06-08 13:53 GMT+02:00 Nick Dokos <ndokos@gmail.com>:
> Cecil Westerhof <cldwesterhof@gmail.com> writes:
>
> > 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?
> >
>
> --8<---------------cut here---------------start------------->8---
> #+TBLFM: @<<$4..@>>$4 = $2 - $3 :: @>$2..$4=vsum(@<<$0..@>>$0)
> --8<---------------cut here---------------end--------------->8---
>
Works like a charm. Thanks.
>
> See
>
> (info "(org) References")
>
I should study that more diligently.
--
Cecil Westerhof
[-- Attachment #2: Type: text/html, Size: 1899 bytes --]
prev parent reply other threads:[~2014-06-09 7:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-08 10:19 Can this table formula be done more efficient Cecil Westerhof
2014-06-08 11:53 ` Nick Dokos
2014-06-08 13:07 ` Eric Schulte
2014-06-09 7:06 ` Cecil Westerhof
2014-06-09 7:04 ` Cecil Westerhof [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG-LmmA-DtcJxJPDQg5Etd5nb+TJfGAccin2dArpcJq1W0dzsA@mail.gmail.com \
--to=cldwesterhof@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.