I would like to transpose this table example from Org as a spreadsheet system: a short introduction:
| Student | Maths | Physics | Mean |
|----------+-------+---------+------|
| Bertrand | 13 | 09 | 11 |
| Henri | 15 | 14 | 14.5 |
| Arnold | 17 | 13 | 15 |
#+TBLFM: $4=vmean($2..$3)
This part is easy:
| Student | Bertrand | Henri | Arnold |
| Maths | 13 | 15 | 17 |
| Physics | 09 | 14 | 13 |
| Total | | | |
#+TBLFM: @4=vmean(@2..@3)
But after a full recalculation (C-u C-c C-c
), the text (Maths + Physics) / 2
is inserted:
| Student | Bertrand | Henri | Arnold |
| Maths | 13 | 15 | 17 |
| Physics | 09 | 14 | 13 |
| (Maths + Physics) / 2 | 11 | 14.5 | 15 |
#+TBLFM: @4=vmean(@2..@3)
How do I treat the first column as a header column? I think this would solve the problem.
Update 2014-01-07 6:26 PM EST: The two answers (by Juanco and wvxvw) work, but is there a way to solve this without changing the formula line at all? Is there a way to tell Org mode that the leftmost column is a header column?