Flip Rows and Columns with TRANSPOSE

Excel Formulas › Lookup

All versionsTRANSPOSE

TRANSPOSE flips a range on its side — rows become columns and columns become rows — with a live formula that updates as the source changes. It’s the dynamic alternative to Paste Special → Transpose.


Quick formula: to flip the range A1:C2 (2 rows, 3 cols) into 3 rows, 2 cols:
=TRANSPOSE(A1:C2)
In Excel 365 it spills automatically; in older Excel, select the target block and array-enter with Ctrl+Shift+Enter.

Functions used (tap for the full reference guide):

The example

A wide 2×3 table flipped to a tall 3×2.

AB
1Transposed →
2Jan100
3Feb140
4Mar120

The formula

Flip the source range:

=TRANSPOSE(A1:C2) // rows ↔ columns, live

How it works

TRANSPOSE swaps the two dimensions:

  1. It reads the source range and outputs it rotated — what was a row becomes a column and vice versa.
  2. In Excel 365, enter it in one cell and the result spills into the flipped shape.
  3. In older Excel, first select a block of the right size (3×2 here), type the formula, and press Ctrl+Shift+Enter to array-enter it.
  4. Because it’s a formula, editing the source updates the transposed copy live — unlike a one-time paste.

One-time flip? Copy the range, right-click the destination, and choose Paste Special → Transpose — it pastes values rotated, no formula. Use TRANSPOSE when you want the flip to stay linked to the source.

Try it: interactive demo

Live demo

A wide table, transposed to tall.

=TRANSPOSE(A1:C2)
Source (2×3)
JanFebMar
100140120
Transposed (3×2)
Jan100
Feb140
Mar120

Variations

Transpose a single row to a column

Works on 1-D ranges too:

=TRANSPOSE(A1:E1)

Transpose a spill result

Flip the output of another dynamic-array formula:

=TRANSPOSE(SORT(A2:A100))

Paste Special (one-time)

Copy → Paste Special → Transpose for a static flip.

Pitfalls & errors

#SPILL! (365) or partial result (older). The destination must be clear and, in pre-365, exactly the right size before array-entering.

Pre-365 needs Ctrl+Shift+Enter. Entering TRANSPOSE as a normal formula in older Excel returns only the first value.

It’s a live link. The transposed range mirrors the source; you can’t edit the flipped cells directly. Use Paste Special for an independent copy.

Practice workbook

📊
Download the free Flip Rows and Columns with TRANSPOSE practice workbook
A wide table transposed to tall (result shown), the row-to-column and Paste-Special notes, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I switch rows and columns in Excel with a formula?
Use =TRANSPOSE(range). In Excel 365 it spills automatically; in older versions, select the correctly sized block and press Ctrl+Shift+Enter to array-enter it.
What's the difference between TRANSPOSE and Paste Special Transpose?
TRANSPOSE is a live formula that stays linked to the source. Paste Special > Transpose pastes a one-time, independent copy of the values rotated.
Why does TRANSPOSE only show one value in older Excel?
It needs to be array-entered. Select the target range of the right size, type the formula, and press Ctrl+Shift+Enter.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Flatten to a single column · Reshape a list into a grid · Combine ranges (VSTACK/HSTACK)

Function references: TRANSPOSE