最好用代码解释:
| | a | b | c | d | row-total |
|----------------+----+-----+----+--------+-----------|
| check-sum | 4 | 5 | 7 | 1000 | |
|----------------+----+-----+----+--------+-----------|
| | 1 | 2 | 2 | 1 | |
| | 3 | 4 | 5 | 6 | |
|----------------+----+-----+----+--------+-----------|
| calculated-sum | ok | (1) | ok | (-993) | |
|----------------+----+-----+----+--------+-----------|
#+TBLFM: @>$<<..$>>='(let ((sum (apply '+ '(@II..@-1))) (expected @2)) (if (= sum expected) "ok" (format "(%s)" (- sum expected))));N
我有一个摘要行(@5)工作正常。我想让最后一列(在行@2..@4 中)对每一行中的值求和。我该如何表达?