From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Denton Subject: Re: Using org-lookup-all to count values in a table column Date: Wed, 25 Sep 2013 11:03:09 -0400 (EDT) Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOqca-0004Ix-L2 for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOqcV-0007gk-M3 for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:20 -0400 Received: from shell.miskatonic.org ([65.39.236.119]:41542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOqcV-0007fU-Hv for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:15 -0400 Received: from wtd (helo=localhost) by shell.miskatonic.org with local-esmtp (Exim 4.72) (envelope-from ) id 1VOqcP-0001Tq-Kk for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:09 -0400 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: emacs-orgmode@gnu.org For the record I was mailed off-list and it was pointed out I had the row/column order reversed in my formula. > #+TBLFM: $2@2='(length(org-lookup-all "F" '(remote(books,$3@2..$3@>)) nil)) Using @2$2 etc makes it all work. Org spreadsheets are great! Bill -- William Denton Toronto, Canada http://www.miskatonic.org/