TRANSPOSE function
TRANSPOSE turns rows into columns and columns into rows with a live formula. Paste Special Transpose is the static alternative, which gives a copy that is not linked to the source.
Example
Read it as a sentence: flip B1:C3 so rows become columns and show the top left value, which gives Item.
Syntax
TRANSPOSE(array)
-
array(required) - Range or array to flip.
Returns: The array with rows and columns swapped.
One TRANSPOSE formula can fill more than one cell. When the result has several values, they spill into the cells below or to the right of the formula.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=TRANSPOSE({1,2,3}) | 1 | Row to column |
=TRANSPOSE(5) | 5 | Scalar |
=TRANSPOSE(Items!B1:C3) | Item | Range |
=TRANSPOSE(Data!F1:F2) | 0 | Blank cell |
=TRANSPOSE(Data!F4:F6) | TRUE | Mixed types and error |
The Items sheet these formulas read
The Data sheet these formulas read
A cell that starts with = holds that formula.
Watch out for
- Older Excel needs it entered as an array formula (Ctrl+Shift+Enter).
- The result is linked to the source; Paste Special gives a static copy.
Where it works
- Excel
- TRANSPOSE is in every version of Excel from 2007 on.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Lookup and reference functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .