From: Michael Brand <michael.ch.brand@gmail.com>
To: Volker Strobel <volker.strobel87@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Relative Remote Reference (column->row)
Date: Fri, 21 Mar 2014 08:19:02 +0100 [thread overview]
Message-ID: <CALn3zojGSbhgaQjtjSQZHywS=O8ah2_SBsMFNzYpms3QTVYsPw@mail.gmail.com> (raw)
In-Reply-To: <CACCk52Ke52PxNKLzQ5R4w9dE8KoKvtndAdnVCt7D-M_mJ7U9xw@mail.gmail.com>
Hi Volker
On Fri, Mar 21, 2014 at 1:31 AM, Volker Strobel
<volker.strobel87@gmail.com> wrote:
> My problem is, that this remote reference starts in row 3 (because of @$#),
> however, I'd like to start in row 2 (that means @$#-1). However, this
> relative reference does not seem to work here.
Calculation within the field reference of Org is not supported but
subscr of Calc can be used to pick calculated references from a range:
#+NAME: my-table
| Header1 | Header2 |
|---------+---------|
| a | 23 |
| b | 7 |
| c | 13 |
| d | 66 |
| e | 5 |
|---------+---------|
| Result | 42 |
| x | y | 23 | 7 | 13 | 66 | 5 |
#+TBLFM: @1$3..@1$7 = subscr(remote(my-table, @2$2..6$2), $# - 2)
(To show the intermediade step:
| x | y | [23, 7, 13, 66, 5] | [23, 7, 13, 66, 5] |
#+TBLFM: @1$3..@1$4 = remote(my-table, @2$2..6$2)
)
Michael
next prev parent reply other threads:[~2014-03-21 7:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-21 0:31 Relative Remote Reference (column->row) Volker Strobel
2014-03-21 7:19 ` Michael Brand [this message]
2014-03-23 21:20 ` Volker Strobel
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='CALn3zojGSbhgaQjtjSQZHywS=O8ah2_SBsMFNzYpms3QTVYsPw@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=volker.strobel87@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).