From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Sub-totals Date: Thu, 20 Feb 2014 08:55:59 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGOUE-0002eq-CF for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 02:56:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGOUD-0002ld-Ls for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 02:56:02 -0500 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:46533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGOUD-0002lX-D7 for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 02:56:01 -0500 Received: by mail-pa0-f42.google.com with SMTP id kl14so1589232pab.1 for ; Wed, 19 Feb 2014 23:56:00 -0800 (PST) In-Reply-To: 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: Cecil Westerhof Cc: Nick Dokos , Org Mode Hi Cecil On Sun, Feb 16, 2014 at 10:06 AM, Michael Brand wrote: > #+TBLFM: @>$2 = vsum(@II..@>>) :: $3 = if(vlen(@-I$2..@0$2) == vlen(@-I$2..@+I$2), vsum(@-I$2..@+I$2) +.0, string("")); EN f-1 :: @>$3 = string("") I should have simplified the condition in "if" to #+TBLFM: @>$2 = vsum(@II..@>>) :: $3 = if(vlen(@0..@+I) == 1, vsum(@-I$2..@+I$2) +.0, string("")); EN f-1 :: @>$3 = string("") It's now also in the ERT. Michael