Show or hide columns and rows

You can hide a row or column by using the Hide command, or by changing the row height or column width to 0 (zero). You can display either again by using the Unhide command.

You can unhide specific rows and columns, or you can unhide all hidden rows and columns at the same time. If you hide the first row or column in a worksheet, you follow a different process, and you'll find that in the last section of the article.

What do you want to do?

Hide one or more rows or columns

Display one or more hidden rows or columns

Display all hidden rows and columns at the same time

Unhide the first row or column of the worksheet

Hide one or more rows or columns

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

    How to select cells, ranges, rows, or columns

    To select

    Do this

    A single cell

    Click the cell, or press the arrow keys to move to the cell.

    A range of cells

    Click the first cell in the range, and then drag to the last cell, or hold down Shift while you press the arrow keys to extend the selection.

    You can also select the first cell in the range, and then press F8 to extend the selection by using the arrow keys. To stop extending the selection, press F8 again.

    A large range of cells

    Click the first cell in the range, and then hold down Shift while you click the last cell in the range. You can scroll to make the last cell visible.

    All cells on a worksheet

    Click the Select All button.

    Select All button

    To select the entire worksheet, you can also press Ctrl+A.

    Note   If the worksheet contains data, Ctrl+A selects the current region. Pressing Ctrl+A a second time selects the entire worksheet.

    Nonadjacent cells or cell ranges

    Select the first cell or range of cells, and then hold down Ctrl while you select the other cells or ranges.

    You can also select the first cell or range of cells, and then press Shift+F8 to add another nonadjacent cell or range to the selection. To stop adding cells or ranges to the selection, press Shift+F8 again.

    Note   You cannot cancel the selection of a cell or range of cells in a nonadjacent selection without canceling the entire selection.

    An entire row or column

    Click the row or column heading.

    Worksheet headings

    1. Row heading

    2. Column heading

    You can also select cells in a row or column by selecting the first cell and then pressing Ctrl+Shift+Arrow key (Right Arrow or Left Arrow for rows, Up Arrow or Down Arrow for columns).

    Note   If the row or column contains data, Ctrl+Shift+Arrow key selects the row or column to the last used cell. Pressing Ctrl+Shift+Arrow key a second time selects the entire row or column.

    Adjacent rows or columns

    Drag across the row or column headings. Or select the first row or column; then hold down Shift while you select the last row or column.

    Nonadjacent rows or columns

    Click the column or row heading of the first row or column in your selection; then hold down Ctrl while you click the column or row headings of other rows or columns that you want to add to the selection.

    The first or last cell in a row or column

    Select a cell in the row or column, and then press Ctrl+Arrow key (Right Arrow or Left Arrow for rows, Up Arrow or Down Arrow for columns).

    The first or last cell on a worksheet or in a Microsoft Office Excel table

    Press Ctrl+Home to select the first cell on the worksheet or in an Excel list.

    Press Ctrl+End to select the last cell on the worksheet or in an Excel list that contains data or formatting.

    Cells to the last used cell on the worksheet (lower-right corner)

    Select the first cell, and then press Ctrl+Shift+End to extend the selection of cells to the last used cell on the worksheet (lower-right corner).

    Cells to the beginning of the worksheet

    Select the first cell, and then press Ctrl+Shift+Home to extend the selection of cells to the beginning of the worksheet.

    More or fewer cells than the active selection

    Hold down Shift while you click the last cell that you want to include in the new selection. The rectangular range between the active cell and the cell that you click becomes the new selection.

    Tip   To cancel a selection of cells, click any cell on the worksheet.

  2. On the Home tab, in the Cells group, click Format.

    The Cells group on the Home tab

  3. Do one of the following:

    • Under Visibility, point to Hide & Unhide, and then click Hide Rows or Hide Columns.

    • Under Cell Size, click Row Height or Column Width, and then type 0 in the Row Height or Column Width box.

Tip   You can also right-click a row or column (or a selection of multiple rows or columns), and then click Hide.

Top of Page

Display one or more hidden rows or columns

  1. Do one of the following:

    • To display hidden rows, select the row above and below the rows that you want to unhide.

    • To display hidden columns, select the columns adjacent to either side of the columns that you want to unhide.

    • To display the first hidden row or column on a worksheet, select it by typing A1 in the Name Box next to the formula bar.

      Tip   You can also select it by using the Go To dialog box. On the Home tab, under Editing, click Find & Select, and then click Go To. In the Reference box, type A1, and then click OK.

      How to select cells, ranges, rows, or columns

      To select

      Do this

      A single cell

      Click the cell, or press the arrow keys to move to the cell.

      A range of cells

      Click the first cell in the range, and then drag to the last cell, or hold down Shift while you press the arrow keys to extend the selection.

      You can also select the first cell in the range, and then press F8 to extend the selection by using the arrow keys. To stop extending the selection, press F8 again.

      A large range of cells

      Click the first cell in the range, and then hold down Shift while you click the last cell in the range. You can scroll to make the last cell visible.

      All cells on a worksheet

      Click the Select All button.

      Select All button

      To select the entire worksheet, you can also press Ctrl+A.

      Note   If the worksheet contains data, Ctrl+A selects the current region. Pressing Ctrl+A a second time selects the entire worksheet.

      Nonadjacent cells or cell ranges

      Select the first cell or range of cells, and then hold down Ctrl while you select the other cells or ranges.

      You can also select the first cell or range of cells, and then press Shift+F8 to add another nonadjacent cell or range to the selection. To stop adding cells or ranges to the selection, press Shift+F8 again.

      Note   You cannot cancel the selection of a cell or range of cells in a nonadjacent selection without canceling the entire selection.

      An entire row or column

      Click the row or column heading.

      Worksheet headings

      1. Row heading

      2. Column heading

      You can also select cells in a row or column by selecting the first cell and then pressing Ctrl+Shift+Arrow key (Right Arrow or Left Arrow for rows, Up Arrow or Down Arrow for columns).

      Note   If the row or column contains data, Ctrl+Shift+Arrow key selects the row or column to the last used cell. Pressing Ctrl+Shift+Arrow key a second time selects the entire row or column.

      Adjacent rows or columns

      Drag across the row or column headings. Or select the first row or column; then hold down Shift while you select the last row or column.

      Nonadjacent rows or columns

      Click the column or row heading of the first row or column in your selection; then hold down Ctrl while you click the column or row headings of other rows or columns that you want to add to the selection.

      The first or last cell in a row or column

      Select a cell in the row or column, and then press Ctrl+Arrow key (Right Arrow or Left Arrow for rows, Up Arrow or Down Arrow for columns).

      The first or last cell on a worksheet or in a Microsoft Office Excel table

      Press Ctrl+Home to select the first cell on the worksheet or in an Excel list.

      Press Ctrl+End to select the last cell on the worksheet or in an Excel list that contains data or formatting.

      Cells to the last used cell on the worksheet (lower-right corner)

      Select the first cell, and then press Ctrl+Shift+End to extend the selection of cells to the last used cell on the worksheet (lower-right corner).

      Cells to the beginning of the worksheet

      Select the first cell, and then press Ctrl+Shift+Home to extend the selection of cells to the beginning of the worksheet.

      More or fewer cells than the active selection

      Hold down Shift while you click the last cell that you want to include in the new selection. The rectangular range between the active cell and the cell that you click becomes the new selection.

      Tip    To cancel a selection of cells, click any cell on the worksheet.

  2. On the Home tab, in the Cells group, click Format.

    • The Cells group on the Home tab

  3. Do one of the following:

    • Under Visibility, point to Hide & Unhide, and then click Unhide Rows or Unhide Columns.

    • Under Cell Size, click Row Height or Column Width, and then type the value that you want in the Row Height or Column Width box.

Tip   You can also right-click the selection of visible rows and columns that surround the hidden rows and columns, and then click Unhide.

Top of Page

Display all hidden rows and columns at the same time

  1. To select all cells on a worksheet, do one of the following:

    • Click the Select All button.

      Select All button

    • Press Ctrl+A.

      Note   If the worksheet contains data and the active cell is above or to the right of the data, pressing Ctrl+A selects the current region. Pressing Ctrl+A a second time selects the entire worksheet.

  2. On the Home tab, in the Cells group, click Format.

    The Cells group on the Home tab

  3. Do one of the following:

    • Under Visibility, point to Hide & Unhide, and then click Unhide Rows or Unhide Columns.

    • Under Cell Size, click Row Height or Column Width, and then type the value that you want in the Row Height or Column Width box. The default height for rows is 15, the default width for columns is 8.43.

Top of Page

Unhide the first row or column of the worksheet

Follow these steps if you've hidden the first row or column in a worksheet.

  1. To select the first hidden row or column on the worksheet, do one of the following:

    • In the Name Box next to the formula bar, type A1.

    • On the Home tab, in the Editing group, click Find & Select, and then click Go To. In the Reference box, type A1, and then click OK.

  2. On the Home tab, in the Cells group, click Format.

    The Cells group on the Home tab

  3. Do one of the following:

    • Under Visibility, point to Hide & Unhide, and then click Unhide Rows or Unhide Columns.

    • Under Cell Size, click Row Height or Column Width, and then type the value that you want in the Row Height or Column Width box.

Top of Page

Applies To: Excel 2013



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language