Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Convert Rows to Columns in Google Sheets with TRANSPOSE

Use TRANSPOSE to swap rows and columns, reference another sheet, fix blocked results, and save a static copy.

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

  1. Identify the cells you want to rearrange, including headings if you want those moved too.
  2. Select an empty destination cell outside the source range.
  3. Enter =TRANSPOSE(A29:C30), replacing the reference with your own range, and press Enter.

How to convert columns to rows in Google Sheets and vice versa Picture 1

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.

How to convert columns to rows in Google Sheets and vice versa Picture 2

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

How to convert columns to rows in Google Sheets and vice versa Picture 3

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.

How to convert columns to rows in Google Sheets and vice versa Picture 4

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)

How to convert columns to rows in Google Sheets and vice versa Picture 5

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.

How to convert columns to rows in Google Sheets and vice versa Picture 6

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.

How to convert columns to rows in Google Sheets and vice versa Picture 7

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.

How to convert columns to rows in Google Sheets and vice versa Picture 8

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.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.