From: RC <recif@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: Question on spreadsheet formula
Date: Sun, 27 Sep 2009 19:35:07 +0000 (UTC) [thread overview]
Message-ID: <loom.20090927T210029-625@post.gmane.org> (raw)
In-Reply-To: 20090926053409.0f65c53b.andy13@gmx.net
Thank you benny and Andreas for your solutions to my question.
I did notice a couple of things I did not expect and would appreciate if someone
could tell me what I am missing.
In the following table, if I change the value in @2$4, I have to run C-c C-c
twice for the change to be propagated. Turning on formula debugging, the first
time the first formula gets executed starting only from @3$4 until the end of
the table, then the second substitution formula is executed for cell @2#4. This
happens even if cells @2$2 and @2$3 have values in them. Does the presence of
the substitution formula later in the #+TBLFM line, cause execution of the first
formula to start only from the succeeding row?
|-----+------+------+-------|
| No. | P | E | B |
|-----+------+------+-------|
| | | | 300 |
| 1 | 5000 | 2000 | 3200 |
| 2 | 7000 | 1000 | 9200 |
| 3 | 5000 | 1000 | 13200 |
#+TBLFM: $4=@-1$4+$2-$3::@2$4=300
For the table above, or the following, having a ! in the first column of the
first row (which I thought was a way to label columns) causes the calculation
formulas not to be executed.
|---+-----+------+------+-------|
| ! | No. | P | E | B |
|---+-----+------+------+-------|
| | 1 | 5000 | 2000 | 3000 |
| | 2 | 7000 | 1000 | 9000 |
| | 3 | 5000 | 1000 | 13000 |
| | 4 | 5000 | 2000 | 16000 |
#+TBLFM: $5=vsum(@-I$3..@0$3)-vsum(@-I$4..@0$4)
Thanks,
RC
next prev parent reply other threads:[~2009-09-27 19:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-26 3:08 Question on spreadsheet formula RC
2009-09-26 3:14 ` Benjamin Andresen
2009-09-26 3:34 ` Andreas Burtzlaff
2009-09-27 19:35 ` RC [this message]
2009-09-28 6:51 ` Carsten Dominik
2009-09-28 13:56 ` Bernt Hansen
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=loom.20090927T210029-625@post.gmane.org \
--to=recif@yahoo.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 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.