From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: How to exclude colum titles from calculations
Date: Thu, 09 Mar 2023 14:58:10 +0100 [thread overview]
Message-ID: <87lek6f2ml.fsf@mat.ucm.es> (raw)
In-Reply-To: 87zg8mjegn.fsf@ucl.ac.uk
[-- Attachment #1: Type: text/plain, Size: 2132 bytes --]
>>> "FE" == Fraga, Eric <e.fraga@ucl.ac.uk> writes:
> I make extensive use of the advanced features of the spreadsheet in org
> tables, specifically having a first column that indicates which rows
> should be calculated or not. Check out the org info manual
> (org) Advanced features
Aha, thanks
meanwhile I tried
| | | What | | This | |
|---+-------+-----------+-----------+-----------+-----------|
| ! | | Account 1 | Account 1 | Account 2 | Account 2 |
|---+-------+-----------+-----------+-----------+-----------|
| | Item1 | 224999 | 56249.75 | 224999 | 56249.75 |
| | Item2 | 269403 | 67350.75 | 269403 | 67350.75 |
| | Item3 | | | | |
| | Item4 | | | | |
| | Item5 | 10300 | 2575.00 | | |
#+TBLFM: $4=if(typeof(0.25*$3) == 12, string(""),0.25*$3); E f-2::$6=if(typeof(0.25*$5) == 12, string(""),0.25*$5); E f-2
Or / instead of !, the problem is then this row is not exported.
So you propose
| | | What | | This | |
|---+-------+-----------+-----------+-----------+-----------|
| | | Account 1 | Account 1 | Account 2 | Account 2 |
| # | Item1 | 224999 | 56249.75 | 224999 | 56249.75 |
| # | Item2 | 269403 | 67350.75 | 269403 | 67350.75 |
| # | Item3 | | | | |
| # | Item4 | | | | |
| # | Item5 | 10300 | 2575.00 | | |
#+TBLFM: $4=if(typeof(0.25*$3) == 12, string(""),0.25*$3); E f-2::$6=if(typeof(0.25*$5) == 12, string(""),0.25*$5); E f-2
Which works nicely, thanks
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
prev parent reply other threads:[~2023-03-09 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 10:45 How to exclude colum titles from calculations Uwe Brauer
2023-03-09 12:28 ` Fraga, Eric
2023-03-09 13:58 ` Uwe Brauer [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
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=87lek6f2ml.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--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 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).