In my org table I use the next formula to sum rows 1,5,7
of column 6
.
| | Start date | End date | Task | State | Duration (hours) |
|---+------------------+------------------+----------+-----------+------------------|
| # | 15.08.2019 10:30 | 15.08.2019 12:00 | T-320 | Taken | 1.50 |
| # | 15.08.2019 13:00 | 15.08.2019 14:00 | T-320 | Taken | 1.00 |
| # | 15.08.2019 14:30 | 15.08.2019 18:00 | T-321 | Taken | 3.50 |
| # | 16.08.2019 10:30 | 16.08.2019 12:00 | T-321 | Taken | 1.50 |
| # | 16.08.2019 13:30 | 16.08.2019 15:30 | T-321 | Taken | 2.00 |
| # | 16.08.2019 15:30 | 16.08.2019 18:00 | T-322 | Taken | 2.50 |
| # | 28.08.2019 14:00 | 28.08.2019 17:00 | T-330 | Taken | 3.00 |
| # | 28.08.2019 17:00 | 28.08.2019 18:00 | T-331 | Taken | 1.00 |
| # | 29.08.2019 10:30 | 29.08.2019 15:00 | INIT-117 | Done | 4.50 |
| # | 29.08.2019 15:30 | 29.08.2019 16:00 | FM-222 | Done | 0.50 |
| # | 29.08.2019 16:00 | 29.08.2019 18:00 | T-331 | Postponed | 2.00 |
| # | 30.08.2019 10:30 | 30.08.2019 12:00 | INIT-121 | Taken | 1.50 |
| # | 30.08.2019 13:30 | 30.08.2019 21:00 | INIT-121 | Taken | 7.50 |
|---+------------------+------------------+----------+-----------+------------------|
| | | | | | 6.5 |
#+TBLFM: $6=$3-$2;t::@>$6=vsum(subscr(@I$6..@II$6,{1,5,7}));%.2f
Nice. It's work fine.
But I have a question: What is the return value of subscr
?
subscr
here refers to subscripts.