Office Tips

Transpose data

Rearrange (transpose) data from columns to rows or vice versa

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.

Regional data in columns

Regional data in rows

  • 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.
       
  • On the Home tab, in the Clipboard group, click Copy.

    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  command.
     
  • 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.
     
  • On the Home tab, in the Clipboard group, click the arrow below Paste, and then click Transpose.
     
  • 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.