Le 01/06/2014 13:38, Cecil Westerhof a écrit :
> I like to calculate in a table the difference between the value in a
> field in the current row and the previous field. How would I do that?
>
> Something like:
> |-------+------------|
> | value | difference |
> |-------+------------|
> |    12 |            |
> |    15 |          3 |
> |    83 |         68 |
> |    87 |          4 |
> |    85 |         -2 |
> |-------+------------|
>
>
> -- 
> Cecil Westerhof
|   | value | difference |
|---+-------+------------|
|   |    12 |            |
| # |    15 |          3 |
| # |    83 |         68 |
| # |    87 |          4 |
| # |    85 |         -2 |
|---+-------+------------|
#+TBLFM: $3=$2-@-1$2

The first row does not have a #, and therefore it is not computed.

--
Thierry



Reply via email to