[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Spreadsheet: Conditionally apply formula to cell?
From: |
Christian Moe |
Subject: |
Re: [O] Spreadsheet: Conditionally apply formula to cell? |
Date: |
Fri, 18 Mar 2016 20:08:22 +0100 |
User-agent: |
mu4e 0.9.9.5-dev6; emacs 24.4.1 |
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