From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Some problems with times in a spreadsheet Date: Wed, 21 Jul 2010 12:33:42 +0200 Message-ID: <87mxtljf95.fsf@linux-lqcw.site> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObWcB-0006PV-Rt for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 06:33:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObWcA-0002ON-TC for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 06:33:27 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:58030) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObWcA-0002OE-P1 for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 06:33:26 -0400 Received: by ewy28 with SMTP id 28so2368318ewy.0 for ; Wed, 21 Jul 2010 03:33:25 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I have the following table: |---+-------------+------------+------------| | | Day | ProjectA | ProjectB | |---+-------------+------------+------------| | | 14 | 1@ 00' | 1@ 45' | | | 15 | 0@ 30' | 3@ 35' | | | 16 | 0@ 45' | 1@ 00' | | | 17 | 3@ 10' | 2@ 45' | | | 18 | 1@ 55' | 0@ 35' | | | 19 | 5@ 25' | 7@ 25' | | | 20 | 3@ 30' | 1@ 00' | |---+-------------+------------+------------| | # | Total hours | 16@ 15' 0" | 18@ 5' 0" | | ^ | | totalTime1 | totalTime2 | |---+-------------+------------+------------| #+TBLFM: $totalTime1=vsum(@-II..@-I); f2 :: $totalTime2=vsum(@-II..@-I); f2 The string '0 @ 30' says that there were 0 hours and 30 minutes. I have several problems here. First of all I would like to see 16.25 instead of 16@ 15' 0". Is this possible? Secondly I have to define the formula for each project. In this case there are only two, but when there are fifteen then it becomes a pain. Is there a way to use just one formula? When displaying with minutes instead of as a floating point number, is it possible to display it without seconds? Instead of 16@ 15' 0" I would like to get 16@ 15'. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof