Emacs: Org-mode spreadsheet: targeting via hline

与世无争的帅哥 提交于 2019-12-05 19:42:00

The closest you could come to relative references would be to change your formula to:

#+TBLFM: $4=$-1/60::@>$3=vsum(@I..@II)

The @0 is implied by -1.

For the second formula the @> means the last row, so as long as you don't add additional rows below your total row the results will be in the right place. If you add additional below it you will simply have to adjust the number of > signs.

EDIT:

You can also name the cell in question so that it doesn't get changed regardless: Org-Manual

|-----------------------------------------------+---------------------------+---------+-------------|
|                                               |                           |     163 |   2.7166667 |
| ^                                             |                           |   total |       total |
#+TBLFM: $4=$-1/60::$total=vsum(@I..@II)

You need the total name for both total rows, otherwise your minutes won't add up.

Use the M-S-up,down,left,right family of commands to manipulate (insert/delete row/column) the table, and the formula will be adjusted automatically.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!