* org-table-transpose-table-at-point does not convert formulas
@ 2023-10-06 12:36 Uwe Brauer
2023-10-07 9:55 ` [FR] Auto-adjusting table formulas in org-table-transpose-table-at-point Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2023-10-06 12:36 UTC (permalink / raw)
To: emacs-orgmode
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [FR] Auto-adjusting table formulas in org-table-transpose-table-at-point
2023-10-06 12:36 org-table-transpose-table-at-point does not convert formulas Uwe Brauer
@ 2023-10-07 9:55 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-10-07 9:55 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode
Uwe Brauer <oub@mat.ucm.es> writes:
> Hi
>
> Starting with this
> ...
> #+TBLFM: $3=($2+1)-$1
> #+end_src
>
> org-table-transpose-table-at-point leads to
> ....
> #+TBLFM: $3=($2+1)-$1
> #+end_src
>
> However the correct formula should have been
> ...
> #+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)
No, we do not have such command - `org-table-transpose-table-at-point'
does not currently do any formula adjustments.
Patches welcome!
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-07 9:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06 12:36 org-table-transpose-table-at-point does not convert formulas Uwe Brauer
2023-10-07 9:55 ` [FR] Auto-adjusting table formulas in org-table-transpose-table-at-point Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).