emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Smart vsum
@ 2010-11-15 12:10 Cecil Westerhof
  2010-11-15 12:40 ` Juan Pechiar
  0 siblings, 1 reply; 2+ messages in thread
From: Cecil Westerhof @ 2010-11-15 12:10 UTC (permalink / raw)
  To: emacs-orgmode

Until now I did not use org-mode for fancy things. One of the things I
use is the following table:
|---+----------+-----------|
|   | activity | time      |
|---+----------+-----------|
| * | A        | 0@ 10'    |
| * | B        | 0@ 05'    |
|   | C        | 0@ 05'    |
|   | D        | 0@ 05'    |
|   | E        | 0@ 05'    |
|---+----------+-----------|
| # | Totaal   | 0.50      |
| ^ |          | totalTime |
|---+----------+-----------|
#+TBLFM: $totalTime = deg(vsum(@-II..@-I)); f2

It is just a table with activities and the needed time pro activity.
When there is an asterisk in the first column, that means that the
activity is already done. I would like a little more fancy table that
also displays the time needed for the activities that still have to be
done. Like the following:
|---+----------+-----------|
|   | activity | time      |
|---+----------+-----------|
| * | A        | 0@ 10'    |
| * | B        | 0@ 05'    |
|   | C        | 0@ 05'    |
|   | D        | 0@ 05'    |
|   | E        | 0@ 05'    |
|---+----------+-----------|
| # | Totaal   | 0.50      |
| ^ |          | totalTime |
| # | Totaal   | 0.25      |
| ^ |          | restTime  |
|---+----------+-----------|
#+TBLFM: $totalTime = deg(vsum(@-II..@-I)); f2

Is this possible? If yes, how would I do this?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-15 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 12:10 Smart vsum Cecil Westerhof
2010-11-15 12:40 ` Juan Pechiar

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).