From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cAcyBr//H2U/twAAauVa8A:P1 (envelope-from ) for ; Fri, 06 Oct 2023 14:38:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cAcyBr//H2U/twAAauVa8A (envelope-from ) for ; Fri, 06 Oct 2023 14:38:23 +0200 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 50E2A45D38 for ; Fri, 6 Oct 2023 14:38:22 +0200 (CEST) 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) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696595903; 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=kpd1yiT3y5E2/OyAl1x/yJbz1r2adszcnDwAn/g5ZXw=; b=sRJj8vdpWKEq1IAAFMIsqhx3lM6FtVNR0PjZXh1vIppcu1GL/rypv5nYCcWzp5nNtU1wVW 3lBAMcoC76bE4ZfbvgkG5iHxQQ9EtRy/HtM/UHlyh1zf3u9U4IbyjoTqxAd1cAqkDuE3wf FligDgJp4azuSvGZWtoA2+C3H+vqjBNBAm9gBmngM5Aqs2herzdhLF/wNrml2mos6/1HD9 acA1bFM0f/a2tLYDLES+xy016BkakLYaV6JYjfQcjDO3d+ZNTLG8gIuLLZrVj3GcfoiWaQ RerJsvs3CktY/DXYsvyvM/ZuQPqIEvFnSyiIOhDXSX+jZMUazZb17BRn+xAPbQ== 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=1696595903; a=rsa-sha256; cv=none; b=F76xdHT1YBoLlr39t1EaptPqRUV/a3pmCejxcMJiJtPwerdDFr7LlaCQiPw8Bb2FZnEc/g EIKn/TkrTU6JMLsAOckJch84N5D50oEZ21sZob07BnRXpVY1CwJGfw59SWg9wDPQ8Ch6LF HrDYKaFYG4YkEt0JjJTP7tfunn29FChoD6PaOgJW7QH4AY2DO72yHmPOXpXKjbPnf7vGar ltpYxdwll4jU7w0DCTppy8pD2vfHDUxreIpCCI8c+6PhKBxSNUJBHDe5zP6US2Wq6tT1bx CwEjbbYI95wvep+LQPtVE0LX9X+olEdo1GMkewWLU4IvCeRjjomKhm10kO8SGQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qok54-0007Ow-DX; Fri, 06 Oct 2023 08:37:22 -0400 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 1qok4v-0007Cq-89 for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 08:37:17 -0400 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 1qok4s-0007UN-K2 for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 08:37:12 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qok4m-0008Kk-Gr for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 14:37:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: org-table-transpose-table-at-point does not convert formulas Date: Fri, 06 Oct 2023 14:36:56 +0200 Message-ID: <87pm1sx6zb.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:hafe1lS5+ptEkto0zo3RDlfMK6M= 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.61 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 50E2A45D38 X-Spam-Score: -2.61 X-TUID: lmb5WLbKEf8v Hi Starting with this #+begin_src | pos | rango | weight | |-----+-------+--------| | 23 | 329 | 307 | | 71 | 329 | 259 | | 77 | 333 | 257 | | 58 | 333 | 276 | | 155 | 310 | 156 | | 164 | 325 | 162 | | 203 | 330 | 128 | #+TBLFM: $3=($2+1)-$1 #+end_src org-table-transpose-table-at-point leads to #+begin_src | pos | 23 | 71 | 77 | 58 | 155 | 164 | 203 | | rango | 329 | 329 | 333 | 333 | 310 | 325 | 330 | | weight | 307 | 259 | 257 | 276 | 156 | 162 | 128 | #+TBLFM: $3=($2+1)-$1 #+end_src However the correct formula should have been #+begin_src |-------+-----+-----+-----+-----+-----+-----+-----| | pos | 23 | 71 | 77 | 58 | 155 | 164 | 203 | | rango | 329 | 329 | 333 | 333 | 310 | 325 | 330 | | peso | 307 | 259 | 257 | 276 | 156 | 162 | 128 | #+TBLFM: @4$2..@4$13=@3+1-@2 #+end_src Does there exist such a command (Scalc and I presume excel allow to transpose a table and convert the corresponding formula) Thanks and regards Uwe Brauer -- Warning: Content may be disturbing to some audiences 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/