In orgmode, I do have a table like the following to track my overall working time a day. It is not important for which tasks or projects or even which client I spent my time on, just if I was in office or worked from remote.
The table looks like this:
| Day | Start | End | Home | Sum |
|-----+-------+-------+------+-------|
| 1 | 09:00 | 17:00 | No | 8.00 |
| 2 | 09:00 | 12:00 | No | 3.00 |
| 2 | 13:00 | 20:00 | Yes | 7.00 |
|-----+-------+-------+------+-------|
| | | | 7.00 | 11.00 |
#+TBLFM: @2$5..@-1$5=$3-$2;t
Now I need a formula that calculates the fields @<$4
and @<$5
as sums, while in @<$4
the values of $5 are summed when in that row $4 is Yes
and in @<$5
the values of $5 shall be summed when $3 of that row is not Yes
.
Instead of Yes
/No
I can switch to any other kind of marker as well.