How to Flip a Table in Excel & Google Sheets
Written by
Reviewed by
This tutorial demonstrates how to flip a table in Excel and Google Sheets.
Flip Rows and Columns in a Table
You can transpose data in Excel as long as the data is in a normal range and not in a table. If your data is formatted as a table, you must convert the data to a normal range before you can flip the table’s rows and columns.
- Once the table is formatted as a normal range, select the entire range.
- Then, in the Ribbon, go to Home > Clipboard > Copy or press CTRL + C.
- Click in the cell where you want to paste the flipped table, and then in the Ribbon, go to Home > Clipboard > Paste Special.
- Tick the Transpose checkbox, and then click OK.
- This flips the table, putting the row data in columns and the column data in rows.
Flip a Table Vertically
You can reverse the order of data in the rows of your table by using a “helper” column to determine the order of your data.
- Add a helper column to the right side of your table filled with serial numbers starting from 1 and increasing by 1 in each row.
- Click in the column, and then in the Ribbon, go to Home > Editing > Sort & Filter > Sort Largest to Smallest.
- This sorts the rows in reverse order.
- Delete the helper column (Order). Or, to keep a record of the original order, leave it in.
Flip a Table Horizontally
To switch the columns around, add a helper row and sort horizontally.
- In the row directly above the table, add a helper row filled with serial numbers starting from 1 and increasing by 1 in each column.
- In the Ribbon, go to Home > Editing > Sort & Filter > Custom Sort.
- In the Sort dialog box, click Options…
- Choose Sort left to right as the Orientation, and then click OK.
- In the Sort dialog box, choose to Sort by Row 1. Then, choose Cell Values in the Sort On drop down and Largest to Smallest in the Order drop down.
- Click OK to sort. This reverses the column order.
Flip a Table in Google Sheets
You can flip your table in Google in the same way as you can do it in Excel.
Flip Rows and Columns
- Select the dataset, and then in the Menu, go to Edit > Copy or press CTRL + C.
- Select the cell where you want to paste your data, and then in the Menu, go to Edit > Paste Special > Transposed.
This pastes the dataset with the table information flipped.
Flip a Table Vertically
- Add a helper column to your table. Fill with serial numbers starting from 1 and increasing by 1
- Highlight the entire table, and then in the Menu, go to Data > Sort range > Advanced range sorting options.
- In the Sort range dialog box, tick Data has header row and then choose the column to sort by (Order). Then, choose to sort Z→A and click Sort.
As with Excel, your data is sorted in the reverse order compared to the original data.
While Google Sheets does not have the same ability as Excel to flip a table horizontally, you can use the Transpose command to achieve a similar result.