# 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

**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.

### 'TRANSPOSE' function examples

The following 43 articles contain the TRANSPOSE function.

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.

Question: I need to calculate how many hours a machine is utilized in a company with a night and day […]

Joining multiple cell values in Excel is not easy, for example, the CONCATENATE function allows you to only reference a […]

Add cell values to a single cell with a condition, no VBA in this article.

The array formula in cell F3 counts cells in column B that contains at least one of the values in […]

This article describes a formula that counts values in two columns if they are duplicates on the same row. What's […]

This post demonstrates a formula in cell D16 that counts overlapping dates across multiple date ranges. The date ranges are […]

The MEDIAN function lets you count overlapping dates between two date ranges. If you have more than two date ranges […]

In the previous post I explained how to count overlapping dates comparing a single date range against multiple date ranges. […]

This article describes how to count unique distinct values. What are unique distinct values? They are all values but duplicates are […]

This article demonstrates how to distribute values into specific ranges with possible overlapping ranges. I have written articles about filter […]

This article demonstrates a scoreboard, displayed to the left, that sorts contestants based on total scores and refreshes instantly each […]

This article demonstrates ways to extract shared values in different cell ranges, two and three cell ranges. The Excel 365 […]

Sean asks: The good thing about this formula is that it is short and easy to remember. The main drawback […]

This article demonstrates two ways to extract unique and unique distinct rows from a given cell range. The first one […]

This article explains how to create a formula that returns the earliest (smallest) and the latest (largest) date of overlapping […]

Excelxor is such a great website for inspiration, I am really impressed by this post Which numbers add up to […]

This formula returns multiple values even if they are arranged differently or have minor misspellings compared to the lookup value.

This article demonstrates ways to extract names and corresponding populated date ranges from a schedule using Excel 365 and earlier […]

I found an old post that I think is interesting to write about today. Think of two overlapping ranges, it […]

This article demonstrates a formula that extracts unique values from a column also considering upper and lower characters (case sensitive). […]

The worksheet above shows four different time ranges in column B and C, the formula in cell C10 counts the […]

This article demonstrates a formula that points out row numbers of records that overlap the current record based on a […]

This article demonstrates formulas that let you perform lookups using two or more conditions. The image above shows two conditions […]

This article demonstrates how to calculate dates in a given date range (cells B13 and B14) that don't overlap the […]

Question: Can expand this equation set into more than two colums of data, say if I had a first, middle […]

I discussed the difference between permutations and combinations in my last post, today I want to talk about two kinds […]

Below is an excel table containing recurring expenses and corresponding amounts, dates and recurring intervals. An excel table allows you to […]

Jerome asks, in this blog post Search for multiple text strings in multiple cells in excel : If the list […]

RU asks: Can you please suggest if i want to find out the rows with fixed value in "First Name" […]

Table of Contents Search values distributed horizontally and return the corresponding value Filter values distributed horizontally - Excel 365 1. […]

This article demonstrates how to extract multiple numbers based on a condition and return a sorted list from small to […]

This article demonstrates a formula that filters unique distinct single digits from a cell range containing numbers. Cell range B3:B6 […]

In this article, I will demonstrate two techniques for counting per row. The first example is simple and straightforward. The […]

This article demonstrates formulas and a UDF that searches for values in a table based on concatenated values and returns […]

This article explains how to build an array formula that sums numerical ranges. Example, I want to know how to […]

This article demonstrates ways to sum values based on criteria. Table of Contents SUMPRODUCT - based on a list of […]

This blog article describes how to split strings in a cell with space as a delimiting character, like Text to […]

This article demonstrates three different ways to filter a data set if a value contains a specific string and if […]

What's on this page Reverse text Insert random characters Convert letters to numbers How to shuffle characters in the alphabet […]

This article demonstrates formulas that calculate the number of overlapping ranges for all ranges, finds the most overlapped range and […]

## Functions in this article

### 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