How to Swap Columns in Excel (Step-by-Step)
In this article
Swapping two columns in Excel is simple once you know the right move: insert a blank helper column, cut one column into it, cut the other into the space left behind, then delete the helper. That preserves your data, formulas and formatting far better than dragging cells around. You do not need any add-ins or advanced formulas, just a clean copy of the workbook and a couple of minutes.
What You'll Need
- Microsoft Excel on Windows, Mac or the web (the ribbon paths below are for desktop Excel; labels can differ slightly by version, device or region)
- A workbook you can edit, ideally saved first or duplicated so you can undo mistakes
- A clear idea of which two columns you want to exchange, and whether anything references them
Step-by-Step
- Save a copy first. Use File > Save a Copy (or just Save if you have version history) so you can always return to the original. Column swaps often shift formulas in ways you do not notice until later.
- Check what depends on the columns. Click any cell that contains a formula referring to the columns you want to swap. If a formula points at, say, column B and you move B to D, the references may break or point at the wrong data. Look for relative and absolute references ($B$1 style).
- Insert a helper column. Right-click the letter header of the column immediately to the right of the pair you are swapping and choose Insert. This gives you an empty column to move data into without overwriting anything.
- Cut the first column. Click the column letter header to select the whole column, then press Ctrl+X (Windows) or Command+X (Mac).
- Paste it into the helper column. Right-click the helper column's header and choose Paste. The original column is now empty, which is exactly what you want.
- Cut the second column into the empty space. Select the column you want to move into that empty slot and press Ctrl+X, then right-click the empty column header and paste. Your two columns have now traded places.
- Delete the helper column. Right-click the helper column header and choose Delete. The data is back in a tidy, contiguous block with the two columns swapped.
- Repair formulas if needed. Check any formulas that referenced the moved columns. If they now return errors or wrong values, edit the cell references, or use Find & Replace (Ctrl+H) to update them. Press Ctrl+Z if something has gone badly wrong and you want to step backwards.
- Verify and save. Scroll the whole sheet to confirm nothing shifted unexpectedly, then save. If you have tables, check that any charts or pivot tables still point at the right fields.
A quicker alternative for adjacent columns: select both columns, then hold Shift and drag the column boundary to the side. Excel moves the pair together. It is fast but less forgiving, so use the helper-column method for important data.
Common Mistakes
The biggest mistake is dragging or copying rather than cutting. A drag moves the cell contents but can overwrite the target if you are not careful, and a plain copy leaves the original in place, so you end up with duplicate data instead of a swap.
Another common slip is forgetting that whole-column moves drag formulas with them. If a total in column E sums column C and you move C to D, the sum may keep pointing at the old location or shift to an empty column. Always test the formulas after a swap.
People also break merged cells or conditional formatting. Swapping columns that contain merged headers can produce error messages or strange formatting. Unmerge before you start if you can, or swap only the data rows.
Finally, be wary of moving columns that feed charts, pivot tables or data validation lists. Those links can break silently, so check them after the swap rather than assuming everything is fine.
Tips
Use a helper column rather than copying and pasting over the top of data. It is the safest method and keeps the undo trail clean.
Name your columns before you move them. If you use Excel tables, giving each column a clear header makes it obvious afterward whether the swap went to plan.
If you need to swap many columns, do them in batches and save after each one. It is far easier to recover from a single bad swap than from six at once.
For a one-off reorder, consider copying the whole range into a new sheet in the order you want, then replacing the original. This avoids formula disruption entirely.
Keep a backup copy of the file before any structural change. You can always delete it once you are satisfied.
Troubleshooting
The numbers look wrong after the swap. A formula is probably still pointing at the old column letter. Click the cell, check the formula bar and update the reference. Find & Replace can help if the pattern is consistent.
I got a warning about replacing cell contents. That means you pasted onto cells that were not empty. Undo with Ctrl+Z, insert a genuine helper column and try again.
The column will not move. The sheet may be protected. Go to Review > Unprotect Sheet if you know the password, or ask whoever set it up.
Formatting did not come across. Check that you pasted normally rather than as values. Right-click > Paste Options lets you choose Keep Source Formatting.
My chart broke. Charts can lose series when the source range changes. Right-click the chart and choose Select Data to re-point the series at the swapped columns.
The swap looked fine but a pivot table is stale. Refresh the pivot table from the PivotTable Analyze tab so it reads the updated layout.
Frequently Asked Questions
Can I swap two non-adjacent columns?
Yes. Use the same helper-column method, or cut one column and insert it next to the other, then move the second into the gap. Just keep checking the formulas as you go.
Does swapping columns break formulas?
It can. Formulas that refer to the moved columns by letter may follow the data or may not, depending on how you moved them. Always test the formulas after a swap.
Can I swap columns on Excel for the web?
Yes, the cut, insert and paste approach works in the browser version. Ribbon labels may look slightly different.
Is there a keyboard shortcut for swapping columns?
There is no single built-in shortcut for a column swap. You can combine Ctrl+X, arrow keys and paste, or write a short macro if you do it often.
How do I swap cells rather than whole columns?
Select the two cells or ranges, then hold Shift while dragging one boundary onto the other. Excel inserts the dragged cells and shifts the rest along.
What if I only want to swap the data, not the formatting?
Copy one column, paste as values into a helper column, then move the values back into place. This leaves the destination formatting untouched.