Wednesday, March 26, 2014

A price table for orgtbl-mode using Emacs

You don't need Excel for price calculation but Emacs + orgtbl.

|----------+--------+-------+---+------|
| item     | vendor | price | n | cost |
|----------+--------+-------+---+------|
| monitor  | Eizo   | 10000 | 2 |      |
| keyboard | Topre  |  5000 | 3 |      |
|----------+--------+-------+---+------|
| total    |        |       |   |      |
|----------+--------+-------+---+------|
#+TBLFM: $5=$3*$4::@>$>=vsum(@-II..@-I)

No comments: