From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Conditional in table formula with times Date: Mon, 24 Feb 2014 15:53:27 +0100 Message-ID: <87y510ftp4.fsf@hornfels.zedat.fu-berlin.de> References: <871tywlxci.fsf@hornfels.zedat.fu-berlin.de> <871tys1t06.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHwuf-00022P-4z for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 09:53:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHwuZ-0003o1-AQ for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 09:53:45 -0500 Received: from plane.gmane.org ([80.91.229.3]:59175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHwuZ-0003nx-3e for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 09:53:39 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WHwuX-0002i0-Qi for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 15:53:37 +0100 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Feb 2014 15:53:37 +0100 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Feb 2014 15:53:37 +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: emacs-orgmode@gnu.org Hi Eric, Eric S Fraga writes: > 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 Works for me, too. Thanks, Loris -- This signature is currently under construction.