From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: How to use symbolic names to refer to spreadsheet fields containing irregular values Date: Thu, 4 Aug 2016 08:42:31 +0200 Message-ID: References: <482abd44-b7e5-6bd3-b741-3b939b322fc1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVCMU-0004Aj-TW for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 02:42:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVCMU-0008RX-2r for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 02:42:34 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:35614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVCMT-0008RR-Ra for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 02:42:34 -0400 Received: by mail-wm0-x22b.google.com with SMTP id f65so472621121wmi.0 for ; Wed, 03 Aug 2016 23:42:32 -0700 (PDT) In-Reply-To: <482abd44-b7e5-6bd3-b741-3b939b322fc1@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Christoph LANGE Cc: "emacs-orgmode@gnu.org" Hi Christoph On Wed, Aug 3, 2016 at 11:31 PM, Christoph LANGE 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