← Back to all guides
Technology · 4 min READ

How to Transpose Rows and Columns in Excel for Windows

How to Transpose Rows and Columns in Excel for Windows guide illustration

Turn a horizontal report into a vertical one. Use Paste Special for a one-time copy or a TRANSPOSE formula for a second view that follows edits.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

Copy the entire source rectangle, including its labels. Click an empty destination cell outside that range, press Ctrl+Alt+V, choose what to paste, check Transpose, and click OK. To keep the result linked in Excel for Microsoft 365, enter a formula such as =TRANSPOSE(A1:C2) in a clear destination instead.

1. Copy a small labeled rectangle

For a quick practice sheet, enter Month, Jan and Feb across A1:C1. Enter Orders, 12 and 18 across A2:C2. Select all six cells, including the two labels in column A, and press Ctrl+C. You should see the moving border around A1:C2. On your real sheet, select only the rectangle you want to rearrange so titles, notes and unrelated totals stay in place.

2. Reserve a clear destination with the dimensions reversed

Count the source rows and columns before choosing a starting cell. The example is two rows high and three columns wide, so the output will be three rows high and two columns wide. Click E1 and inspect E1:F3 for existing entries. If any of those cells contain work you need, choose another clear area or start at A1 on a new worksheet. Keep the original and destination separate.

3. Use Paste Special and select Transpose

With the empty destination cell selected, press Ctrl+Alt+V to open Paste Special. You can also reach it from the arrow below Paste on the Home tab. Choose All to carry ordinary cell contents and formatting, or choose Values to capture only the current results of formulas. Check Transpose near the bottom of the dialog and click OK. Look at the headings before you make any further changes.

Two small cell grids show the same January and February order counts before and after a transpose.
In A1:C2, months run across the top. After transposing at E1, Jan and Feb run down column E and their order counts appear beside them.

4. Read the result horizontally and vertically

At E1 and F1 you should see Month and Orders. The next row should read Jan and 12, and the last row should read Feb and 18. Check the top-left and bottom-right values on a larger report as well. If your source contains formulas and you selected All, inspect a pasted formula in the formula bar. Relative references can change when Excel places the formula in its new cell.

5. Use a formula when you want edits to flow through

Try a separate live view in H1 on the practice sheet. In Excel for Microsoft 365, type =TRANSPOSE(A1:C2) and press Enter. Excel fills H1:I3 from that single formula. Temporarily change February’s 18 in C2 to 20. The linked view should show 20 in I3 while the pasted example still shows 18 in F3. Restore the original number after your test.

6. Resolve a blocked or unavailable result

If the formula reports #SPILL!, inspect its intended output area and choose a clear, unmerged range outside any Excel table. Place the formula in the top-left cell of that space. If Paste Transpose is unavailable because your source is a formatted Excel table, the formula gives you a rotated view without converting the original table. In legacy Excel without spill formulas, select the whole reversed-size output first, type the formula, then press Ctrl+Shift+Enter.

Choose a fixed copy or a linked result

What you needChoose this in Excel
An editable second layout with cell formatsPaste Special → All, with Transpose checked. Review any copied formulas.
A snapshot of the numbers currently displayedPaste Special → Values, with Transpose checked. Apply number formats to the result as needed.
A rotated summary that follows source changesEnter =TRANSPOSE(source_range) in a clear output area and edit the source when values change.

Common mistakes

Final checklist

Bottom line

Use a known pair, such as February and 18, to check that the rotation worked. If a source edit should appear in the second layout, build that layout with TRANSPOSE.

Related guide

How to Print the Header Row on Every Page in Excel for Windows

Sources

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Read or join the discussion.