Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to swap two cells in LibreOffice Calc

I'd like to be able to select two cells in LibreOffice Calc, and press a magic key of some kind, with the result that the content of the two cells are exchanged.

How do I do that?

I found this solution for Excel, but it doesn't work in LibreOffice: https://superuser.com/questions/257516/swap-cell-contents-in-excel

Thanks Jesper.

like image 603
Jesper K. Pedersen Avatar asked Sep 29 '14 05:09

Jesper K. Pedersen


People also ask

How do you swap two cells in numbers?

You can also use a shortcut to swap two numbers in Excel. First, select the cells containing the numbers you want to swap. Then, press and hold down the "Ctrl" key on your keyboard. While holding down the "Ctrl" key, press the "X" key.

How do I swap columns in openoffice?

Re: Swap two columnsClick anywhere in the highlighted area and drag the column. The mouse pointer should change to show the drag operation. Before you release the mouse button, also press the Alt key. When the mouse pointer is at the left side of column A, release the mouse button.


1 Answers

I realize this question was posted some time ago, but now, as of at least LibreOffice 4.2, you can achieve this via Alt+drag. I was looking for this solution today, and after seeing @wolfQueen's answer, I tried random key combos until I discovered this.

Depending on your system, this may be a bound action. In my OS and desktop environment (Ubuntu 16.04, XFCE) Alt+drag is a window move action, so I have to start dragging the cell, then press Alt to prevent the window manager from stealing the show.

Hope this helps anyone with this same question!

like image 86
A.Ford Avatar answered Oct 17 '22 00:10

A.Ford