toolrota

How to swap rows and columns in Excel: the TRANSPOSE function and Paste Special guide

You don't need to retype a horizontal list to make it vertical. We explain both methods, Paste Special and TRANSPOSE, step by step.

Serkan Akyürek··3 min read
How to swap rows and columns in Excel: the TRANSPOSE function and Paste Special guide – Excel

You received a table, but months run across the rows and products down the columns, and you want the opposite. Excel offers two ways to fix that without retyping: transposing with Paste Special and the TRANSPOSE function. The first produces a one-off copy; the second stays linked to the source and updates when it changes.

Method 1: Transpose with Paste Special

  1. Select the range you want to rotate and copy it (Ctrl+C).
  2. Right-click an empty cell.
  3. Open the Paste Special dialog.
  4. Tick Transpose and press OK.

The result is an independent copy. If you change the source table, the new table does not update.

Method 2: The TRANSPOSE function

Syntax: TRANSPOSE(array)

In Microsoft 365 and Excel 2021 typing the formula in one cell is enough; the result spills into the required area. In older versions you must first select a target area of the right size and enter the formula as an array formula with Ctrl+Shift+Enter. For the logic of dynamic arrays see our dynamic arrays guide.

Choosing the right method
  1. 1

    Decide whether the data will change

  2. 2

    If it's one-off, use Paste Special

  3. 3

    If it should stay linked to the source, use the function

  4. 4

    Make sure the target area is empty

  5. 5

    Check the result in a few cells

Comparing the two methods

FeaturePaste SpecialTRANSPOSE
Link to sourceNone, fixed copyYes, updates automatically
FormattingCopiedNot copied
EditingCells can be changed one by oneThe result area behaves as one block
VersionAll versionsSpilling only in newer versions

Tips

  • Careful with table objects: you may not be able to paste transposed directly into a formatted table; convert it to a range first. See our Excel tables guide.
  • Blank cells: the function may show blanks as 0; use IF to keep them empty if needed.
  • Power Query: for large, regularly repeated jobs, the transpose step in Power Query is a better fit.

Common mistakes

  1. A target area that isn't empty. The function returns a #SPILL! error.
  2. Trying to transpose cut data. Use Copy, not Cut.
  3. Expecting a fixed copy to update when the source changes.
  4. Rotating a range that contains merged cells.

Frequently asked questions

Do formulas break when pasted transposed? Relative references adjust to the new position; always check the result.

Is there a shortcut? Ctrl+Alt+V opens Paste Special, then E ticks Transpose (it may vary by version).

Summary

Use Paste Special for a one-off rotation and TRANSPOSE for a live table linked to the source. Keep the target area empty and check the result.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.