From: Christian Moe <mail@christianmoe.com>
To: Loris Bennett <loris.bennett@fu-berlin.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Spreadsheet: Conditionally apply formula to cell?
Date: Fri, 18 Mar 2016 20:08:22 +0100 [thread overview]
Message-ID: <m2r3f7hae1.fsf@christianmoe.com> (raw)
In-Reply-To: <87shzovuol.fsf@hornfels.zedat.fu-berlin.de>
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
prev parent reply other threads:[~2016-03-18 19:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-18 12:26 Spreadsheet: Conditionally apply formula to cell? Loris Bennett
2016-03-18 19:08 ` Christian Moe [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=m2r3f7hae1.fsf@christianmoe.com \
--to=mail@christianmoe.com \
--cc=emacs-orgmode@gnu.org \
--cc=loris.bennett@fu-berlin.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).