emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Cecil Westerhof <cldwesterhof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Some problems with times in a spreadsheet
Date: Wed, 21 Jul 2010 12:33:42 +0200	[thread overview]
Message-ID: <87mxtljf95.fsf@linux-lqcw.site> (raw)

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

             reply	other threads:[~2010-07-21 10:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-21 10:33 Cecil Westerhof [this message]
2010-07-21 13:46 ` Some problems with times in a spreadsheet Juan
2010-07-22  7:14   ` Cecil Westerhof
2010-07-22  8:43     ` Andreas Burtzlaff
2010-07-22  9:23       ` Darlan Cavalcante Moreira
2010-07-22 11:41       ` Cecil Westerhof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mxtljf95.fsf@linux-lqcw.site \
    --to=cldwesterhof@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).