From: Bernt Hansen <bernt@norang.ca>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: table: actualise columns with formulas. (C-num C-c=)
Date: Mon, 14 Jun 2010 12:12:34 -0400 [thread overview]
Message-ID: <87d3vt385p.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <878w6h7u7k.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon\, 14 Jun 2010 13\:02\:39 +0200")
Uwe Brauer <oub@mat.ucm.es> writes:
> Hello
>
> Programs like OO calc allow me to actualise automatically
> all rows of a column containing a formula.
>
> Like:
>
> Res1| Res2| Total
> 3 | 4 | =$1+$2
> 4 | 5 |
> 4 | 5 |
> 4 | 6 |
> 4 | 7 |
> 4 | 8 |
> 4 | 9 |
If you prefix the first column of the table so that it is a valid
org-mode table like this:
|Res1| Res2| Total
|3 | 4 | =$1+$2
|4 | 5 |
|4 | 5 |
|4 | 6 |
|4 | 7 |
|4 | 8 |
|4 | 9 |
Then you can just hit C-u C-u C-c C-c on the formula line and it moves
to the bottom and updates the entire table giving you this:
| Res1 | Res2 | Res1 + Res2 |
| 3 | 4 | 7 |
| 4 | 5 | 9 |
| 4 | 5 | 9 |
| 4 | 6 | 10 |
| 4 | 7 | 11 |
| 4 | 8 | 12 |
| 4 | 9 | 13 |
#+TBLFM: $3=$1+$2
HTH,
Bernt
>
> Now the only thing I have to do is copy and paste it into
> the rows below that formula in the same column.
> --------------------------
> The closest thing I know in org mode is to use
> C-6 C-c =
> but of course I have to count the numbers of rows in
> advance, so the question is:
>
> Could C-c = also act on a marked column, so that I don't
> have to specify the numbers of rows?
>
> thanks
>
> Uwe Brauer
>
>
> _______________________________________________
> 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
prev parent reply other threads:[~2010-06-14 16:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 11:02 table: actualise columns with formulas. (C-num C-c=) Uwe Brauer
2010-06-14 12:33 ` Giovanni Ridolfi
2010-06-14 12:45 ` Giovanni Ridolfi
2010-06-14 13:50 ` Uwe Brauer
2010-06-14 15:25 ` Nick Dokos
2010-06-14 16:12 ` Bernt Hansen [this message]
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=87d3vt385p.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/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).