From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2IfYNR65CWSnDAAASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 11:46:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CEP3NR65CWR9QAAA9RJhRA (envelope-from ) for ; Thu, 09 Mar 2023 11:46:54 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8BBC11FA1D for ; Thu, 9 Mar 2023 11:46:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paDma-0000Ve-JX; Thu, 09 Mar 2023 05:46:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paDmY-0000VS-OX for emacs-orgmode@gnu.org; Thu, 09 Mar 2023 05:45:59 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paDmW-0001Bu-UD for emacs-orgmode@gnu.org; Thu, 09 Mar 2023 05:45:58 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1paDmU-0001yc-S0 for emacs-orgmode@gnu.org; Thu, 09 Mar 2023 11:45:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: How to exclude colum titles from calculations Date: Thu, 09 Mar 2023 11:45:48 +0100 Message-ID: <878rg6nqxv.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:rfSY5clRSxmhcLL+KLEYxKiEfZQ= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678358814; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=O0mkLx0rKAt997PrwE4ZcGB7m9e3juDnjcbIZxINa3g=; b=URc5UgglUvxWyyMmHSwZySj1g16Hfg6QGkyuJk+HcmaWE2wGsZJ7V61Zv7QghqKz3ibpfF 3E1GQYtqv3E9/sf2MbGxn145qznnQujkdsSs3y3QP3AX8/D6u2WOYEq29Ra1/7QgA+UhfC WtOwcTe8LrDNjLkIpaeXYrejOvy2dwR/kIYw/usMSh1kSu+jXL6NlxJRV6N4IVK9gNPeO5 fbEa6NILWyQwqZT2fGsewRtOYXP5CRh3v5dDok5Yvy5pAQN6U6EeFI9D9UCTE8UWzcqcEc P3TSbyhpFd2SsHOn2pctMxDnIcDcu2Cn4eMqqJzKM4IiMs9mAeuME2Nm8HDaoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678358814; a=rsa-sha256; cv=none; b=mF8ze3GfuoeJzI9MTw+bmgq0hdDK+PBuMQ2tizhjHUqgdeVtDLsFtSK4yyr0eFQVCX2h4z 8WiVCX/0aDTpAJRYgsyT0VcqewWf0NvHTcSIPjCBehn4UhRAciBKV2V/cEZ9j7SkkPnNYr s9OXstz1CICy/rfmziKYqSEGe4XkYsVefaBVXvEBPNujrvNuM5eNGbreWA04a9Q7DRZlMO 2NKmm4JAQ/CX7ZKOiryLsauzZrDnJNxjyLkmNtg2TGrzEV5lY5gYnpMmxCNbStDNs7vVIh 1dIHhBYye8WpcHJ7WHXZa0gF2eMKb7PoKnNrnQ9mmfKzpzsRbQwX+biBh1fJxw== Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none) X-Migadu-Spam-Score: 4.00 X-Spam-Score: 4.00 X-Migadu-Queue-Id: 8BBC11FA1D X-Migadu-Scanner: scn1.migadu.com X-TUID: 0nlenOreoBGe Hi Please take this example: |-------+-----------+-------------+-----------+----------| | | Account 1 | 1/4 part of | Account 2 | 1/4 | |-------+-----------+-------------+-----------+----------| | Item1 | 224999 | | 224999 | | | Item2 | 269403 | | 269403 | | | Item3 | | | | | | Item4 | | | | | | Item5 | 10300 | 2575.00 | | | #+TBLFM: $3=if(typeof(0.25*$2) == 12, string(""),0.25*$2); E f-2::$5=if(typeof(0.25*$4) == 12, string(""),0.25*$4); E f-2 C-c C-c Leads to the expected |-------+-----------+-------------+-----------+----------| | | Account 1 | 1/4 part of | Account 2 | 1/4 | |-------+-----------+-------------+-----------+----------| | Item1 | 224999 | 56249.75 | 224999 | 56249.75 | | Item2 | 269403 | 67350.75 | 269403 | 67350.75 | | Item3 | | | | | | Item4 | | | | | | Item5 | 10300 | 2575.00 | | | #+TBLFM: $3=if(typeof(0.25*$2) == 12, string(""),0.25*$2); E f-2::$5=if(typeof(0.25*$4) == 12, string(""),0.25*$4); E f-2 However when I have one line on top of the table | | What | | This | | |-------+-----------+-------------+-----------+-----| | | Account 1 | 1/4 part of | Account 2 | 1/4 | |-------+-----------+-------------+-----------+-----| | Item1 | 224999 | | 224999 | | | Item2 | 269403 | | 269403 | | | Item3 | | | | | | Item4 | | | | | | Item5 | 10300 | 2575.00 | | | #+TBLFM: $3=if(typeof(0.25*$2) == 12, string(""),0.25*$2); E f-2::$5=if(typeof(0.25*$4) == 12, string(""),0.25*$4); E f-2 Then C-u C-u C-c C-c leads to | | What | | This | | |-------+-----------+------------------------------+-----------+------------------------------| | | Account 1 | mul = 12 ? : 0.25 Account 1 | Account 2 | mul = 12 ? : 0.25 Account 2 | |-------+-----------+------------------------------+-----------+------------------------------| | Item1 | 224999 | 56249.75 | 224999 | 56249.75 | | Item2 | 269403 | 67350.75 | 269403 | 67350.75 | | Item3 | | | | | | Item4 | | | | | | Item5 | 10300 | 2575.00 | | | #+TBLFM: $3=if(typeof(0.25*$2) == 12, string(""),0.25*$2); E f-2::$5=if(typeof(0.25*$4) == 12, string(""),0.25*$4); E f-2 Which is terrible. Any idea how to avoid this? Thanks and regards Uwe Brauer -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's military. I support the ban of Russia from SWIFT. I support the EU membership of the Ukraine. https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/