If Excel won't hide your rows, the cause is almost always the sheet protection, a worksheet grouping issue, filtered or merged cells, or a locked workbook view. Hiding single rows works fine on most spreadsheets; if the options are greyed out or simply do nothing, one of those four causes is blocking you. Start by checking whether the sheet is protected (Review tab), because that is the most common reason the Hide command is unavailable.
What You'll Need
- Excel for Windows or Mac, or Excel for the web; the steps are slightly different on each, and labels can differ by version, device or region
- The workbook containing the rows that won't hide
- The password for the sheet, if it is protected and you are allowed to change it
- Enough rows visible to keep at least one row of data on screen
Step-by-Step
- Test with a single row first. Right-click a row number (the grey header on the left) and look at the menu. If Hide appears and is clickable, you have a specific row problem rather than a sheet-wide lock. If Hide is greyed out, go straight to step 2.
- Check whether the worksheet is protected. Click the Review tab and look at the right side of the ribbon. If you see Unprotect Sheet, the sheet is protected and row operations may be restricted. Click Unprotect Sheet, enter the password if prompted, and try hiding again. This is the single most common fix.
- Confirm the protection settings allow row changes. When you protect a sheet (Review > Protect Sheet), Excel offers a list of permitted actions. If Format rows is unticked, nobody can hide, unhide, or resize rows until the sheet is unprotected. If you own the file, unprotect, re-protect, and tick Format rows so hiding works while protection stays on.
- Ungroup the worksheets if they are grouped. If the tabs at the bottom turn bold or the title bar shows a word like [Group], several sheets are selected together. Row hiding behaves oddly or applies to all sheets at once. Right-click any tab and choose Ungroup Sheets, or click a single unselected tab.
- Clear filters that are hiding rows already. A filter can make a row look present but invisible, so hiding it again seems to do nothing. On the Data tab, click Clear in the Sort & Filter group to remove all filters, then try hiding the row again.
- Check for merged cells. Hiding a row that intersects a merged cell spanning several rows can fail or produce a broken layout. Select the area, open Home > Merge & Center, and choose Unmerge Cells, then hide the row.
- Look for row height set to a minimum. If rows look hidden but a thin sliver remains, someone may have set height close to zero rather than hiding. Right-click the row header, choose Row Height, and set a normal value such as 15, then hide normally.
- Use the menu path instead of right-click. Select the rows by clicking the first row number and dragging, then go to Home > Format > Hide & Unhide > Hide Rows. If this works but right-click did not, the right-click problem was likely a temporary freeze or a menu glitch.
- Check whether the workbook is in a restricted view. If the title bar reads Protected View or Read-Only, editing commands are limited. Look for Enable Editing in the yellow bar above the grid and click it. If the file is read-only on disk, save a copy and work in that.
- Restart Excel and try again. Close the workbook, close Excel completely, reopen it, and repeat the hide test. A stuck add-in or a session glitch is often cleared this way.
- Select the correct row range. Hiding fails silently if you have selected cells rather than entire rows. Click the row number itself so the whole row is highlighted before using Hide.
- Make sure at least one row stays visible. Excel will not let you hide every row on a sheet. If you selected all rows, deselect one before hiding.
Common Mistakes
- Leaving the sheet protected and wondering why nothing changes; sheets protected without the Format rows permission block hiding outright.
- Hiding rows while multiple sheets are grouped, which hides the same rows on every sheet in the group.
- Selecting cells instead of row headers, so the selection is not a full row and the command behaves inconsistently.
- Confusing a filtered-out row with a hidden row. A filter hides the row without changing its row state, so Unhide will not bring it back; you must clear the filter.
- Assuming that deleting a row and hiding a row are the same. Hiding keeps the data; deleting destroys it and shifts everything below upward.
- Forgetting that the first row of a table is usually the header; hiding it can confuse filtering and sorting.
Tips
- To unhide rows, select the rows on both sides of the hidden ones, then right-click and choose Unhide. Selecting only one side often does not work.
- If the hidden rows are at the very top of the sheet, select row 1 and row 2 both, then use Format > Hide & Unhide > Unhide Rows.
- Use Group (Data > Group) instead of hiding rows for collapsible sections; grouped rows show a small minus button that makes it obvious something is collapsed.
- Keep protection passwords in a safe place; a lost password on a protected sheet is not recoverable through normal Excel menus.
- Save a copy before unprotecting or restructuring a shared workbook, so other users are not affected.
- Right-clicking a row header is faster than the ribbon when you need to hide several non-adjacent rows: hold Ctrl (Windows) or Command (Mac) while clicking each row number.
Troubleshooting
Hide is greyed out and the sheet is not protected. Check whether the workbook is open in a restricted view such as Protected View or read-only mode. Look for Enable Editing, click it, and retry. If the file is marked read-only in its properties or lives on a shared drive, save a local copy and work from there.
Hide works, but the row reappears after reopening. Something is re-showing the rows on open: a filter refresh, a macro, or a workbook that resets the layout. Open the file with macros disabled first to test, and check whether the filter area still covers the hidden rows.
The row hides but a visible gap stays. The row may be set to an extremely small height rather than being hidden. Right-click the row headers and choose Row Height to restore it, then hide again. If the gap sits at the bottom of a merged cell, unmerge the cell first.
You cannot find which rows are hidden. Select the whole sheet with Ctrl + A (or the square above row 1), then right-click any row header and choose Unhide. All hidden rows return, which makes them easier to identify.
Only some rows hide, others do not. This usually points to a mix of locked cells inside a protected sheet. Unprotect the sheet, hide all the rows, and re-protect with the correct permissions.
Frequently Asked Questions
Why is the Hide Rows option greyed out in Excel?
The most common cause is worksheet protection without the Format rows permission, followed by a read-only or Protected View workbook. Unprotect the sheet or enable editing and it becomes available.
Can you hide all rows in a worksheet?
No. Excel requires at least one row to remain visible on every sheet, so selecting every row and choosing Hide does nothing.
How do I unhide rows at the top of a sheet?
Select rows 1 and 2 together, right-click, and choose Unhide. You can also use Home > Format > Hide & Unhide > Unhide Rows.
Does hiding a row delete its data?
No. Hidden rows keep their contents and formulas. They are simply not displayed, and functions like SUBTOTAL and filtering can ignore them depending on the settings you use.
Why do hidden rows come back when I filter?
Filters temporarily hide rows based on criteria. Clearing the filter or changing the criteria shows them again, regardless of whether you had hidden them manually.
What is the difference between hiding rows and grouping them?
Hiding removes the row from view with no on-screen indicator. Grouping adds a small collapse button and outline level, so it is clearer to others that content exists under it.