From: Uwe Brauer <oub@mat.ucm.es>
To: Bruno Barbier <brubar.cs@gmail.com>
Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-orgmode@gnu.org
Subject: Re: [the cryptic @@#$7]
Date: Thu, 12 Oct 2023 16:40:07 +0200 [thread overview]
Message-ID: <87ttqv52go.fsf@mat.ucm.es> (raw)
In-Reply-To: 6527f2c8.df0a0220.2dfe0.7f88@mx.google.com
[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]
>>> "BB" == Bruno Barbier <brubar.cs@gmail.com> writes:
> Hi Uwe,
> Uwe Brauer <oub@mat.ucm.es> writes:
>> Here is an example where the org-lookup-first method seems to fail
>> #+TBLFM: $3='(org-lookup-first $2 '(remote(Table1A, @I$1..@II$1))
>> '(remote(Table1A, @I$7..@II$7)))::$4='(org-lookup-first $2
>> '(remote(Table2A, @I$1..@II$1)) '(remote(Table2A,
>> @I$7..@II$7)))::$5=vsum($3..$4);f2
> You forgot to update the column numbers: the names to look for are now in
> the column '2', and, the totals are now in column '8'. This should work:
> #+TBLFM: $3='(org-lookup-first $2 '(remote(Table1A, @I$2..@II$2)) '(remote(Table1A, @I$8..@II$8)))
> #+TBLFM: $4='(org-lookup-first $2 '(remote(Table2A, @I$2..@II$2)) '(remote(Table2A, @I$8..@II$8)))
> #+TBLFM: $5=vsum($3..$4);f2
Arg 😨
I even tried
#+TBLFM: $3='(org-lookup-first $2 '(remote(Table1A, @I$1..@II$1))'(remote(Table1A, @I$8..@II$8)))
#+TBLFM:$4='(org-lookup-first $2 '(remote(Table2A, @I$1..@II$1)) '(remote(Table2A, @I$8..@II$8)))
#+TBLFM:$5=vsum($3..$4);f2
So I changed
1. $7-->$8
2. but *not* $1-->$2
Thanks very much
Uwe
--
Warning: Content may be disturbing to some audiences
I strongly condemn Hamas terroristic attack on Israel.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the NATO membership of Ukraine.
I support the EU membership of Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2023-10-12 14:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-08 12:58 equivalent of VLOOKUP (in ods) to org-table Uwe Brauer
2023-10-08 16:42 ` Bruno Barbier
2023-10-08 16:49 ` Uwe Brauer
2023-10-08 16:59 ` [the cryptic @@#$7] (was: equivalent of VLOOKUP (in ods) to org-table) Uwe Brauer
2023-10-08 17:30 ` Bruno Barbier
2023-10-08 17:46 ` [the cryptic @@#$7] Uwe Brauer
2023-10-11 15:01 ` Uwe Brauer
2023-10-12 13:21 ` Bruno Barbier
2023-10-12 14:40 ` Uwe Brauer [this message]
2023-10-08 17:11 ` equivalent of VLOOKUP (in ods) to org-table Bruno Barbier
2023-10-08 17:45 ` Uwe Brauer
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=87ttqv52go.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=brubar.cs@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).