Rearrange rows and columns

You can move rows and columns in a table, and convert rows to columns and columns to rows.

Move rows and columns within a table

You can move any rows and columns in a table; however, they may be reformatted when you move them. For example, when you move header and footer rows to the body of the table, they’re reformatted as body rows, and vice versa.

  1. Select the rows or columns you want to move.

  2. Do any of the following:

    • Move rows: After selecting the rows, click and hold one of the selected row numbers until the rows appear to rise off the table, then drag them above or below another row.

    • Move columns: After selecting the columns, click and hold one of the selected column letters until the columns appear to rise off the table, then drag them to the right or left of another column.

Tip: If you drag rows or columns outside of an existing table, you create a new table with them.

Transpose rows and columns

You can transpose the rows and columns in a table to switch them—Row 1 becomes Column A (the contents of row 1 move into column A and vice versa), Row 2 becomes Column B, and so on.

  1. Select the table.

  2. Choose Table > Transpose Rows and Columns (from the Table menu at the top of your screen).

These are the results of transposing:

Note: To undo the transposing and revert all the changes, select the table and transpose it again.