From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Michaël Parienti" <michael@parienti.name>
Cc: emacs-orgmode@gnu.org
Subject: Re: Calc formula with multi value and format string
Date: Wed, 10 Jun 2009 09:07:01 +0200 [thread overview]
Message-ID: <F3B0D9CD-4602-4E64-816E-3DD794D07165@gmail.com> (raw)
In-Reply-To: <20090610000711.10845b38@naurin.parienti.lan>
On Jun 10, 2009, at 12:07 AM, Michaël Parienti wrote:
>
> Hi,
>
> I would like to put two computed values (sum and mean) into a cell of
> a table. Reading the calc manual I found the following syntax:
>
> |---------+---------------|
> | | Title |
> |---------+---------------|
> | Label 1 | 0 |
> | Label 2 | 1 |
> |---------+---------------|
> | Label 3 | 1 |
> |---------+---------------|
> | | 0.66666667, 2 |
> |---------+---------------|
> #+TBLFM: $LR2=vmean(@2..-I),vsum(@2..-I)::
>
> Now I would like to format the meanm, but I don’t know where I should
> put the format string. I tried several possibilities without success:
>
> $LR2=vmean(@2..-I);%.2f,vsum(@2..-I):: displays 0.67,vsum(@2..-I)
> $LR2=vmean(@2..-I),vsum(@2..-I);%.2f:: displays 0.00
> $LR2=vsum(@2..-I),vmean(@2..-I);%.2f:: displays 2.00
>
> (I don’t mind which value comes first)
|---------+---------|
| | Title |
|---------+---------|
| Label 1 | 0 |
| Label 2 | 1 |
|---------+---------|
| Label 3 | 1 |
|---------+---------|
| | 0.67, 2 |
|---------+---------|
#+TBLFM: $LR2=vmean(@2..-I),vsum(@2..-I);f2
HTH
- Carsten
prev parent reply other threads:[~2009-06-10 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 22:07 Calc formula with multi value and format string Michaël Parienti
2009-06-10 7:07 ` Carsten Dominik [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F3B0D9CD-4602-4E64-816E-3DD794D07165@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael@parienti.name \
/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.