How to transpose rows and columns in Excel
In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), copy a range, click a blank cell, then Home > Paste > Paste Special > Transpose (or right-click Paste Special).
For a live link that updates when the source changes, use =TRANSPOSE(A1:D5) in Microsoft 365 (dynamic array). Older Excel needs Ctrl+Shift+Enter for the same formula.
Applies to Excel for Microsoft 365, Excel 2021/2024, Excel for Mac and Excel for the web. Google Sheets has Paste special > Transposed and =TRANSPOSE().
Flip a table orientation
Paste Special Transpose (static)
- Select the source range and copy (Ctrl+C).
- Click the top-left cell of the destination (empty area).
- Home > Paste arrow > Paste Special > tick Transpose > OK.
TRANSPOSE formula (dynamic)
- Click one empty cell with room for the flipped spill range.
- Type
=TRANSPOSE(A1:D10)and press Enter on Microsoft 365. - On older Excel, select the full output size first, type the formula, then Ctrl+Shift+Enter.
Clean up after paste
- Check column widths — transposed headers may need Wrap Text.
- If you only needed values, Paste Special > Values after transpose.
- Delete or hide the original only after you confirm the flip.
Paste vs formula
| Method | Updates with source? | Best for |
|---|---|---|
| Paste Special Transpose | No (snapshot) | One-off layout change |
| TRANSPOSE() | Yes | Dashboards that must stay linked |
Our take: use Paste Special for reports you will edit by hand; use TRANSPOSE when the source table keeps changing.
If it fails
- #SPILL!: something blocks the output range — clear cells or move the formula.
- Paste Special greyed out: copy a range first; cutting alone is not enough on some builds.
- Numbers become dates: set formats after paste.
- Need unpivot instead: see Power Query intro for stacking columns into rows.
Frequently asked questions
What does transpose mean in Excel?
It flips rows into columns (and columns into rows).
Does Paste Special Transpose stay linked?
No — it pastes values/formats as a snapshot.
How do I transpose with a formula?
Use =TRANSPOSE(range) on Microsoft 365, or array-enter it on older Excel.
Can I transpose in Excel for the web?
Yes — Paste Special Transpose and TRANSPOSE are available.
Transpose vs Power Query unpivot?
Transpose flips the whole block; unpivot reshapes wide data into tall rows.