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.

All current Excel versions. Also in Excel for the web and Google Sheets. Spilling into the neighboring cells needs Microsoft 365, Excel 2021, Excel 2024, or Google Sheets.

Syntax =TRANSPOSE(array)

TRANSPOSE
=TRANSPOSE(A1:A5)

Arguments

NameRequiredWhat to pass
arrayRequiredThe 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

=TRANSPOSE(A1:A5)C1
States
ABCDEFG
1CACAFLMANYTX
2FL
3MA
4NY
5TX
A picture of the sheet, not a live calculator. C1 holds the formula. D1:G1 are the spill, not five separate formulas.

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.