From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: how to compare strings of two columns for huge tables Date: Wed, 13 Jun 2018 22:34:36 +0200 Message-ID: <87efhaifxf.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTCTg-0001SG-Cq for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 16:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTCTd-0005Cm-BM for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 16:34:48 -0400 Received: from [195.159.176.226] (port=35157 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTCTd-0005BV-3k for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 16:34:45 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fTCRT-0003eU-IR for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 22:32:31 +0200 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" To: emacs-orgmode@gnu.org 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