emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to use symbolic names to refer to spreadsheet fields contain


From: Michael Brand
Subject: Re: [O] How to use symbolic names to refer to spreadsheet fields containing irregular values
Date: Thu, 4 Aug 2016 08:42:31 +0200

Hi Christoph

On Wed, Aug 3, 2016 at 11:31 PM, Christoph LANGE
<address@hidden> wrote:

> I would like to make the following work (with Org 8.3.5):
>
> |---+----------+--------+---|
> |   |    13:13 | -      | 1 |
> | ^ |        h | s      | n |
> |---+----------+--------+---|
> |   | 13:13:00 | #ERROR | 1 |
> |---+----------+--------+---|
> #+TBLFM: @3$2=$h;T::@3$3=$s::@3$4=$n
>
> I can give the field @1$2 the symbolic name $h, I can give the field
> @1$4 the symbolic name $n, and I can successfully refer to both of them
> in @3.
>
> However I didn't manage to refer to @1$3 using the symbolic name $s.
> The reason must be the value "-".  If I use an alphabetic string value,
> it works.
>
> Any ideas?  Or is this a bug?
>
> Thank you very much in advance,

"-" is not a valid Calc expression. To copy literally one needs a Lisp
formula:

|---+----------+---+---|
|   |    13:13 | - | 1 |
| ^ |        h | s | n |
|---+----------+---+---|
|   | 13:13:00 | - | 1 |
|---+----------+---+---|
#+TBLFM: @3$2 = $h; T :: @3$3 = '(identity "$s") :: @3$4 = $n

Michael



reply via email to

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