# How to use the TRANSPOSE function

The TRANSPOSE function allows you to convert a vertical range to a horizontal range, or vice versa.

A vertical range is a range with values in one column, a horizontal rangeÂ has values in oneÂ row.

You can also transpose a range with more than one column and one row.

Array formula in cell D2:H2:

Range B2:B6 has 1Â column and 5 rows and itÂ is a vertical range. Use the TRANSPOSE function toÂ convert it to a horizontal range. Shown in the exampleÂ above.

### Excel Function Syntax

TRANSPOSE(array)

### Arguments

array |
The values you want to transpose. |

=TRANSPOSE(B2:B6) is entered in cell range D2:H2, as an array formula.

### What's on this webpage

- How to enter an array formula
- What happens if you transpose a range with the same number of columns and rows?
- How to convert a vertical cell range to constants
- Transpose an array with constants separated vertically
- Two-dimensional arrays
- Transpose a cell range without using a formula
- Get Excel *.xlsx file

**1. How to enter an array formula**

- Select cell range D2:H2.
- Press with left mouse button on in the formula bar.
- Type: =TRANSPOSE(B2:B6) in the formula bar.
- Press and hold CTRL + SHIFT simultaneously.
- Press Enter once.
- Release CTRL + SHIFT.

If you did this right the formula now begins and ends with a curly bracket. Like this: {=TRANSPOSE(B2:B6)} Don't enter these characters yourself.

### 1.1 Why do I have to enter the TRANSPOSE function as an array formula?

It returns more than one value, you need to enter it as an array formula if you want to see all values on the worksheet.

### 1.2 Excel 365 users can enter the TRANSPOSE function as a regular formula

Excel 365 users can now enter dynamic array formulas as regular formulas. Dynamic array formulas expand automatically, this is called spilling.

## 2. What happens if you transpose a range with the same number of columns and rows?

The picture shows what happens if you transpose a cell range with the same number of rows and columns, in this case, a cell range with 3 columns and 3 rows.

The range size doesn't change but the numbers in the range change positions.Â The values in the first column (B2:B4) is converted into the first row (F2:H2), the same with the second column (C2:C4) into the second row (F3:H3), and so on.

## 3. How to converting a vertical cell range to constants

This animated picture shows how to convert the values in a cell range to constants.

What the animated picture doesn't show you is that I am pressing F9 after selecting the cell range B2:B6. These are all the steps:

- Select cell D2.
- Type =
- Select cell range B2:B6.
- Press F9.

The formula bar returns {1;2;3;4;5}. The curly brackets tell you that it is an array. The constants in the array are separated by semicolons. The semicolon tells you that the next value is in the row below. In the example above all values are separated vertically, this is a one-dimensional array.

## 4. Transpose a vertical array with constants

What happens if we transpose this array?Â {1;2;3;4;5} Â Select a cell and type in formula bar: =TRANSPOSE({1;2;3;4;5}) Press F9.

The formula bar shows {1,2,3,4,5}. The comma tells you that the values in the array are separated horizontally.

You can verify this by selecting D2:H2, typeÂ =TRANSPOSE({1;2;3;4;5}) in the formula bar and enter it as an array formula.

In other words, the colon tells you that the next value in the array is in the nextÂ column.Â The semicolon tells you that the next value is in the row below.

## 5. Two-dimensional arrays

Look at this array {1,2,3;4,5,6;7,8,9}. You can now distinguish that this array has 3 columns and 3 rows by looking at the commas and semicolons. The array has values in more than one column and one row. This is a two-dimensional array.

I made this array {1,2,3;4,5,6;7,8,9}Â from cell range B2:D4, it has 3 columns and 3 rows.

## 6. Transpose a cell range manually without using a formula

- Select a cell range you want to transpose
- Copy cells (CTRL + c)
- Press with right mouse button on on a destination cell
- Press with left mouse button on "Paste Special..."

- Press with left mouse button on "Transpose"
- Press with left mouse button on OK button

**Note!**You may have other delimiting characters, it depends on your regional settings.

### Useful links

TRANSPOSE function - Microsoft

### 'TRANSPOSE' function examples

First, let me explain the difference between unique values and unique distinct values, it is important you know the difference […]

This post explains how to lookup a value and return multiple values. No array formula required.

Array formulas allows you to do advanced calculations not possible with regular formulas.

### Functions in 'Lookup and reference' category

The TRANSPOSE function function is one of many functions in the 'Lookup and reference' category.

## How to comment

How to add a formula to your comment<code>Insert your formula here.</code>

Convert less than and larger than signsUse html character entities instead of less than and larger than signs.

< becomes < and > becomes >

How to add VBA code to your comment[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

How to add a picture to your comment:Upload picture to postimage.org or imgur

Paste image link to your comment.

Contact OscarYou can contact me through this contact form