How to Flip a Table in Excel & Google Sheets

Written by

Mel Jenkins

Reviewed by

Laura Tsitlidze

Last updated on September 17, 2023

This tutorial demonstrates how to flip a table in Excel and Google Sheets.

flip table intro

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.

  1. Once the table is formatted as a normal range, select the entire range.
  2. Then, in the Ribbon, go to Home > Clipboard > Copy or press CTRL + C.

flip table copy

  1. Click in the cell where you want to paste the flipped table, and then in the Ribbon, go to Home > Clipboard > Paste Special.

flip table paste special

  1. Tick the Transpose checkbox, and then click OK.

flip table transpose

  1. This flips the table, putting the row data in columns and the column data in rows.

flip table flipped table

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.

  1. 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.

flip table helper column

  1. Click in the column, and then in the Ribbon, go to Home > Editing > Sort & Filter > Sort Largest to Smallest.

flip table sort largest smallest

  1. This sorts the rows in reverse order.

flip table sorted largest smallest

  1. 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.

  1. 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.

flip table add row

  1. In the Ribbon, go to Home > Editing > Sort & Filter > Custom Sort.

flip table custom sort

  1. In the Sort dialog box, click Options…

flip table sort options

  1. Choose Sort left to right as the Orientation, and then click OK.

flip table sort left to right

  1. 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.

flip table sort row1

  1. Click OK to sort. This reverses the column order.

flip table sorted columns

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

  1. Select the dataset, and then in the Menu, go to Edit > Copy or press CTRL + C.

flip table gs copy

  1. Select the cell where you want to paste your data, and then in the Menu, go to Edit > Paste Special > Transposed.

flip table gs transposed

This pastes the dataset with the table information flipped.

flip table gs flipped table

Flip a Table Vertically

  1. Add a helper column to your table. Fill with serial numbers starting from 1 and increasing by 1

flip table gs helper column

  1. Highlight the entire table, and then in the Menu, go to Data > Sort range > Advanced range sorting options.

flip table gs sorting options

  1. 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.

flip table gs custom sort

As with Excel, your data is sorted in the reverse order compared to the original data.

flip table gs custom sorted

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.

AI Formula Generator

Try for Free

See all How-To Articles