From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: Table Formula: Update column, then update value Date: Thu, 11 Sep 2014 10:00:18 -0400 Message-ID: <87oaum6yvh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS4vG-0006Q3-SF for emacs-orgmode@gnu.org; Thu, 11 Sep 2014 10:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XS4v7-0000vS-FA for emacs-orgmode@gnu.org; Thu, 11 Sep 2014 10:00:26 -0400 Received: from mail-yk0-x232.google.com ([2607:f8b0:4002:c07::232]:50261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS4v7-0000vM-AT for emacs-orgmode@gnu.org; Thu, 11 Sep 2014 10:00:21 -0400 Received: by mail-yk0-f178.google.com with SMTP id 20so2702671yks.9 for ; Thu, 11 Sep 2014 07:00:20 -0700 (PDT) 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 a table that calculates daily cost and then sums the hours and the weekly cost. But I can't seem to get a formula that will do the former. | Date | Hours | Rate | Cost | |--------------+-------+------+------| | September 8 | 0.50 | 1 | 1. | | September 9 | 2.00 | 1 | 2. | | September 10 | 2.00 | 1 | 2. | | September 11 | 2.00 | 1 | 2. | | September 12 | 2.00 | 1 | 2. | |--------------+-------+------+------| | | 8.5 | | 399. | | ^ | hrs | | ttl | #+TBLFM: $hrs=vsum(@I..II)::$ttl=vsum(@I..II) Before the formula above works, I end up pasting the following line just below the last date (above the @II line): #+TBLFM: $4=vsum($2*$3) So, I have to copy-paste into the middle of my table, run the line, then cut the line back out of the table and run the lower line. I'm just sure there's a better way; it even seems like once upon a time I had something working. But is there a non-repetitive way to autofill the COST ($4) column between @I..II without wiping out everything else?