From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Sverweis like function for orgtbl Date: Mon, 16 Feb 2015 20:42:09 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNRYZ-0002lR-Cd for emacs-orgmode@gnu.org; Mon, 16 Feb 2015 14:42:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNRYY-0007uo-FQ for emacs-orgmode@gnu.org; Mon, 16 Feb 2015 14:42:11 -0500 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:58218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNRYY-0007ui-Ax for emacs-orgmode@gnu.org; Mon, 16 Feb 2015 14:42:10 -0500 Received: by mail-qa0-f43.google.com with SMTP id bm13so23408953qab.2 for ; Mon, 16 Feb 2015 11:42:09 -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: Thorsten Grothe Cc: Org Mode Hi Thorsten On Mon, Feb 16, 2015 at 4:01 PM, Thorsten Grothe wrote: > I got this table: > > | Menge (x) | P(x) | E(x) | K(x) | Gewinn | > |-----------+------+--------+--------+---------| > | 0 | 20 | 0.00 | 140.00 | -140.00 | > | 10 | 18 | 180.00 | 180.00 | 0.00 | > | 20 | 16 | 320.00 | 220.00 | 100.00 | > | 30 | 14 | 420.00 | 260.00 | 160.00 | > > and would like to find the highest value in the column "Gewinn" = 160 go > two cells left to E(x), read out the value (420) and put this in a remote > orgtbl. This is something similar to Sverweis in Excel. For a solution with a table formula see (info "(org) Lookup functions") or http://orgmode.org/manual/Lookup-functions.html It contains also a link to a tutorial. Michael