TRANSPOSE
Lookup

Returns the transpose of an array

Syntax:

=TRANSPOSE(array)

Example:

=TRANSPOSE(A1:D4)