The TRANSPOSE function in Google Sheets flips data by converting rows into columns and columns into rows. It requires no special setup—just a range of cells to transpose and a destination with enough empty space. Here’s how to do it correctly every time.
What You'll Need
- A Google Sheets spreadsheet open in a web browser
- A source range of data you want to transpose (e.g., A1:C3)
- Sufficient empty space in the destination area (at least as many rows as your source has columns, and vice versa)
Step-by-Step
- Open your Google Sheet and click the cell where you want the top-left corner of the transposed data to appear. This must be a blank cell, and all cells in the future transposed range must be empty—TRANSPOSE fails if any cell in the target range is occupied.
- Type
=TRANSPOSE((including the opening parenthesis) into the formula bar or directly into the cell. - Select the source range you want to transpose (e.g., highlight A1:C5). Alternatively, type the range manually, like
A1:C5, ensuring it uses absolute references only if needed (e.g.,$A$1:$C$5for static ranges). - Close the formula with a closing parenthesis:
). Your formula should now look like=TRANSPOSE(A1:C5). - Press Enter (Windows/Linux) or Return (Mac). The transposed data will appear immediately, with rows from the source becoming columns in the result. Note: TRANSPOSE is dynamic—editing the original data updates the transpose automatically. However, you cannot edit cells within the transposed range directly; you must edit the original range instead.
Common Mistakes
- Overlapping source and destination ranges: If any cell in the transposed output overlaps with the source range, Google Sheets shows a #REF! error. Always paste into a completely empty area, and verify no cells from the source appear in the output region.
- Non-contiguous source ranges: TRANSPOSE only works with a single rectangular block of cells. Selecting multiple separate ranges (e.g., A1:B3 and D5:E7) will result in a #VALUE! error. Combine ranges using ARRAYFORMULA or helper columns if needed.
- Editing transposed cells directly: Attempting to type or paste into any cell within the dynamic array output triggers a #ERROR! message. To change values, go back to the original source range.
- Missing parentheses or incorrect syntax: A common typo is forgetting the closing parenthesis or using commas instead of colons for ranges (e.g.,
=TRANSPOSE(A1, C5)instead of=TRANSPOSE(A1:C5)). Always double-check the formula bar.
Tips
- Use with headers: If your source includes column headers in the first row, they’ll become the first column after transposition—ideal for restructuring tables for reports or charts.
- Combine with other functions: Wrap TRANSPOSE inside ARRAYFORMULA for array operations, or use it with FILTER or SORT to clean data before flipping (e.g.,
=TRANSPOSE(SORT(FILTER(A1:D20, A1:A20<>""), 1, TRUE))). - Preserve formatting with paste special: TRANSPOSE only copies values and formulas, not formatting (like colors or borders). To retain formatting, copy the source range, right-click the destination cell, choose Paste special > Paste transpose (under the Paste options menu), then manually reapply styles if needed.
- Handle blank cells carefully: Empty cells in the source remain blank after transposition, but formulas that return empty strings (e.g.,
="") may behave differently. Test withIF(A1="", NA(), A1)if you want blanks to show as #N/A.
Troubleshooting
If your TRANSPOSE function isn’t working, follow these steps in order:
- Check for occupied cells in the output area: Click any cell where the transposed data should appear. If you see a #REF! or #ERROR! message, delete all cells in the potential output range (the size of the transposed data) before re-entering the formula.
- Verify the source range syntax: Ensure the range uses a colon (e.g.,
A1:B10), not commas or spaces. Type the formula manually if auto-completion is causing errors. - Confirm the source range is valid: If your source contains non-rectangular data (e.g., missing cells in a column), fill gaps with placeholder values or use FILTER to create a clean block first.
- Test with a small range: Try transposing just three cells (e.g.,
=TRANSPOSE(A1:C1)) into a new sheet to isolate whether the issue is data-specific or formula-related. - Restart or refresh the browser: Rarely, Google Sheets may glitch. Close the tab, reopen it, or try a different browser (Chrome, Firefox, or Edge work best).
If none of these resolve the issue, consider using Copy > Paste Special > Transpose as a static alternative—though it won’t update dynamically when the source changes.
Frequently Asked Questions
Does TRANSPOSE work with merged cells?
No. If your source range includes merged cells, TRANSPOSE will return a #VALUE! error. Unmerge cells first by selecting the range, going to Format > Merge cells > Unmerge, then reapply merging after transposition if needed.
Can I transpose data vertically into a horizontal layout?
Yes—that’s exactly what TRANSPOSE does. If your data is in a single column (e.g., A1:A20), using =TRANSPOSE(A1:A20) will place the values across row 1 (A1:T1). The function flips orientation regardless of whether the source is wide or tall.
Why does my transposed data show #DIV/0! or #N/A?
These errors come from the original source data, not TRANSPOSE itself. If your source contains division by zero or missing lookups, TRANSPOSE carries them over. Fix the source formulas first, and the errors will disappear in the transposed result.
Does TRANSPOSE preserve formulas or just values?
It preserves formulas, but cell references adjust relative to the new orientation. For example, if the source has =A1*B1 in C1, and you transpose a range containing that cell into a vertical column, the formula may become =A1*A2 depending on where it lands. Use absolute references (e.g., $A$1*$B$1) in the source to prevent unintended shifts.
Can I transpose data between different sheets or workbooks?
Yes—to transpose data from another sheet in the same workbook, include the sheet name in the range: =TRANSPOSE(Sheet2!A1:D10). To pull from another file, use IMPORTRANGE first: =TRANSPOSE(IMPORTRANGE("spreadsheet_url", "Sheet1!A1:D10")). Note that IMPORTRANGE requires permission to access the source file.
Will TRANSPOSE work with images, charts, or drawings?
No. TRANSPOSE only handles cell data (text, numbers, dates, formulas). Embedded objects like images or charts cannot be transposed. Remove them before copying, or reinsert them manually after transposition.