From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: problem with empty column Date: Sat, 06 Jan 2018 09:43:45 +0100 Message-ID: <87o9m7v0la.fsf@mat.ucm.es> References: <87h8s0yaj5.fsf@mat.ucm.es> <87zi5sk5ru.fsf@gmail.com> <87lghcwk3f.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXk5B-0006lA-IU for emacs-orgmode@gnu.org; Sat, 06 Jan 2018 03:44:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXk58-0001ku-Es for emacs-orgmode@gnu.org; Sat, 06 Jan 2018 03:44:01 -0500 Received: from [195.159.176.226] (port=54587 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXk58-0001kb-8A for emacs-orgmode@gnu.org; Sat, 06 Jan 2018 03:43:58 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eXk34-0003Uq-2W for emacs-orgmode@gnu.org; Sat, 06 Jan 2018 09:41:50 +0100 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: emacs-orgmode@gnu.org >>> "Michael" == Michael Brand writes: Hi Michael > if(typeof(vmean($1..$7)) == 12, string(""), vmean($1..$7); E This is precisely what I was looking for, thanks a lot. I meanwhile circumvent the problem by | Name | E1 | E2 | E3 | E4 | Pre | Res | |--------+----+----+----+----+-----+-----| | Entry1 | | | | | 0 | NP | | Entry2 | 10 | 20 | 30 | 40 | 100 | 10 | | Entry3 | 10 | | 20 | 30 | 60 | 6 | #+TBLFM: $6=$2+$3+$4+$5::$7=if("$2" == "nan", string("NP"),$6/10);E But your solution is much more elegant.