From: Michael Brand <michael.ch.brand@gmail.com>
To: Antony <lisp.linux@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: spreadsheet sum a column
Date: Thu, 2 Dec 2010 17:13:56 +0100 [thread overview]
Message-ID: <AANLkTiko=hCj1AAryCGYFA5Wi_CVy4wjP9_2t3T4Ny+a@mail.gmail.com> (raw)
In-Reply-To: <id7sfa$cou$1@dough.gmane.org>
On Thu, Dec 2, 2010 at 11:29, Antony <lisp.linux@gmail.com> wrote:
> I have table like
>
> | foo | amount |
> |-----------+--------|
> | | <5> |
> | hello | 100 |
> | again | 200 |
> | once more | 300 |
> | | |
> | | |
>
> I need to be able sum those numbers and say 600 somewhere (I am ok if it
> does in the same table or outside of it)
>
> When I add a new row, say
>
> | foo | amount |
> |-----------+--------|
> | | <5> |
> | hello | 100 |
> | again | 200 |
> | once more | 300 |
> | qqq | 100 |
> | | |
>
> Now I need to be able to change the 600 to 700 (by pressing C-c C-c
> somewhere)
>
> I am finding it hard to figure out how to do this.
Press C-c C-c on the TBLFM line after every change:
| foo | amount |
|-----------+--------|
| hello | 100 |
| again | 200 |
| once more | 300 |
|-----------+--------|
| | 600 |
#+TBLFM: $LR2 = vsum(@I$2..@-1$2)
I don't think `<5>' is of any use in this case.
Michael
next prev parent reply other threads:[~2010-12-02 16:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 10:29 spreadsheet sum a column Antony
2010-12-02 16:13 ` Michael Brand [this message]
2010-12-02 16:59 ` Detlef Steuer
2010-12-03 13:10 ` Antony
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='AANLkTiko=hCj1AAryCGYFA5Wi_CVy4wjP9_2t3T4Ny+a@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lisp.linux@gmail.com \
/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).