From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: [SOLVED?] (was: how to compare strings of two columns for huge tables)
Date: Wed, 13 Jun 2018 22:45:08 +0200 [thread overview]
Message-ID: <87a7ryiffv.fsf@mat.ucm.es> (raw)
In-Reply-To: 87efhaifxf.fsf@mat.ucm.es
[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]
>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:
> Hi
> I have tables (several hundred rows) like this
> | 03217428 | 3217428 | |
> | 71310606 | 71310606 | |
> | 05944371 | 5944371 | |
> | 70086251 | 70086251 | |
> | 50325182 | 50325182 | |
> | 04559101 | 4559101 | |
> | 51005420 | 51005420 | |
> | 51141846 | 51141846 | |
> | 05448640 | 5448640 | |
> | 06602597 | 6602597 | |
> #+TBLFM: $3=if("$1" == "$2", string("OK"))
> So I would like to add a new column, which would return OK, if the
> strings of each row of the to columns coincide. I tried
> #+TBLFM: $3=if("$1" == "$2", string("OK"))
> But it did not work. I googled and looked up the manual, no help.
> It seems a common problem for spreadsheet so I presume there must be an
> solution but I am unable to find it and would appreciate any help.
> Thanks
> Uwe Brauer
The following seems to work
| 03217428 | 3217428 | NO |
| 71310606 | 71310606 | OK |
| 05944371 | 5944371 | NO |
| 70086251 | 70086251 | OK |
| 50325182 | 50325182 | OK |
| 04559101 | 4559101 | NO |
| 51005420 | 51005420 | OK |
| 51141846 | 51141846 | OK |
| 05448640 | 5448640 | NO |
| 06602597 | 6602597 | NO |
| 8 | 9 | NO |
| Hallo This | Hallo This | OK |
#+TBLFM: $3=if("$1" == "$2", OK, string("NO"))
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6007 bytes --]
prev parent reply other threads:[~2018-06-13 20:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-13 20:34 how to compare strings of two columns for huge tables Uwe Brauer
2018-06-13 20:45 ` Uwe Brauer [this message]
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=87a7ryiffv.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--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).