From: Nick Dokos <nicholas.dokos@hp.com>
To: mail@christianmoe.com
Cc: henry atting <nsmp_02@online.de>,
nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: wrap long table formula
Date: Tue, 01 Nov 2011 10:40:56 -0400 [thread overview]
Message-ID: <8957.1320158456@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Christian Moe <mail@christianmoe.com> of "Tue, 01 Nov 2011 08:29:17 BST." <4EAF9FCD.6070605@christianmoe.com>
Christian Moe <mail@christianmoe.com> wrote:
> On 11/1/11 8:17 AM, henry atting wrote:
>
> > I was thinking of a column formula but have no clue if it's
> > possible and if so, how.
> >
> > In this short example the formula's length is no problem but for a
> > table with 12 rows or more it certainly is; -- and currently it's the
> > only way I can realize it.
> >
> > | | |
> > |---+---|
> > | 2 | |
> > | 6 | 4 |
> > | 7 | 5 |
> > #+TBLFM: @3$2=vmean(@2$1..@3$1::@4$2=vmean(@2$1..@4$1
>
>
> | | |
> |---+-----|
> | 2 | |
> | 6 | 4 |
> | 7 | 5 |
> | 3 | 4.5 |
> | 9 | 5.4 |
> #+TBLFM: @3$2..@>$2=vmean(@2$1..@0$1)
>
Another common way to deal with an exceptional cell is to use a field
formula for the exceptional cell and a column formula for the rest:
field formulas take precedence:
#+TBLFM: @2$2 = string("") :: $2 = vmean(@2$1..@0$2)
Nick
next prev parent reply other threads:[~2011-11-01 14:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-31 14:01 wrap long table formula henry atting
2011-10-31 14:05 ` Carsten Dominik
2011-10-31 14:21 ` henry atting
2011-10-31 18:10 ` Samuel Wales
2011-10-31 19:12 ` Carsten Dominik
2011-11-01 7:17 ` henry atting
2011-11-01 7:29 ` Christian Moe
2011-11-01 14:40 ` Nick Dokos [this message]
2011-11-01 18:53 ` henry atting
2011-11-01 19:13 ` Nick Dokos
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=8957.1320158456@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@christianmoe.com \
--cc=nsmp_02@online.de \
/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).