In Excel: select the whole column, Cut it (Ctrl+X), right-click the column where it should go and choose Insert Cut Cells; or hold Shift and drag the selection border to slot it in without overwriting anything.
On this page7
Click the column letter to select the entire column you want to move.
Press Ctrl+X to cut it (a marching-ants border appears).
Right-click the column header where it should land and choose Insert Cut Cells — the other columns shift over to make room.
Alternatively, hold Shift and drag the selection border to the new spot, watching the I-beam guide for where it will insert.
What this does
Moving a column relocates it to a different position in the table while every other column slides over to make room — nothing is overwritten and no data is lost. The reliable way is to select the column, Cut it (Ctrl+X), right-click the destination column and choose Insert Cut Cells, which opens a gap and drops the column in. The faster way is to select the column, then hold Shift and drag the green selection border to where you want it; the Shift key is what tells Excel to insert between columns rather than paste on top of them. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. For “swap columns and rows in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected columns change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a layout choice that keeps the sheet readable and sortable useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
A table runs ID, Notes, Name, Total in columns A–D, and you want Total (column D) sitting before Name, between A and the rest. Click the D header to select the whole column, hold Shift, and drag its border to the boundary left of column C: as you drag, a thin I-beam shows where it will land, and releasing drops Total into place while Name and the others shuffle right. The Cut ▸ Insert Cut Cells route does the same: Ctrl+X on column D, right-click column C, Insert Cut Cells. You move columns to put a table in a sensible reading order — key fields first, totals where the eye expects them, related data side by side — without retyping anything. Insert Cut Cells and Shift+drag both reorder in place, so the layout improves while the data stays intact. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “swap columns and rows in excel”: follow the steps at the top, check the result on the sheet itself, and keep undo in mind while you experiment. Done once deliberately, it becomes something you do from memory in Excel rather than something you search for again.
Common mistakes
- Dragging without holding Shift, which pastes the column on top of the destination and overwrites it instead of inserting.
- Using ordinary Paste instead of Insert Cut Cells, so the moved column lands over existing data.
- Selecting only a few cells rather than the whole column letter, so the move misaligns rows.
- Forgetting that formulas referencing the column update automatically — but absolute or external references may need a check after the move.
Frequently asked questions
How do I move a column without overwriting the one next to it?
Cut the column (Ctrl+X), right-click the destination and choose Insert Cut Cells, or Shift+drag the border. Both open a gap and slot the column in rather than pasting over the neighbour.
How do I swap two columns?
Move one of them past the other using Shift+drag or Cut ▸ Insert Cut Cells; the remaining columns close the gap and shift, leaving the two effectively swapped.
Why does dragging just overwrite the cells?
You dragged without Shift. Plain drag-and-drop replaces the target; holding Shift switches it to insert-between-columns, which is what moves without overwriting.
Other ways people ask this
On the way here you may have searched this as “excel swap columns and rows”, “excel swap rows and columns”, “how do i swap rows and columns in excel” and “how to swap rows and columns in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel swap columns and rows”, “excel swap rows and columns”, “how do i swap rows and columns in excel” all point at the one operation explained on this page, which is why they all lead here.