From: Jeffrey Brent McBeth <mcbeth@broggs.org>
To: emacs-orgmode@gnu.org
Subject: org-table relative reference questions
Date: Mon, 20 Apr 2015 09:35:28 -0400 [thread overview]
Message-ID: <20150420133528.GB16503@broggs.org> (raw)
I'm looking for a way to reference a row or column on both the left side and right side of a table formula that is "easily" manipulable.
At first, I thought the hline references would work for me @I..@II, except they cannot be used on the left side of an equation. I hoped that maybe named fields would work (^,_), but those are apparently value aliases and not location references.
Essentially, I want to keep a single table in which I can enter and calculate data, and limit the computation to start at a given row that I change as I go along. Maybe I'm simply using the wrong tool for this, excel is certainly not capable; so if org-table isn't either, it certainly doesn't lessen it.
#+BEGIN_EXAMPLE
| F | A | B | C |
|---+----+----+----|
| _ | tA | tB | tC |
| | 1 | 3 | 42 |
| | 2 | 4 | 69 |
|---+----+----+----|
| # | | | |
#+TBLFM=@>$2=vsum(@tA..@II)::$tC=$-2+$-1
| F | A | B | C |
|---+----+----+----|
| | 1 | 3 | 42 |
| _ | tA | tB | tC |
| | 2 | 4 | 69 |
|---+----+----+----|
| # | | | |
#+TBLFM=@>$2=vsum(@tA..@II)::$tC=$-2+$-1
#+END_EXAMPLE
--
"The man who does not read good books has no advantage over
the man who cannot read them."
-- Mark Twain
next reply other threads:[~2015-04-20 13:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 13:35 Jeffrey Brent McBeth [this message]
2015-04-20 14:38 ` org-table relative reference questions Jeffrey Brent McBeth
2015-04-21 8:13 ` Michael Brand
2015-04-21 14:43 ` Jeffrey Brent McBeth
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150420133528.GB16503@broggs.org \
--to=mcbeth@broggs.org \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.