From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: Table formulas: daily hour * rate = cost Date: Thu, 12 Feb 2015 07:17:29 -0500 Message-ID: <878ug38gti.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLsi8-0005DU-Rx for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 07:17:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLsi3-0007I8-Mc for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 07:17:36 -0500 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:44881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLsi3-0007Hy-IN for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 07:17:31 -0500 Received: by mail-qa0-f44.google.com with SMTP id n8so7275360qaq.3 for ; Thu, 12 Feb 2015 04:17:30 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode list I have the followign table, which should speak for itself. First the "cost" column needs to be calculated, which is hours * rate, and then the "hrs" and "ttl" fields should be filled in based on sums of their columns. However, I'm not sure why $cost isn't being evaluated; I've tried it with column names as well as indices but unless I specify each field individually (e.g. @3$5) I can't get a result here. Formula debugging seems to ignore it, too. But I've been trying to follow the example on the "advanced feature" page[1] as closely as possible; what's the problem? --8<---------------cut here---------------start------------->8--- | | Date | Hours | Rate | Cost | | ! | | hours | rate | cost | |---+-------------+-------+------+------| | | February 9 | 4.00 | 38 | 0 | | | February 10 | 4.00 | 38 | 0 | | | February 11 | 4.00 | 38 | 0 | | | February 12 | 4.00 | 38 | 0 | | | February 13 | 4.00 | 38 | 0 | |---+-------------+-------+------+------| | | | 20. | | 0 | | ^ | | hrs | | ttl | #+TBLFM: $5=$hours*$rate::$hrs=vsum(@I..@II)::$ttl=vsum(@I..@II) --8<---------------cut here---------------end--------------->8--- Footnotes: [1] http://orgmode.org/org.html#Advanced-features