emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Jarmo Hurri <jarmo.hurri@syk.fi>
Cc: emacs-orgmode@gnu.org
Subject: Re: Preserving the geometry of a table range
Date: Mon, 27 Aug 2012 14:33:29 +0200	[thread overview]
Message-ID: <CALn3zogrJSpNJaNxxO9iywf-veWaXaH0UB+MGxiq3dARBo-8TA@mail.gmail.com> (raw)
In-Reply-To: <87lih25ejt.fsf@syk.fi>

Hi Jarmo

On Sun, Aug 26, 2012 at 8:54 AM, Jarmo Hurri <jarmo.hurri@syk.fi> wrote:
> I ran into this problem while trying to make a contribution by
> implementing functions corresponding to vlookup and hlookup in
> traditional spreadsheets.  I have only used relatively basic properties
> of org, so there might be a simple solution that I just don't know.

Only now I see that this second part with the actual problem of your
original post is still unanswered. Does this help?:

| key (ordered) | val |   | val (ordered) | key |
|---------------+-----+---+---------------+-----|
|             8 | foo |   | bar           |  42 |
|            42 | bar |   | foo           |   8 |
#+TBLFM: $5 = '(nth (position $4 '(@<<$2..@>$2) :test 'equal) '(@<<$1..@>$1))

Michael

  parent reply	other threads:[~2012-08-27 12:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-26  6:54 Preserving the geometry of a table range Jarmo Hurri
2012-08-26  7:10 ` Michael Brand
2012-08-26  8:45   ` Jarmo Hurri
2012-08-26 18:58     ` Michael Brand
2012-08-27 12:33 ` Michael Brand [this message]
2012-09-02 14:53   ` Small contrib: lookup (was "Preserving the geometry of a table range") Jarmo Hurri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALn3zogrJSpNJaNxxO9iywf-veWaXaH0UB+MGxiq3dARBo-8TA@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@syk.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).