emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Smart vsum


From: Cecil Westerhof
Subject: [Orgmode] Smart vsum
Date: Mon, 15 Nov 2010 13:10:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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(@address@hidden)); 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(@address@hidden)); f2

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

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]