emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Using constants in columns
@ 2015-10-16 12:39 Guido Van Hoecke
  2015-10-16 13:48 ` Eric S Fraga
  0 siblings, 1 reply; 9+ messages in thread
From: Guido Van Hoecke @ 2015-10-16 12:39 UTC (permalink / raw)
  To: orgmode

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

Hi,

Is there a way to use a constant directly in a table column?
I need to have a table where one of the columns can have one out of three
possible values and wanted to use constants for this.
From the following minimal example it appears that constants are only
possible in formulas, or am I missing something?

#+CONSTANTS: vat=1.21
| 12.34 | $vat | #ERROR | 14.9314 |
#+TBLFM: $3=$1*$2::$4=$1*$vat

Using the $vat constant directly from the content of column 3 produces an
error, using it from a formula works fine.

If this is the way it is, I'll have to write a formula for each row of the
column, that'd be a real pitty...

Please advise

TIA, Guido

[-- Attachment #2: Type: text/html, Size: 1462 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-19  7:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-16 12:39 Using constants in columns Guido Van Hoecke
2015-10-16 13:48 ` Eric S Fraga
2015-10-16 14:38   ` Guido Van Hoecke
2015-10-16 14:59     ` Eric S Fraga
2015-10-17 11:47       ` Guido Van Hoecke
2015-10-17 18:00         ` Michael Brand
2015-10-17 20:27           ` Guido Van Hoecke
2015-10-19  6:12             ` Eric S Fraga
2015-10-19  7:13               ` Guido Van Hoecke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).