all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Detlef Steuer <detlef.steuer@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: spreadsheet sum a column
Date: Thu, 2 Dec 2010 17:59:59 +0100	[thread overview]
Message-ID: <20101202175959.31374096@rechenknecht.site> (raw)
In-Reply-To: id7sfa$cou$1@dough.gmane.org

On Thu, 02 Dec 2010 02:29:56 -0800
Antony <lisp.linux@gmail.com> wrote:

> Hi
> 
> I have a simple need (from a requirement description point).
> 
> 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)

| foo       | amount |
|-----------+--------|
|           |        |
| hello     |    100 |
| again     |    200 |
| once more |    300 |
| qqq       |    100 |
|           |    700 |
#+TBLFM: @7$2=vsum(@3..@-1)

You find information about that in the manual under "spreadsheet".

Hth
Detlef


> 
> I am finding it hard to figure out how to do this.
> 
> -Antony
> 
> 
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

  parent reply	other threads:[~2010-12-02 16:58 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
2010-12-02 16:59 ` Detlef Steuer [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101202175959.31374096@rechenknecht.site \
    --to=detlef.steuer@gmx.de \
    --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.