|
From: | Guido Van Hoecke |
Subject: | Re: [O] Using constants in columns |
Date: | Sat, 17 Oct 2015 22:27:33 +0200 |
Hi Guido
On Sat, Oct 17, 2015 at 1:47 PM, Guido Van Hoecke <address@hidden> wrote:
> I have not found a way to specify the vector in a constant.
You can access the elements of the vector constant suggested by Eric
with Calc's subscript function:
#+CONSTANTS: vat=[1.15,1.21,1.40]
| Amount | VAT | Total |
|--------+-----+--------|
| 100 | 1 | 115.00 |
| 100 | 2 | 121.00 |
#+TBLFM: $3 = $1 * subscr($vat, $2); %.2f
[Prev in Thread] | Current Thread | [Next in Thread] |