emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Juan Pechiar <juan@pechiar.com>
To: OSiUX <xuiso@osiux.com.ar>
Cc: emacs-orgmode@gnu.org
Subject: Re: relative row reference in table formula
Date: Thu, 1 Mar 2012 14:54:49 -0200	[thread overview]
Message-ID: <20120301165449.GA6258@soloJazz.com> (raw)
In-Reply-To: <20120301140139.GC7899@merlot.gcoop.coop>

Hi Osiris,

On Thu, Mar 01, 2012 at 11:01:39AM -0300, OSiUX wrote:
> is possible to define the reference to the last row of the following @II+$3, to avoid
> having to change the number of row (@4$3)?
>
> in this example does not calculate:
>
>   | date             | item          |    cost |
>   |------------------+---------------+---------|
>   | [2012-03-01 jue] | item 1        |   30.00 |
>   | [2012-03-01 jue] | item 2        |   20.00 |
>   |------------------+---------------+---------|
>   |                  |               |   30.00 |
>   #+TBLFM: @II+$3=vsum(@I..@II);%0.2f

It should be '@II+1$3' according to documentation, but anyway it
doesn't get evaluated.

However, '@>$3' (meaning the last row, col 3) does get evaluated
correctly.

In any case, if you add/remove rows/columns using M-S-arrows, the
absolute formula references get updated accordingly (e.g. formula at
@4$3 goes to @5$3 after inserting a row).

Saludos,
.j.

      reply	other threads:[~2012-03-01 16:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 14:01 relative row reference in table formula OSiUX
2012-03-01 16:54 ` Juan Pechiar [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=20120301165449.GA6258@soloJazz.com \
    --to=juan@pechiar.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=xuiso@osiux.com.ar \
    /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).