From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: org-table-transpose-table-at-point does not convert formulas
Date: Fri, 06 Oct 2023 14:36:56 +0200 [thread overview]
Message-ID: <87pm1sx6zb.fsf@mat.ucm.es> (raw)
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/
next reply other threads:[~2023-10-06 12:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-06 12:36 Uwe Brauer [this message]
2023-10-07 9:55 ` [FR] Auto-adjusting table formulas in org-table-transpose-table-at-point Ihor Radchenko
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pm1sx6zb.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.