The function Transpose converts a horizontal range of cells to a vertical range, or vice versa.

Syntax:

=transpose (range of cells)

Range of cell. Can be an array of cells, or can an array of values that you want to transpose