1. Home
  2. Functions
  3. Lookup and reference
  4. TRANSPOSE

TRANSPOSE function

Swaps the rows and columns of a range or array.

Syntax

=TRANSPOSE(array)

Arguments

ArgumentRequiredDescription
arrayRequiredA range or array

How to use TRANSPOSE

When TRANSPOSE returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.

TRANSPOSE takes 1 required argument. Type =TRANSPOSE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=TRANSPOSE({1,2,3})Result 3 by 1 array
Spilled result
A
11
22
33
=TRANSPOSE({1,2;3,4})Result 2 by 2 array
Spilled result
AB
113
224

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.