From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Conditional in table formula with times Date: Mon, 24 Feb 2014 14:32:09 +0000 Message-ID: <871tys1t06.fsf@ucl.ac.uk> References: <871tywlxci.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]:33774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHwfO-0004Nh-6H for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 09:38:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHwfG-0006Uk-SN for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 09:37:58 -0500 Received: from mail-am1lp0012.outbound.protection.outlook.com ([213.199.154.12]:50809 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHwfG-0006RR-Fz for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 09:37:50 -0500 In-Reply-To: <871tywlxci.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Fri, 21 Feb 2014 08:49:01 +0100") 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, Have you tried the numeric equivalent of your times? I believe the if expression is interpreted as returning a number of seconds. The following table format line works for me: #+TBLFM: $4=$3-$2;T::$5=if($4 > 0,29880,0);T::$6=$4-$5;T HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.5h-585-g5f0ca0