Using Excel’s TRANSPOSE Function to Turn Rows into Columns

Written by:  • Edited by: Tricia Goss
Updated Mar 31, 2010
• Related Guides: Microsoft | Windows | Excel

In this Microsoft Excel tutorial, we’ll explain how the TRANSPOSE function can be used to transform rows of data into columns.

Turning Rows into Columns with TRANSPOSE

Have you ever spent hours creating a list or table in Excel and then wished you had organized the data in columns rather than rows (or vice versa)? Rather than start all over again, you can use the TRANSPOSE function to your data from rows to columns or columns to rows.

Syntax of the TRANSPOSE Function

The syntax for a basic formula using the TRANSPOSE function is

{=TRANSPOSE(array)}

where the array argument consists of the group of cells that you want to convert from row data to column data (or the other way around).

One thing that is important to note in the syntax of this function is the placement of the braces. These braces tell Excel that your answer should be another array rather than just a single cell. If you forget to include them, you’ll either get an error or only one cell from the original list or table will be transposed. However, these braces are added after the rest of the formula is composed, as we will show in the example in the next section.

Example of the TRANSPOSE Function

To illustrate the TRANSPOSE function, we’ll use a simple table that lists several months and the number of family birthdays in each month. See the screenshot below. (Click any image for a larger view.)

Sample Birthday Table in Excel
click to enlarge

In this example, we have a table that is 7 rows by 2 columns, and we would like to transform it into one that is 2 rows by 7 columns.

Step 1: First, we need to select the cells in which we want the transformed cells to appear. In this case, we need to select a group of cells on the worksheet that is 2 rows high by 7 columns long.

Select Cells in Worksheet
click to enlarge

Step 2: With these cells selected, click on the formula bar in the area shown in the screenshot below.

Click on the Formula Bar
click to enlarge

Step 3: Type in the formula containing the TRANSPOSE function. Since the initial table that we want to transpose is in cells A1 through B7, our array is A1:B7. Even though we will need the braces eventually, don’t worry about that just yet. We’ll explain that in a moment. For now, type in the main part of the TRANSPOSE function as shown below, but don’t hit the Enter key yet.

=TRANSPOSE(A1:B7)

Begin Typing Formula
click to enlarge

Step 4: Once the formula is typed in, hit Ctrl + Shift + Enter instead of just Enter. This will place the braces around the formula and evaluate it in the worksheet as shown below.

Add Braces and Evaluate Formula
click to enlarge

Note that the TRANSPOSE function only copies the data from the cells in the initial array. If you had applied any special formatting to those cells, you will need to do that again.

Additional Resources: If you’re looking for other Excel tutorials, be sure to browse through the ever-growing library of users guides found here on Bright Hub’s Windows Channel, including the collection covering charts and graphs.


Comments

Showing all 4 comments
 
Cewilletto Feb 6, 2012 9:13 PM
RE: Using Excel’s TRANSPOSE Function to Turn Rows into Columns
I transposed a row of dates into a column of dates just fine. But they are somehow still linked together; I can't delete the original row of dates without changing the new column of dates into 0-month-00. I need to be able to work with the new column of dates.
Anonymous Jul 21, 2011 2:17 PM
Very useful
Thais was driving me crazy .. transpose not working on my array .. you saved me after 6 hours of debugging!!

Thanks :D
Kimberly Jan 19, 2010 12:22 PM
Help
I have a excel spreadsheet with one colum of information that needs to be dlivded: example below: I need the information to be in 3 separate columbus:Name, street address, City/state/zip. Is there a way to do this without cutting and pasting each one?

Andrea Jones
3366 Franklin Rd.
Columbus, OH
Sam Cook
2255 Nelson Rd
Salem, VA
Pam Dawson
2255 Dent Drive
Columbus, OH
Jay Kay Oct 3, 2009 3:56 PM
EXPLANATION OF TRANSPOSE FUNCTION
Explanation was very helpful and would be improved if larger images were included insttead of requiring double click to view.
 
blog comments powered by Disqus
Email to a friend