From: "Eddward DeVilla" <eddward@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Table summation
Date: Tue, 1 Apr 2008 16:58:51 -0500 [thread overview]
Message-ID: <b71b18520804011458m731709c5m7b16b79005c7ac3a@mail.gmail.com> (raw)
In-Reply-To: <20080401161935.GF2015@odin.demosthenes.org>
I'm not sure how tolerant you mean. Would it help to use @-I and @-II
Edd
On Tue, Apr 1, 2008 at 11:19 AM, Russell Adams
<RLAdams@adamsinfoserv.com> wrote:
> On Tue, Apr 01, 2008 at 11:05:01AM -0500, Russell Adams wrote:
> > 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.
>
> In reply to myself, perhaps a way to refer to last cell would work.
>
> | 15 |
>
> |--------|
> | 1 |
> | 2 |
> | 3 |
> | 4 |
> | 5 |
> #+TBLFM: @1$1=vsum($I..$LAST)
>
> That way using tab on the value "5" would add a new line and not break
> the formula reference.
>
>
>
> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
next prev parent reply other threads:[~2008-04-02 0:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 16:05 Table summation Russell Adams
2008-04-01 16:19 ` Russell Adams
2008-04-01 21:58 ` Eddward DeVilla [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b71b18520804011458m731709c5m7b16b79005c7ac3a@mail.gmail.com \
--to=eddward@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 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).