emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: RCY <recif@yahoo.com>
Cc: OM <emacs-orgmode@gnu.org>
Subject: Re: Spreadsheet row formula
Date: Sun, 8 Jan 2012 17:23:55 +0100	[thread overview]
Message-ID: <CALn3zogKTPAn3ihQeSidYVojSewVjjWTA2ssCufTGCcgBjwNGg@mail.gmail.com> (raw)
In-Reply-To: <CAD_Xbc5vWtLZ2Y6Avh=Z1iz6JvEZKOqj9Uxx6gU=SEtvHwjD=g@mail.gmail.com>

Hi RCY

On Sun, Jan 8, 2012 at 17:12, RCY <recif@yahoo.com> wrote:
>  Sorry not to be clearer.
> I would like to implement the formula for only one row. So entering the
> first row shown below and implementing the formula with only B entered in
> the first column in the second row gives the rest of the second row.
>
>
>  |A|2|3|4|
>  |B|4|6|8|
>
> Your suggestion almost does what I want, except that it applies the formula
> to every row. I would like to apply different row formulas to succeeding
> rows.

So you want this:

| A | 2 | 3 | 4 |
| B | 4 | 6 | 8 |
#+TBLFM: @2$<<..@2$> = 2 * @-1

> Also I was not clear about the syntax you used, does <<$<< exclude the first
> column and >$> indicate up to the last column?
> I tried to modify your formula to restrict it to the second row:
> @2<<$<<..@2>$> = 2 * @-1

@< first row
$<< second column
$> last column
@>> second last row
[...]

See also the manual here:
http://orgmode.org/manual/References.html

Michael

  reply	other threads:[~2012-01-08 16:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 15:39 Spreadsheet row formula RCY
2012-01-08 15:51 ` Michael Brand
2012-01-08 16:12   ` RCY
2012-01-08 16:23     ` Michael Brand [this message]
2012-01-08 16:37       ` RCY

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=CALn3zogKTPAn3ihQeSidYVojSewVjjWTA2ssCufTGCcgBjwNGg@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=recif@yahoo.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).