From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: [bug] spreadsheet does not replace some fields Date: Wed, 20 Jun 2012 22:53:45 +0200 Message-ID: References: <20120620134758.GB2280@soloJazz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRuP-0006B8-Vi for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 16:53:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShRuO-00056t-9e for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 16:53:49 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:33061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRuN-00054W-Vi for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 16:53:48 -0400 Received: by lbjn8 with SMTP id n8so1359293lbj.0 for ; Wed, 20 Jun 2012 13:53:45 -0700 (PDT) In-Reply-To: <20120620134758.GB2280@soloJazz.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juan Pechiar Cc: Org Mode Hi Juan On Wed, Jun 20, 2012 at 3:47 PM, Juan Pechiar wrote: > From the manual (section 3.5.6 Column Formulas): > > If the table contains horizontal separator hlines, everything before > the first such line is considered part of the table header and will > not be modified by column formulas. Yes, of course, I should know! I read this some years ago but didn't realize then what effect it will have for me one day: All rows in my current example except the last one are just considered as the table header and everything becomes clear. How could I not conclude myself. Thank you for helping out. With this in mind it should be | item | absolute | percent | |-------+----------+---------| | a | 17 | 34 | | b | 21 | 42 | | c | 12 | 24 | |-------+----------+---------| | total | 50 | 100 | #+TBLFM: @>$2=vsum(@<<$2..@>>$2)::$3=100 * $2 / @>$2 or |-------+----------+---------| | item | absolute | percent | |-------+----------+---------| | a | 17 | 34 | | b | 21 | 42 | | c | 12 | 24 | |-------+----------+---------| | total | 50 | 100 | |-------+----------+---------| #+TBLFM: @>$2=vsum(@<<$2..@>>$2)::$3=100 * $2 / @>$2 and it is not possible to take the shortcut of | a | 17 | | | b | 21 | | | c | 12 | | |-------+----+-----| | total | 50 | 100 | #+TBLFM: @>$2=vsum(@<$2..@>>$2)::$3=100 * $2 / @>$2 or |-------+----+-----| | a | 17 | | | b | 21 | | | c | 12 | | |-------+----+-----| | total | 50 | 100 | |-------+----+-----| #+TBLFM: @>$2=vsum(@<$2..@>>$2)::$3=100 * $2 / @>$2 to group rows with hline Michael