From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Spreadsheet: Conditionally apply formula to cell? Date: Fri, 18 Mar 2016 20:08:22 +0100 Message-ID: References: <87shzovuol.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agziP-0004sj-25 for emacs-orgmode@gnu.org; Fri, 18 Mar 2016 15:05:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agziL-0006yl-Kq for emacs-orgmode@gnu.org; Fri, 18 Mar 2016 15:05:40 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:35179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agziL-0006xS-ET for emacs-orgmode@gnu.org; Fri, 18 Mar 2016 15:05:37 -0400 In-reply-to: <87shzovuol.fsf@hornfels.zedat.fu-berlin.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Loris Bennett Cc: emacs-orgmode@gnu.org 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