From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Pechiar Subject: Re: org table spreadsheet problem Date: Mon, 28 Nov 2011 14:55:37 -0200 Message-ID: <20111128165537.GA12790@soloJazz.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV4Uc-0007UZ-67 for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 11:55:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV4Ua-0002P1-Ma for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 11:55:46 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:50695) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RV4Ua-0002Os-Cn for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 11:55:44 -0500 Content-Disposition: inline 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: qkbeyond@gmail.com Cc: emacs-orgmode@gnu.org Hi, Please check the following thread on a similar problem: http://thread.gmane.org/gmane.emacs.orgmode/29877/focus=29920 There is a definition for 'vsumif' function you can use to add conditionally. Regards, .j. On Mon, Nov 28, 2011 at 03:32:05PM +0800, qkbeyond@gmail.com wrote: > hi,all. > I have a orgtbl like the following, > > | # | 2 | a | > | # | -2 | abc | > | # | 5 | abc | > | # | -3 | a | > |---+----+-----| > | | | | > | ^ | x | | > > and i want to sum the second column which the corresponding third > column's values="abc" to variable x. (in this example $x = -2+5 = 3). > what Formula syntax for Calc/Lisp can achieve this,please. thanks.