How to Transpose Rows and Columns in Excel

When you receive a spreadsheet where a massive dataset was typed completely horizontally (spanning from Column A to Column Z), it is nearly impossible to read or scroll through. To properly analyze the data, you must physically rotate it 90 degrees so that it runs vertically down the page. Manually retyping hundreds of cells is incredibly inefficient and prone to human error. To instantly flip the axis of your data, mathematically converting rows into columns (or columns into rows), you must use Microsoft Excel’s TRANSPOSE tools.

Method 1: The TRANSPOSE Function (Dynamic Array)

If you want the newly rotated data to remain mathematically linked to the original data (meaning if you update a horizontal cell, the vertical copy automatically updates as well), you must use the dynamic array formula.

The syntax requires a single argument: =TRANSPOSE(array)

  1. Locate an entirely empty section of your spreadsheet where you have plenty of vertical room.
  2. Click into a single empty cell and type: =TRANSPOSE(A1:Z1)
  3. Press Enter.

In modern versions of Excel (Office 365), the formula will instantly “spill” down the column. The data that previously stretched across 26 columns is now perfectly stacked vertically in 26 rows. Because it is a formula, you cannot manually delete a single cell in the middle of the new vertical stack without breaking the entire array.

Method 2: Paste Special (Static Text)

If you simply want to permanently rotate the data once, destroy the original horizontal version, and you do not care about keeping the two sets of data linked, you should use the Paste Special engine.

  1. Highlight the entire horizontal block of data (e.g., A1:Z1).
  2. Press Ctrl + C (or Command + C on a Mac) to copy the data to your clipboard.
  3. Click into a completely empty cell where you want the new vertical list to begin.
  4. Right-click the empty cell.
  5. In the pop-up menu, under the “Paste Options” section, locate and click the Transpose icon (it looks like a small clipboard with a right-angle arrow).

Excel instantly pastes the data, automatically rotating the axis during the paste operation. This generates standard, hard-coded text, meaning you can now safely delete the original horizontal row to clean up your spreadsheet.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.