On 17 October 2015 at 20:00, Michael Brand <michael.ch.br...@gmail.com>
wrote:

> Hi Guido
>
> On Sat, Oct 17, 2015 at 1:47 PM, Guido Van Hoecke <gui...@gmail.com>
> 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
>
> ​Thanks, Michael!

I really should study the calc manual ;)

Guido​

Reply via email to