How to Transpose a Table in Excel: 5 Suitable Methods

Method 1 – Using Paste Special Tool to Transpose a Table in Excel

STEPS:

  • Select the whole table using a mouse.
  • Press Ctrl + C, and a dancing rectangle will appear at the border of the selected range of cells.

  • Activate a new cell where you will transpose the table. We activated cell B12.
  • Press Ctrl + Alt + V, and the Paste Special box will pop up.
  • Mark the Transpose box and press OK.

  • See the table has been transposed to the new location.

how to transpose a table in excel result


Method 2 – Inserting TRANSPOSE Function to Switch a Table

STEPS:

  • Active a new cell. I have activated here B12 cell.
  • Type the formula below:
=TRANSPOSE(B4:E9)
  • Hit Enter to see the result.

Insert TRANSPOSE Function to Switch Table in Excel

  • The table is transposed now. See the result below.


Method 3 – Transposing a Table Using Excel Pivot Table

STEPS:

  • Select the whole table.
  • Go to the Insert menu ribbon.
  • Pick the Pivot Table option. A box will pop up.

Use Pivot Table to Transpose a Table in Excel

  • Select Existing Worksheet. Or you can select the other option if you want it in a new sheet.
  • Pick the location now. Here I have chosen cell B12.
  • Press OK, and a Pivot Table field will appear.

  • Mark all the fields available. The Pivot table will be completed.

  • Go to the bottom of the Pivot Table field.
  • Press the Product menu and select Move to Column Labels.

  • Press the Values menu and select Move to Row Labels.

  • The Pivot Table has been transposed.


Method 4 – Applying Excel Power Query to Transpose a Table

STEPS:

  • Select the whole dataset.
  • Go to the Data ribbon.
  • Select From Table/Range.

Using Power Query in Excel to Transpose

  • In the Power Query Editor, go to the Transform ribbon.
  • Select Use Headers as First Row.

Method 4: Using Power Query in Excel to Transpose

  • Press Transpose option.

Method 4: Using Power Query in Excel to Transpose

  • Select Use First Row as Headers.

Method 4: Using Power Query in Excel to Transpose

  • Go to File menu.
  • Press Close & Load.

Method 4: Using Power Query in Excel to Transpose

  • The table is transposed now, see the image below.

Method 4: Using Power Query in Excel to Transpose


Method 5 – Using Direct Cell Reference for Transposing a Table

STEPS:

  • As we want to convert Row 4 to a column, we’ll use the row’s cell references along a new column with some same unique characters before the cell references. We used “pk”.
  • Select the new range of cells.
  • Click and hold the bottom right corner of the border and drag it to the right until it completes 6 columns. We had 6 rows.

Direct Reference to Transpose a Table in Excel

  • Select the whole new cells.
  • Press Ctrl + H. A dialog box named Find and Replace will open up.
  • Type pk in the Find What box and type = in the Replace with box.
  • Press Replace All button.

  • Our operation is done, see the screenshot below for the outputs.


Download Practice Book

Download the Excel workbook that we’ve used to prepare this article.


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Md. Sourov Hossain Mithun
Md. Sourov Hossain Mithun

Md. Sourov Hossain Mithun, an Excel and VBA Content Developer at Softeko's ExcelDemy project, joined in October 2021. Holding a Naval Architecture & Marine Engineering degree from BUET, Mithun showcases expertise during his two-year tenure. With over 200 published articles on Excel topics, he earned a promotion to Team Leader, excelling in leading diverse teams. Mithun's passion extends to Advanced Excel, Excel VBA, Data Analysis, and Python programming, contributing significantly to the innovative and dynamic environment of ExcelDemy... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo