How to Swap Columns with Rows in Excel

There are two ways to “swap columns with rows in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

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
Annotated stepsExcel
1

Click the column letter to select the entire column you want to move.

2

Press Ctrl+X to cut it (a marching-ants border appears).

3

Right-click the column header where it should land and choose Insert Cut Cells — the other columns shift over to make room.

4

Alternatively, hold Shift and drag the selection border to the new spot, watching the I-beam guide for where it will insert.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “swap columns with rows in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected columns shows up while it is still harmless. 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 turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.

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. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.

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. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Here is the takeaway for “swap columns with 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

This is also commonly searched as “excel swap columns rows” and “swap column row excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.

Why do people search for this in so many different ways?

Because the same task has many names. “excel swap columns rows”, “swap column row excel” all point at the one operation explained on this page, which is why they all lead here.