emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Table summation
@ 2008-04-01 16:05 Russell Adams
  2008-04-01 16:19 ` Russell Adams
  2008-04-08  6:22 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Russell Adams @ 2008-04-01 16:05 UTC (permalink / raw)
  To: Org Mode List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-08  7:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-01 16:05 Table summation Russell Adams
2008-04-01 16:19 ` Russell Adams
2008-04-01 21:58   ` Eddward DeVilla
2008-04-02  1:19     ` Russell Adams
2008-04-08  6:22 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).