Switch (transpose) columns and rows

If data is entered in columns or rows, but you want to rearrange that data into rows or columns instead, you can quickly transpose the data from one to the other.

For example, the regional sales data that is organized in columns appears in rows after transposing the data, as shown in the following graphics.

Data in columns

Regional data in rows

  1. On the worksheet, do the following:

    • To rearrange data from columns to rows, select the cells in the columns that contain the data.

    • To rearrange data from rows to columns, select the cells in the rows that contain the data.

  2. On the Home tab, in the Clipboard group, click Copy Button image .

    The Clipboard group on the Home tab

    Keyboard shortcut  To copy the selected data, you can also press CTRL+C.

    Note: You can only use the Copy command to rearrange the data. To complete this procedure successfully, do not use the Cut Button image command.

  3. On the worksheet, select the first cell of the destination rows or columns into which you want to rearrange the copied data.

    Note: Copy areas and paste areas cannot overlap. Make sure that you select a cell in a paste area that falls outside of the area from which you copied the data.

  4. On the Home tab, in the Clipboard group, click the arrow below Paste, and then click Transpose.

  5. After the data is transposed successfully, you can delete the data in the copy area.

Tip: If the cells that you transpose contain formulas, the formulas are transposed and cell references to data in transposed cells are automatically adjusted. To make sure that formulas continue to refer correctly to data in nontransposed cells, use absolute references in the formulas before you transpose them.

For more information, see Switch between relative, absolute, and mixed references.

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!