Excel TRANSPOSE Function
The Excel TRANSPOSE function rotates the orientation of a range or array. For example, it can rotate a table that arranged horizontally in rows to vertically in columns or vice versa.
Syntax
=TRANSPOSE (array)
Argument
Array (required): An array or range of cells that you want to transpose.
Return value
The TRANSPOSE function will return an array in a new orientation based on a certain range of cells.
Function notes:
1. The TRANSPOSE function must be entered as an array formula with pressing Ctrl + Shift + Enter keys simultaneously.
2. The transpose result: after transposing, the first row of the original array becomes the first column of the new array, the second row of the original array becomes the second column of the new array, the third row becomes the third column, and so on.
Examples
Example 1: Flip the orientation of a given range
Supposing you want to flip the orientation of range B4:I5 as the below screenshot shown, you can try as follows to achieve it.
1. Select a range for the new array, here I select K3:L10, copy the below formula into it:
=TRANSPOSE(B4:I5)
Note: You must select the same number of cells as the original set of cells, but in the other direction.
2. And then press the Ctrl + Shift + Enter keys to return the new array.
Example 2: Transpose range without zero in Excel
Normally, if the specified array contains blank cells, these blank cells will display as 0 in the new array after using the Transpose function. See screenshot:
If you want to transpose table without zeros, the method in this section can help.
1. Select a range for the new array, here I select K3:L10, copy the below formula into it:
=TRANSPOSE(IF(B4:I5="","",B4:I5))
The syntax of the formula: {=TRANSPOSE(IF(rng="","",rng))}
2. Press Ctrl + Shift + Enter keys at the same time to get the new array without zeros as below screenshot shown.
Note: If you want to put “blank” into the blank cells of the new array rather than keep it empty, please enclose this text in the second double quotation marks in the formula:
=TRANSPOSE(IF(B4:I5="","blank",B4:I5))
And then press the Ctrl + Shift + Enter keys.
More Examples
How to quickly transpose blocks of data from rows to columns in Excel?
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
