From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qJ2DJ7MLSWVOhQAAauVa8A:P1 (envelope-from ) for ; Mon, 06 Nov 2023 16:52:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJ2DJ7MLSWVOhQAAauVa8A (envelope-from ) for ; Mon, 06 Nov 2023 16:52:19 +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 715C9322DC for ; Mon, 6 Nov 2023 16:52:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699285939; a=rsa-sha256; cv=none; b=uhiqkS977YJqwefWJaWGiLCpN3M1Yj+fHbmh7l+cT7Dm6mKNTW+o1vOW/yt//BLHxOO7vw 8exyoXAqnAynFAGQxTQRP3tbzD80eKIH3bmkWCBOq2s6JrtGtJ1AsEQB5ItVQhS+7uRQsx oIikNJ1zXCIlTIl47dsYL1qWDVehx6XJ5lcC8yQ9NjNvDSS3nNmvmZeHJDNvUMhyOTtO2u wCcBJ/Stu//CCLmM2t6eRuWuijRJl6EaPq0BL+CqGIlJt2csNup/KEgHnfnd6lTQBm6XKv 51XSoWaJUrxO2aRoKlV3L6+NlNUCub/TFpcpglWDaCkVsvuzhS1X/oWRU9jgKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699285939; 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=2DFDwAeVYNXK4bRBDo1gPcd2dHdZ4vUR4AkYl01N14w=; b=mrAzedJ+xQXwvgOC/BDEcuTQrvjIDWbQsJctvgBvniil5DmPDKqZZdysrcuGK6sgI9y+hn +0rzWvibM5WNl5JtRdiUt8a7FKatDssXdLhE2DOQhnrTv1KGIkvHpxcKy2ixduG1tvL/90 6wRhUJ5aanxBhrzKqlfAdNka7jWQ7kNJf91vOS4mq6Pai2K3HtE7LmPjx8eEfBlgOzbuDy 8AGFWhbM0AyKQRHk7PmRB4SIqthLwwNXGV58lJS0MHtjXeu74UoF1ogOvPtkZGHGX+9AFR GiJCEDrnh+LhbieFynZffUtdI3Enk9C922sURTGdjPKUqu/zqIVSy7QAPZPLJg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r01sx-0004NU-QJ; Mon, 06 Nov 2023 10:51:31 -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 1r01sv-0004N9-OK for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 10:51:29 -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 1r01su-0007nr-27 for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 10:51:29 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1r01sq-0000VT-R4 for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 16:51:24 +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 certain row values from calculation in a table Date: Mon, 06 Nov 2023 16:51:16 +0100 Message-ID: <87sf5i3mob.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:Ch0OD3hbFjgmmWb8r0SH8XauIa8= 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: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 715C9322DC X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.51 X-Spam-Score: -2.51 X-TUID: fQBlMTbqdkRv Hi all Please look at | | Price | |---+--------| | / | 10.98 | | | 11.90 | | | 19.98 | | | 13.79 | | | 29.97 | | | 18.98 | | | 13.79 | | | 11.90 | | | 24.28 | |---+--------| | | 155.57 | #+TBLFM: @11$2=vsum(@I$2..@II$2);f2 I would like to exclude the first value from the sum by adding some mark in that row. Of course, I also could use | | Price | |---+--------| | / | 10.98 | |---+--------| | | 11.90 | | | 19.98 | | | 13.79 | | | 29.97 | | | 18.98 | | | 13.79 | | | 11.90 | | | 24.28 | |---+--------| | | 144.59 | #+TBLFM: @11$2=vsum(@II$2..@III$2);f2 But suppose the value I'd like to exclude would be 29.97, then I would need some reordering, I prefer to avoid. Any idea how to exclude row values in a column? Regards Uwe Brauer -- I strongly condemn Hamas heinous atrocities on Israel, especially the despicable pogroms. 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/