From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Table summation
Date: Tue, 1 Apr 2008 11:05:01 -0500 [thread overview]
Message-ID: <20080401160501.GE2015@odin.demosthenes.org> (raw)
Speaking of tables today, I thought I'd post a question that I haven't
found a simple answer for.
How do you sum a table reliably? (ie: tolerant of editing)
This table requires the use of org-table-insert-row (etc...) in order
to keep the formula correct.
| Header |
|--------|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
|--------|
| 15 |
#+TBLFM: @7$1=vsum(@I..@II)
How can I do something like this, where the last cell is automatically
the sum of the column, and not an absolute reference that must be maintained?
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
|--------|
| 15 |
#+TBLFM: LAST=vsum($0..$0)
Thanks.
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
next reply other threads:[~2008-04-01 16:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 16:05 Russell Adams [this message]
2008-04-01 16:19 ` Table summation Russell Adams
2008-04-01 21:58 ` Eddward DeVilla
2008-04-02 1:19 ` Russell Adams
2008-04-08 6:22 ` Carsten Dominik
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=20080401160501.GE2015@odin.demosthenes.org \
--to=rladams@adamsinfoserv.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.