Function · Lookup
Excel TRANSPOSE function
The Excel TRANSPOSE function turns a column into a row. CA, FL, MA, NY, and TX down column A spill across C1:G1 in Microsoft 365.
Syntax =TRANSPOSE(array)
=TRANSPOSE(A1:A5)Arguments
| Name | Required | What to pass |
|---|---|---|
| array | Required | The range to turn. A column becomes a row. A row becomes a column. |
Examples
Five state codes turned sideways
=TRANSPOSE(A1:A5)Result CA, FL, MA, NY, TX across one row
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | CA | CA | FL | MA | NY | TX | |
| 2 | FL | ||||||
| 3 | MA | ||||||
| 4 | NY | ||||||
| 5 | TX |
TRANSPOSE flips a range. The five state codes in A1:A5 become one row. In Microsoft 365, Excel 2021, and Excel 2024 the formula sits in C1 and the other four codes spill into D1:G1. Those four cells do not each contain a formula. Edit C1 and the row changes. Google Sheets spills the same way.
Excel 2019 and earlier do not spill. You select the destination, five columns by one row, type the formula, and commit it with Ctrl+Shift+Enter. A blocked spill in current Excel is #SPILL!, which means something is already sitting in the way. TRANSPOSE does not sort and does not drop blanks. A blank in the column becomes a blank in the row.