Google Sheets Transpose: Step-by-Step Guide
In this article
To transpose data in Google Sheets, copy the range you want to flip, then right-click the destination cell and choose Paste special > Transposed. Alternatively, use the TRANSPOSE function with a formula like =TRANSPOSE(A1:C3). This swaps rows and columns so that data laid out horizontally appears vertically, and vice versa. No special add-ons are required, but you need edit access to the spreadsheet and enough empty space at the destination to avoid overwriting existing data.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet containing the data you want to transpose.
- Edit permission on the spreadsheet (if it is shared with you, you may need to ask the owner for edit access).
- Enough empty cells at the destination to hold the transposed data.
Step-by-Step
- Open your spreadsheet in Google Sheets on a computer. The steps below apply to the desktop web version; the mobile app has similar options but the menus differ slightly.
- Select the range you want to transpose. Click the first cell, hold Shift, and click the last cell, or drag across the range. For example, select A1:C3 if your data occupies three columns and three rows. You can also select entire rows or columns by clicking the row or column headers.
- Copy the data. Press Ctrl+C (Windows/ChromeOS) or Command+C (Mac), or right-click and choose Copy. A dotted border appears around the selection.
- Choose the destination cell. Click the top-left cell where you want the transposed data to start. Make sure the area below and to the right is empty; transposing a 3x5 range will need a 5x3 area, and any existing data in those cells will be overwritten.
- Paste transposed. Right-click the destination cell and choose Paste special > Transposed. On a Mac, you can also use the keyboard shortcut Ctrl+Command+V to open the Paste special menu, then select Transposed. The data now appears with rows and columns swapped.
- Alternatively, use the TRANSPOSE function. In an empty cell, type =TRANSPOSE(A1:C3) (replace A1:C3 with your actual range) and press Enter. The transposed data appears as a spilled array. This method keeps a live link to the original data: if you change a value in the source range, the transposed output updates automatically. The paste special method creates static values that do not update.
- Adjust formatting if needed. Transposing copies values and basic formatting, but column widths and row heights are not adjusted. You may need to resize columns or rows manually to fit the new layout. If you used the TRANSPOSE function, you can format the output range like any other cells, but you cannot edit individual cells within the spilled array without converting it to values first (copy the output, then Paste special > Values only).
- Remove the original data if desired. After verifying the transposed data is correct, you can delete the original range. If you used the TRANSPOSE function, deleting the source will cause the formula to return a #REF! error, so convert the output to values first (copy, then Paste special > Values only) before deleting the source.
Common Mistakes
- Pasting over existing data. Transposing a range requires an empty destination area of the correct size. If you paste over cells that already contain data, that data is overwritten without warning. Always check the destination area first.
- Forgetting that TRANSPOSE creates a live link. If you edit the source range after using the TRANSPOSE function, the output changes. If you need a static copy, use Paste special > Transposed instead, or convert the formula output to values.
- Selecting the wrong range size. If you select only part of your data, the transposed result will be incomplete. Double-check that the selection covers all rows and columns you want to flip.
- Using TRANSPOSE on a range that includes merged cells. Merged cells can cause errors or unexpected results. Unmerge cells before transposing if possible.
- Expecting formatting to carry over perfectly. While basic formatting like bold or cell color is usually copied, column widths, row heights, and some conditional formatting rules may not transfer as expected. You may need to reapply them.
Tips
- Use TRANSPOSE for dynamic data. If your source data changes frequently and you want the transposed view to stay in sync, the TRANSPOSE function is the better choice.
- Transpose entire tables. You can select an entire table (including headers) and transpose it to change the orientation from portrait to landscape style, which is useful for charts or reports.
- Combine with other functions. TRANSPOSE can be nested with functions like SORT or FILTER to rearrange data in more complex ways. For example, =TRANSPOSE(SORT(A1:C3, 1, TRUE)) sorts the first column ascending and then transposes the result.
- Use keyboard shortcuts for speed. On Windows/ChromeOS, Ctrl+Alt+V opens Paste special; on Mac, Ctrl+Command+V. Then choose Transposed from the menu.
- Check for hidden rows or columns. If your selection includes hidden rows or columns, they will be included in the transpose. Unhide them first if you want to exclude them.
Troubleshooting
- "#REF!" error with TRANSPOSE: This usually means the source range was deleted or moved, or the formula is trying to spill into cells that already contain data. Check that the source range still exists and that the destination area is empty.
- "#VALUE!" error with TRANSPOSE: This can happen if the source range contains errors or if the range reference is invalid. Verify the range syntax (e.g., A1:C3) and ensure no cells in the range contain error values.
- Paste special > Transposed is grayed out: Make sure you have copied a range first (you should see a dotted border). Also, you cannot transpose within the same cells if the destination overlaps the source; choose a different destination.
- Data appears but formatting is lost: Transposing via paste special may not carry over all formatting. You can reapply formatting manually or use the Paint format tool to copy formatting from the original cells.
- TRANSPOSE output does not update: If you used the TRANSPOSE function and the output is not changing when you edit the source, check that the formula is still intact and that the source range is correct. Also, ensure that calculation is set to automatic (File > Settings > Calculation > On change).
- Cannot edit cells in the TRANSPOSE output: The output of TRANSPOSE is a spilled array; you cannot edit individual cells within it. To edit, copy the output and paste as values only, then edit.
Frequently Asked Questions
Can I transpose data in the Google Sheets mobile app?
Yes, but the option is limited. In the mobile app, copy the range, tap the destination cell, tap Paste special, and look for Transposed. If you do not see it, the feature may not be available in your app version; using the desktop web version is recommended for full functionality.
What is the difference between Paste special > Transposed and the TRANSPOSE function?
Paste special > Transposed creates a static copy of the data with rows and columns swapped. The TRANSPOSE function creates a dynamic array that updates automatically when the source data changes. Use the function for live data, and paste special for a one-time flip.
Can I transpose a formula?
Yes. If you copy cells containing formulas and use Paste special > Transposed, the formulas are copied and adjusted relative to their new positions. If you use the TRANSPOSE function on a range with formulas, the formulas are preserved in the output.
Why does my transposed data show "#REF!"?
This typically occurs with the TRANSPOSE function when the source range is deleted or when the output area is not large enough. Ensure the source range exists and that there are enough empty cells for the transposed output.
Can I transpose only part of a row or column?
Yes. Select any contiguous range (e.g., A1:A5) and transpose it. The result will be a single row with the same values. You can also transpose non-contiguous ranges by copying each part separately, but the TRANSPOSE function requires a contiguous range.
Does transposing affect conditional formatting?
Conditional formatting rules are generally not transposed with the data. You may need to reapply conditional formatting to the transposed range. The TRANSPOSE function output does not inherit conditional formatting from the source.