Add or remove rows and columns

You can add, delete, and rearrange rows and columns in a table. There are three types of rows and columns:

A table showing header, body, and footer rows and columns, and handles for adding or deleting rows or columns

Add or remove rows and columns

Add, remove, or freeze header rows and columns

Adding header rows, header columns, or footer rows converts existing rows or columns into headers or footers. For example, if you have data in the first row of a table and you add a header row, the first row is converted to a header row that contains the same data.

You can freeze header rows or columns so they’re always visible as you scroll the spreadsheet.

  1. Click the table.

  2. Do any of the following:

    • Add or delete headers and footers: Click the Table tab at the top of the sidebar on the right, then click the Headers & Footer pop-up menus in the sidebar and choose a number. To remove all headers or footers, set the number to zero.

      If you don’t see a sidebar, or the sidebar doesn’t have a Table tab, click Format button in the toolbar.

    • Freeze header rows and columns: Click the Table tab at the top of the sidebar on the right, click the pop-up menus below Headers & Footer, then choose Freeze Header Rows or Freeze Header Columns. To unfreeze, deselect Freeze Header Rows or Freeze Header Columns so that the checkmark disappears.

      The pop-up menus for adding header and footer columns and rows to a table and for freezing header rows and columns

To learn how to show table headers on every page of a printed spreadsheet, see Print a spreadsheet.

Hide or show rows and columns

Hiding rows or columns is useful if, for example, you need to use their data for formulas, but you don’t want the data to be visible.

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

  2. Move the pointer over a row number or column letter, then click the down arrow that appears and choose Hide Selected Rows or Hide Selected Columns.

To show hidden rows or columns, select a row or column adjacent to the hidden ones. Move the pointer over the column letter or row number, click the down arrow, then choose an Unhide option.

To unhide all rows or columns, click the table, then choose Table > Unhide All Rows or Unhide All Columns (from the Table menu at the top of your screen).

SEE ALSOCalculate values using data in table cellsDelete cell contentFormat cells to display different types of data