How to Flip Info in Excel: Transpose Rows and Columns
In this article
To flip information in Excel, you transpose it: turn rows into columns and columns into rows. The fastest method is to copy the range, then use Paste Special > Transpose. For a live link, use the TRANSPOSE function (or the newer dynamic array version in Microsoft 365). You can also flip data vertically (reverse row order) or horizontally (reverse column order) with a helper column and Sort, or with a formula. All methods work in Excel for Microsoft 365, Excel 2021, 2019, and 2016; menu labels can differ slightly by version and platform.
What You'll Need
- Excel for Windows, Mac, or the web (the steps below are for desktop; the web app supports Paste Special > Transpose but not all functions).
- A worksheet with the data you want to flip. Make a backup copy first (Ctrl+C, Ctrl+V to a new sheet) because flipping overwrites cells.
- Enough empty space: transposing a 10-row by 5-column range needs 5 rows by 10 columns of blank cells.
Step-by-Step
- Select the range you want to flip. Click the top-left cell, hold Shift, and click the bottom-right cell. Include headers if you have them.
- Copy the range. Press Ctrl+C (Cmd+C on Mac). A moving dashed border appears.
- Click the top-left cell of an empty area where the flipped data should go. Make sure the area is truly blank; otherwise Excel overwrites existing content.
- Open Paste Special. Right-click and choose Paste Special, or press Ctrl+Alt+V (Cmd+Ctrl+V on Mac). In the dialog, tick the Transpose checkbox and click OK. The rows and columns swap.
- Delete the original if you no longer need it. Select the original range and press Delete. Do not delete before the paste is confirmed.
- For a live link, use the TRANSPOSE function. Select a blank range with the same dimensions as the source but flipped (e.g., source is 4 rows by 3 columns, so select 3 rows by 4 columns). Type
=TRANSPOSE(A1:C4)and press Ctrl+Shift+Enter in older Excel, or Enter in Microsoft 365. The result updates when the source changes. - To flip rows vertically (reverse order), add a helper column. In the first empty column next to your data, type 1 in the first row and 2 in the second, then drag the fill handle down to number all rows. Select the whole table including the helper column, go to Data > Sort, sort by the helper column Largest to Smallest, then delete the helper column.
- To flip columns horizontally, do the same with a helper row. Put 1, 2, 3... across an empty row above or below your data, then use Data > Sort with Options > Sort left to right, sorting by that helper row Largest to Smallest, and remove the helper row.
Common Mistakes
- Pasting over existing data. Transpose needs blank destination cells. Check the area before pasting.
- Selecting the wrong size. For the TRANSPOSE function, the selected output range must be exactly the flipped dimensions, or you get a #VALUE! error or spilled-range error.
- Forgetting that formatting is not always carried over. Paste Special > Transpose copies values and some formatting, but column widths, row heights, and merged cells do not transpose cleanly. Reapply formatting after pasting.
- Using TRANSPOSE inside a table. Excel tables do not support the TRANSPOSE function in all versions; paste values instead.
- Sorting only part of the table. When using a helper column to reverse order, select the entire table including the helper column, or rows become misaligned.
Tips
- Use Paste Special > Values and Transpose together (choose Values and tick Transpose) to drop formulas and keep only results.
- If you only need to flip a small block, the TRANSPOSE function is safer because it does not overwrite anything.
- For repeating flips, record a macro: copy, Paste Special Transpose, then assign it to a button. This is optional and not needed for one-off jobs.
- Keep a copy of the original sheet until you have checked the flipped output, especially if formulas reference the flipped range.
Troubleshooting
- Paste Special is greyed out: You may be in cell edit mode (press Esc), or the clipboard content is not from Excel. Copy again from the sheet.
- #VALUE! from TRANSPOSE: The output range size does not match the flipped source, or you pressed Enter instead of Ctrl+Shift+Enter in a version that needs it. Reselect the exact flipped dimensions and re-enter.
- #SPILL! error: In Microsoft 365, the dynamic array result has no room. Clear the cells below and to the right of the formula.
- Formulas broke after flipping: Transpose changes relative references. Use Paste Special > Values to freeze results, or rewrite references after flipping.
- Sort reversed only some columns: Undo (Ctrl+Z), then reselect the whole table including the helper column before sorting.
Frequently Asked Questions
Can I flip data without copying it?
Only with the TRANSPOSE function, which creates a linked copy in a new location. The original stays as it is.
Does Paste Special > Transpose work in Excel for the web?
Yes, the web app supports Paste Special > Transpose. The TRANSPOSE function is also available, but some older array-entry behaviour differs.
How do I reverse the order of rows in Excel?
Add a helper column numbered 1 to n, sort the whole table by that column Largest to Smallest, then delete the helper column. This is the most reliable method.
Will transposing keep my formulas?
Paste Special > Transpose keeps formulas but adjusts relative references, which can change results. Paste as Values if you only need the numbers.
Can I flip a whole worksheet?
Not with one click. Select the used range, copy, then Paste Special > Transpose on a new sheet. Very large ranges may hit Excel's row and column limits after transposing.
Why does my transposed data look wrong?
Merged cells and mixed formats do not transpose cleanly. Unmerge cells before copying, and reapply formatting after pasting.