emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Spreadsheet question
Date: Wed, 03 Dec 2008 22:34:45 +0100	[thread overview]
Message-ID: <87abbdc58q.fsf@thinkpad.tsdh.de> (raw)

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

             reply	other threads:[~2008-12-03 21:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-03 21:34 Tassilo Horn [this message]
2008-12-04  8:06 ` Spreadsheet question Carsten Dominik
2008-12-04 10:49   ` Tassilo Horn
2008-12-05  7:26     ` Carsten Dominik
2008-12-05 12:23       ` Carsten Dominik

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=87abbdc58q.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --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 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).