emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: RCY <recif@yahoo.com>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: OM <emacs-orgmode@gnu.org>
Subject: Re: Spreadsheet row formula
Date: Sun, 8 Jan 2012 11:37:36 -0500	[thread overview]
Message-ID: <CAD_Xbc4r31CVFN2YgYzW_OVRJOU-omsksQhYgTzLc7DJG+VJ0A@mail.gmail.com> (raw)
In-Reply-To: <CALn3zogKTPAn3ihQeSidYVojSewVjjWTA2ssCufTGCcgBjwNGg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

Hi,
 That does what I want. Thanks for taking the time to explain it. I should
have read the manual on relative cell references more carefully.

On Sun, Jan 8, 2012 at 11:23 AM, Michael Brand
<michael.ch.brand@gmail.com>wrote:

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

[-- Attachment #2: Type: text/html, Size: 1975 bytes --]

      reply	other threads:[~2012-01-08 16:37 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
2012-01-08 16:37       ` RCY [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=CAD_Xbc4r31CVFN2YgYzW_OVRJOU-omsksQhYgTzLc7DJG+VJ0A@mail.gmail.com \
    --to=recif@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.ch.brand@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).