emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Spreadsheet question
@ 2008-12-03 21:34 Tassilo Horn
  2008-12-04  8:06 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2008-12-03 21:34 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I have this table:

| header |
|--------|
|      1 |
|      1 |
|--------|
|      0 |
#+TBLFM: @4$1=vsum(@2..@-1)

The cell containing 0 should sum up all values of the column's rows
above.  But C-u C-c C-c gives 2, then 4, then 6, then 8...

Reading the docs I found out that @-1 won't cross hlines, so now I use
-I instead which works.  But still I don't understand the @-1 behavior.
Even if knowing that it doesn't cross hlines I'd expect it to calculate
the correct value or at least error because there's no row above @4
before the next hline.  So why is (equal @-1 @0) here?

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-05 12:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-03 21:34 Spreadsheet question Tassilo Horn
2008-12-04  8:06 ` Carsten Dominik
2008-12-04 10:49   ` Tassilo Horn
2008-12-05  7:26     ` Carsten Dominik
2008-12-05 12:23       ` Carsten Dominik

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).