From: jman <emacs-orgmode@city17.xyz>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [Question] Getting cell value and use it in table formula
Date: Tue, 01 Oct 2024 16:35:47 +0200 [thread overview]
Message-ID: <87jzerriv0.fsf@city17.xyz> (raw)
Hello there,
Let's look at the following table:
----------s---------s----------
| EUR | USD | Exchange rate |
|-----+--------+---------------|
| 10 | 8.97 | 0.897 |
| 15 | 13.455 | |
#+TBLFM: $2='(* (string-to-number $1) (string-to-number (org-table-get 2 3)))
----------e---------e----------
I've tried a number of things but this is the only incantation is able to retrieve the value from
the cell "@2$3" and use it into the table formula.
Is there a cleaner way to retrieve a cell value and use it into a table formula that is a lisp
expression?
Any suggestion? Thanks.
Best,
next reply other threads:[~2024-10-01 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 14:35 jman [this message]
2024-10-01 15:04 ` [Question] Getting cell value and use it in table formula tomas
2024-10-01 20:01 ` jman
2024-10-02 4:16 ` tomas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzerriv0.fsf@city17.xyz \
--to=emacs-orgmode@city17.xyz \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.