Table of Contents
Use =TRANSPOSE(range) in an empty cell to swap a range's rows and columns in Google Sheets. The original cells stay in place, and the formula displays a linked result in a new location.
Transpose a range on the same sheet
- Identify the cells you want to rearrange, including headings if you want those moved too.
- Select an empty destination cell outside the source range.
- Enter
=TRANSPOSE(A29:C30), replacing the reference with your own range, and press Enter.

The example starts with two rows and three columns, so its result needs three rows and two columns. Leave the entire output area empty; entering the formula only requires the upper-left destination cell.

The same function works in either direction. A single column becomes a row, and a single row becomes a column.

Changing a value in the source updates the formula's result. Edit the source rather than trying to type into one cell of the expanded result. Formatting is separate: adjust number formats, widths, and headings after transposing.
Put the result on another sheet
You do not have to rename a sheet first. Use its existing tab name exactly, or rename it to something easier to recognize.

On the destination sheet, select an empty cell and enter:
=TRANSPOSE(Page1!A25:C29)If the source tab contains spaces, enclose the name in single quotes:
=TRANSPOSE('Page 1'!A25:C29)
This five-row, three-column source produces a three-row, five-column result. Both tabs must be in the same spreadsheet for this direct reference.

For a separate spreadsheet file, see using IMPORTRANGE; a tab reference alone cannot read another file.
Fix a #REF! error
Click or hover over the error and read its message. The fix depends on the cause:
- The array result cannot expand: an output cell already contains something. Move the destination or clear only the obstructing cells after checking that their contents are expendable.
- The sheet reference is unresolved: check spelling, spaces, and quotation marks around the tab name.
- The formula overlaps its own source: move it to a separate blank area so it does not refer back to its result.

Allow enough rows and columns for the output, and check for merged cells that interfere with expansion. Do not clear a whole worksheet just to remove an error.
Make an independent, editable copy
If you need to edit the transposed cells separately, select the complete result, copy it, and paste into a different blank area with Edit > Paste special > Values only. Check the copied values before removing the formula result.

The pasted values no longer update when the source changes. Keep the TRANSPOSE formula if you need that connection. For presentation changes afterward, see copying formatting in Google Sheets.
Reference: Google's TRANSPOSE function documentation.
Reader Comments 0
Sign in with email or Google to join the discussion.