I have a org table:
| a | b | c |
|---+---+---|
| 1 | 2 | i |
| 3 | 4 | j |
|---+---+---|
| 4 | 6 | |
I want to multiply columns a
and b
and sum them up (except last row: 1*2+3*4
) and put into the last cell:
| a | b | c |
|---+---+---|
| 1 | 2 | i |
| 3 | 4 | j |
|---+---+---|
| 4 | 6 | 14|
What is the formula to achieve this? I tried #+TBLFM: @>$>=sum($1 * $2)
without luck.
My org version: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)
*
, so the trick is to figure out how to specify the two vectors. @gigiair's answer shows you how to do that.