From: Carsten Dominik <dominik@science.uva.nl>
To: Gabor Maroti <marotig@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Spreadsheet: Last row in ranges
Date: Fri, 13 Mar 2009 17:59:43 +0100 [thread overview]
Message-ID: <DC1CEFC2-81E2-4F4B-9563-D541D55EB3DC@uva.nl> (raw)
In-Reply-To: <49B9A450.40307@gmail.com>
No, $LR1 inserts the *value* of that field.
You can do this:
| 1 | 6 |
| 2 | |
| 3 | |
#+TBLFM: @1$2=vsum(@1$1..@I-1$1)
Org imagines a hline at the end of a table, in your
case this would be the first hline in the table, so
@I-1 refers to the last row.
HTH
- Carsten
On Mar 13, 2009, at 1:09 AM, Gabor Maroti wrote:
> Dear All,
>
> A quick spreadsheet question. I just wanted the compute the sum of an
> entire column by using
>
> | 1 | |
> | 2 | |
> | 3 | |
> #+TBLFM: @1$2=vsum(@1$1..$LR1)
>
> It doesn't do the trick (neither in v6.24a nor in v6.24c): the value
> of
> @1$2 is 3, 12, 29, 120, etc., after multiple application of the TBLFM
> line. Thus it looks to me that the $LR1 syntax is not really
> welcome in
> ranges. Is it so?
>
> Anyway, is it possible to compute the sum of a column apart from the
> slightly cumbersome vsum(@1$1..@3$1)?
>
> Thanks,
> G.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: 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:[~2009-03-13 18:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 0:09 Spreadsheet: Last row in ranges Gabor Maroti
2009-03-13 16:59 ` Carsten Dominik [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=DC1CEFC2-81E2-4F4B-9563-D541D55EB3DC@uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=marotig@gmail.com \
/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).