How to transpose rows and columns in Excel

Updated · DeskHowTo

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.

Jump to

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)

  1. Select the source range and copy (Ctrl+C).
  2. Click the top-left cell of the destination (empty area).
  3. Home > Paste arrow > Paste Special > tick Transpose > OK.

TRANSPOSE formula (dynamic)

  1. Click one empty cell with room for the flipped spill range.
  2. Type =TRANSPOSE(A1:D10) and press Enter on Microsoft 365.
  3. On older Excel, select the full output size first, type the formula, then Ctrl+Shift+Enter.

Clean up after paste

  1. Check column widths — transposed headers may need Wrap Text.
  2. If you only needed values, Paste Special > Values after transpose.
  3. Delete or hide the original only after you confirm the flip.

Paste vs formula

MethodUpdates with source?Best for
Paste Special TransposeNo (snapshot)One-off layout change
TRANSPOSE()YesDashboards 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.

Sources checked: Microsoft Support: TRANSPOSE function. Verified October 2026.