TRANSPOSE

The TRANSPOSE function returns a vertical collection of cells as a horizontal array of cells, or vice versa.

TRANSPOSE(range-array)

range-array: The collection containing the values to be transposed. range-array can contain any value.

Notes

Examples

Given the following table:

A

B

C

D

E

1

5

15

10

9

7

2

11

96

29

11

23

3

37

56

23

1

12

The format of the INDEX function is =INDEX(range, row-index, column-index, area-index)

=INDEX(TRANSPOSE($A$1:$E$3), 1, 1) returns 5, the value in row 1, column 1 of the transposed array (was row 1, column A, of the original collection).

=INDEX(TRANSPOSE($A$1:$E$3), 1, 2) returns 11, the value in row 1, column 2 of the transposed array (was row 2, column A, of the original collection).

=INDEX(TRANSPOSE($A$1:$E$3), 1, 3) returns 37, the value in row 1, column 3 of the transposed array (was row 3, column A, of the original collection).

=INDEX(TRANSPOSE($A$1:$E$3), 2, 1) returns 15, the value in row 2, column 1 of the transposed array (was row 1, column B, of the original collection).

=INDEX(TRANSPOSE($A$1:$E$3), 3, 2) returns 29, the value in row 3, column 2 of the transposed array (was row 2, column C, of the original collection).

=INDEX(TRANSPOSE($A$1:$E$3), 4, 3) returns 1, the value in row 4, column 3 of the transposed array (was row 3, column D, of the original collection).

For reference, the transposed table, as maintained in memory, would appear as follows.

1

2

3

1

5

11

37

2

15

96

56

3

10

29

23

4

9

11

1

5

7

23

12

See also
INDEX