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
- How to hide columns in Excel
- How to hide rows in Excel
- How to unhide rows and columns
- Keyboard shortcuts for hiding
- How to unhide row 1 or column A
- Charts ignore hidden rows and columns
- Fix: Cannot shift objects off sheet
- Related Excel tasks
- Hiding cell values instead
- More Word, Excel and PowerPoint guides
Quick answer: hide and unhide in Excel
| Task | What to do |
|---|---|
| Hide columns | Select the columns, right-click, choose Hide |
| Hide rows | Select the rows, right-click, choose Hide |
| Unhide columns or rows | Select the columns or rows on both sides, right-click, choose Unhide |
| Unhide the first row or column | Type A1 in the Name Box, then Home > Format > Hide & Unhide |
| Hide rows with a shortcut | Ctrl+9 |
| Hide columns with a shortcut | Ctrl+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
- Select the column or columns you want to hide by clicking the column letters.
- To pick columns that are not next to each other, hold Ctrl while you click each letter.
- Right-click anywhere in the selection.
- 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.
- Click a row number, or drag across several row numbers.
- Hold Ctrl and click more row numbers if the rows are separate.
- 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
- Select the rows or columns on both sides of the hidden ones, for example columns B and D if column C is hidden.
- Right-click the selection.
- 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
| Shortcut | Action |
|---|---|
| Ctrl+9 | Hide the selected rows |
| Ctrl+0 | Hide the selected columns |
| Shift+Space | Select an entire row |
| Ctrl+Space | Select 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.
- Type A1 in the Name Box next to the formula bar and press Enter.
- 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.
- On the Home tab, in the Cells group, select Format.
- 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.
- Click the chart.
- Under Chart Tools, open the Design tab and click Select Data in the Data group.
- Click Hidden and Empty Cells.
- 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.”
| Cause | Detail |
|---|---|
| Display setting | The workbook’s object display option is set to Nothing (hide objects) |
| Object in a column | A comment, chart, shape or picture sits in the column you are hiding |
| Hidden objects | Cell 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.
Related Excel tasks
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.
- Select the cells.
- On the Home tab, select the Number Format button next to Number.
- In the Category box, select Custom.
- 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.
More Word, Excel and PowerPoint guides
- How To Freeze Rows And Columns In Excel (2026)
- How To Split Text Into Columns In Excel (2026)
- How To Repeat Header Rows On Every Printed Page In Excel (2026)
- How To Save Word And Excel Files To Your PC By Default (2026)
- How To Show The Formula Bar And Gridlines In Excel (2026)
- How To Fix Excel Arrow Keys Scrolling The Sheet (2026)