tech on the net

MS Excel: TRANSPOSE Function (WS)

In Microsoft Excel, the TRANSPOSE function returns a transposed range of cells. For example, a horizontal range of cells is returned if a vertical range is entered as a parameter. Or a vertical range of cells is returned if a horizontal range of cells is entered as a parameter.

Syntax

The syntax for the TRANSPOSE function is:

TRANSPOSE( range )

range is the range of cells that you want to transpose.

Note

Applies To

Type of Function

Worksheet Function Example

Let's take a look at an example to see how you would use the TRANSPOSE function in a worksheet:

Microsoft Excel

Based on the Excel spreadsheet above:

We've placed values in cells A1, A2, and A3, and we'd like to view these values in cells C1, D1, and E1 (transposed). To do this, you highlight cells C1, D1, and E1, then enter the following formula:

=TRANSPOSE(A1:A3)

Then press Ctrl-Shift-Enter to create an array formula. You will notice that {} brackets will appear around the formula and the values in cells A1, A2, and A3 should now appear in cells C1, D1, and E1.

Frequently Asked Questions


Question: In Microsoft Excel, isn't it easier to use the Paste Special transpose option to do the same?

Answer: Yes, if you ONLY want to perform a one-time paste of the values, you can do the following:

Microsoft Excel

Highlight the cells that you want to copy. In this example, we've highlighted cells A1:A3. Then right-click and select Copy from the popup menu.

Microsoft Excel

Then right-click on the cell where you'd like to paste the values and select Paste Special from the popup menu.

Microsoft Excel

Then select the TRANSPOSE checkbox and click on the OK button.

Microsoft Excel

Now when you return to your spreadsheet, you'll see that the values have been copied and transposed.