Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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?


Excel Productivity Tools

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 70% time.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.