From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with table sums
Date: Wed, 24 Feb 2010 10:40:01 +0100 [thread overview]
Message-ID: <13C985E1-535E-42D0-9004-12E0618DEADA@gmail.com> (raw)
In-Reply-To: <87y6ijk3lm.fsf@mundaneum.com>
On Feb 23, 2010, at 11:08 PM, Sébastien Vauban wrote:
> Hello,
>
> I have such a table whose formatting is forced by someone more
> powerful than
> me (my boss):
>
> #+TBLNAME: etape1
> | | Étape 1 | p.j | EUR HTVA |
> |---+-------------------+-----+----------|
> | | Prestations | 100 | 40000.00 |
> | | Frais annexes | | 1280.00 |
> | | Gestion du projet | | 3200.00 |
> | | Licence | | 8000.00 |
> |---+-------------------+-----+----------|
> | | Total | | 52480.00 |
> | ^ | | | Total |
> #+TBLFM: @2$4=@2$3*400.00;%.2f::@3$4=@2$4*0.08*0.40;%.
> 2f::@4$4=@2$4*0.08;%.2f::@5$4=@2$4*0.20;%.2f::@6$4=vsum(@-I..@-II);%.
> 2f
>
> It works as expected.
>
> Though, I need to re-use some of the intermediate computations for
> another
> "summary table". Therefore, I add names to some cells:
>
> #+TBLNAME: etape1
> | | Étape 1 | p.j | EUR HTVA |
> |---+-------------------+-----+-----------------|
> | | Prestations | 100 | 40000.00 |
> | ^ | | pj | Prestations |
> | | Frais annexes | | 1280.00 |
> | ^ | | | FraisAnnexes |
> | | Gestion du projet | | 3200.00 |
> | ^ | | | GestionDuProjet |
> | | Licence | | 8000.00 |
> | ^ | | | Licence |
> |---+-------------------+-----+-----------------|
> | | Total | | 40000.00 |
> | ^ | | | Total |
> #+TBLFM: @2$4=@2$3*400.00;%.2f::@4$4=@2$4*0.08*0.40;%.
> 2f::@6$4=@2$4*0.08;%.2f::@8$4=@2$4*0.20;%.2f::@10$4=vsum(@-I..@-II);
> %.2f
>
> Now, the total is wrong: it's the value of the first cell... Like if
> the `^'
> prefix was simply dropped... and total limited to the first real
> figure.
>
> Any reason for this phenomenon? Or workaround (other than
> describing every
> cell to be summed)?
Well, the reason is that the parser probably stops at the first text
when summing, it tries to add "Prestations".
I am afraid there is not good work-around for this.
- Carsten
>
> Best regards,
> Seb
>
> --
> Sébastien Vauban
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
next prev parent reply other threads:[~2010-02-24 9:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 22:08 Problem with table sums Sébastien Vauban
2010-02-24 9:40 ` Carsten Dominik [this message]
2010-02-24 15:40 ` Dan Davison
2010-02-25 11:11 ` Carsten Dominik
2010-03-01 0:37 ` Dan Davison
2010-03-01 7:49 ` Carsten Dominik
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=13C985E1-535E-42D0-9004-12E0618DEADA@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.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).