emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Using constants in columns


From: Michael Brand
Subject: Re: [O] Using constants in columns
Date: Sat, 17 Oct 2015 20:00:40 +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

Michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]