How To Hide And Unhide Rows And Columns In Excel (2026)

To hide rows or columns in Excel, select them, right-click, and choose Hide.

To bring them back, select the rows or columns on both sides of the gap, right-click, and choose Unhide.

This guide covers both jobs, plus the harder cases: a hidden first row or column, hidden data in charts, and an error that blocks hiding.

Table of Contents

Quick answer: hide and unhide in Excel

TaskWhat to do
Hide columnsSelect the columns, right-click, choose Hide
Hide rowsSelect the rows, right-click, choose Hide
Unhide columns or rowsSelect the columns or rows on both sides, right-click, choose Unhide
Unhide the first row or columnType A1 in the Name Box, then Home > Format > Hide & Unhide
Hide rows with a shortcutCtrl+9
Hide columns with a shortcutCtrl+0

These steps come from Microsoft’s own Hide or show rows or columns article, which covers Excel for Microsoft 365, Excel 2024, 2021, 2019 and 2016.

How to hide columns in Excel

  1. Select the column or columns you want to hide by clicking the column letters.
  2. To pick columns that are not next to each other, hold Ctrl while you click each letter.
  3. Right-click anywhere in the selection.
  4. Choose Hide.

Excel marks the spot with a double line between the two column letters on either side of the hidden column.

How to hide rows in Excel

Rows work the same way as columns, only you select row numbers on the left edge instead of column letters.

  1. Click a row number, or drag across several row numbers.
  2. Hold Ctrl and click more row numbers if the rows are separate.
  3. Right-click the selection and choose Hide.

A double line between two row numbers shows that a row is hidden at that point.

How to unhide rows and columns

  1. Select the rows or columns on both sides of the hidden ones, for example columns B and D if column C is hidden.
  2. Right-click the selection.
  3. Choose Unhide.

As a quicker option, Microsoft says you can double-click the double line where the hidden rows or columns sit.

Keyboard shortcuts for hiding

ShortcutAction
Ctrl+9Hide the selected rows
Ctrl+0Hide the selected columns
Shift+SpaceSelect an entire row
Ctrl+SpaceSelect an entire column

These come from Microsoft’s Keyboard shortcuts in Excel list.

That list gives no shortcut for unhiding, so use the right-click method or the ribbon route below to bring rows and columns back.

A practical combination is to click a cell, press Shift+Space to select its row, then press Ctrl+9 to hide it.

How to unhide row 1 or column A

The first row and first column are tricky because nothing sits above or to the left of them to select.

Microsoft’s Unhide the first column or row page warns that selecting the whole worksheet and unhiding would reveal every hidden row and column, which you may not want.

Select only the first cell instead, then use the ribbon.

  1. Type A1 in the Name Box next to the formula bar and press Enter.
  2. Or go to the Home tab, open Find & Select in the Editing group, choose Go To, type A1 in the Reference box, and select OK.
  3. On the Home tab, in the Cells group, select Format.
  4. Under Visibility, select Hide & Unhide, then choose Unhide Rows or Unhide Columns.

Microsoft also lists a second route: under Cell Size in the same Format menu, choose Row Height or Column Width and type a value in the box.

Charts ignore hidden rows and columns

If you hide data that feeds a chart, the chart drops it, because Microsoft states that data in hidden rows and columns is not plotted by default.

To keep plotting hidden data, follow the steps in Microsoft’s chart hidden data article.

  1. Click the chart.
  2. Under Chart Tools, open the Design tab and click Select Data in the Data group.
  3. Click Hidden and Empty Cells.
  4. Select Show data in hidden rows and columns, then confirm.

If you are building the chart in the first place, see our guide to making a chart in Excel.

Fix: Cannot shift objects off sheet

Hiding or inserting columns can trigger the message “Cannot shift objects off sheet.”

CauseDetail
Display settingThe workbook’s object display option is set to Nothing (hide objects)
Object in a columnA comment, chart, shape or picture sits in the column you are hiding
Hidden objectsCell comments are the most common hidden object

Microsoft’s article on this error says to open Excel Options, click Advanced, and under Display options for this workbook choose All for For objects, show.

The article adds that Ctrl+6 toggles this setting and that it was written for older Excel versions, so the menu wording may differ slightly in current releases.

Hiding is not the same as locking a header in view, so freezing rows and columns is the better tool for keeping labels on screen.

To show only certain rows temporarily, sorting and filtering a list hides rows without selecting them one by one.

If you only want a section to print, set a print area instead.

Hiding cell values instead

If you only want a number to look blank, Microsoft describes a different method in its hide or display cell values article.

  1. Select the cells.
  2. On the Home tab, select the Number Format button next to Number.
  3. In the Category box, select Custom.
  4. In the Type box, replace the existing code with three semicolons (;;;) and select OK.

The values still show in the formula bar when you select the cell.

To show them again, return to Number Format and set the Category to General, or pick the date, time or number format you want.

Leave a Reply

Your email address will not be published. Required fields are marked *