* Spreadsheet: Conditionally apply formula to cell?
@ 2016-03-18 12:26 Loris Bennett
2016-03-18 19:08 ` Christian Moe
0 siblings, 1 reply; 2+ messages in thread
From: Loris Bennett @ 2016-03-18 12:26 UTC (permalink / raw)
To: emacs-orgmode
Hi,
If I have
| 1 | 2 | 13 |
| | | 10 |
#+TBLFM: $3=$1+$2+10
is there a way to suppress calculation of column 3 if, as in row 2, the
entry in column 1 is empty?
Cheers,
Loris
--
This signature is currently under construction.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Spreadsheet: Conditionally apply formula to cell?
2016-03-18 12:26 Spreadsheet: Conditionally apply formula to cell? Loris Bennett
@ 2016-03-18 19:08 ` Christian Moe
0 siblings, 0 replies; 2+ messages in thread
From: Christian Moe @ 2016-03-18 19:08 UTC (permalink / raw)
To: Loris Bennett; +Cc: emacs-orgmode
Hi,
Yes, there is. See the manual on logical operations in "Formula syntax
for Calc", which gives an example for almost exactly the same thing.
| 1 | 2 | 13 |
| | | |
#+TBLFM: $3=if("$1" == "nan" || "$2" == "nan", string(""), $1+$2+10);E
Yours,
Christian
Loris Bennett writes:
> Hi,
>
> If I have
>
> | 1 | 2 | 13 |
> | | | 10 |
> #+TBLFM: $3=$1+$2+10
>
> is there a way to suppress calculation of column 3 if, as in row 2, the
> entry in column 1 is empty?
>
> Cheers,
>
> Loris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-18 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18 12:26 Spreadsheet: Conditionally apply formula to cell? Loris Bennett
2016-03-18 19:08 ` Christian Moe
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).