What is the TRANSPOSE function?
=TRANSPOSE(array)TRANSPOSE swaps the rows and columns of a range. Use it to turn a vertical table horizontal or a horizontal one vertical.
The value in row i, column j of the original goes to row j, column i of the result. The result is an array that fills several cells. Watch each value move on the sheet above.
Arguments
- array
- The range or array whose rows and columns you want to swap.
TRANSPOSE examples
Example 1. Flip a table
=TRANSPOSE(A1:C4)A 4-row, 3-column table becomes 3 rows by 4 columns.
Example 2. One column into one row
=TRANSPOSE(B2:B4)Laid out horizontally, like {120,150,130}.
Common mistakes
Not enough room for the result
If the cells the result spills into already contain values, you get #SPILL! (Excel 2021 and later).
Entering it in older Excel
In Excel 2019 and earlier, select the result range first, type the formula, and enter it with Ctrl+Shift+Enter.
FAQ
- What if the source changes?
- The result changes too. To swap values only, copy and use Paste Special with "Transpose".
- Blank cells?
- They appear as 0.