If Excel keeps hiding rows, start with filters, then check manual hide, grouping, protection, zero row height, and macros; one of those causes often explains it. Looking at the wrong one burns time and makes data seem missing when it is still in the sheet. This guide gives a fast diagnosis flow that can often be run in about five minutes to find the cause and restore the rows.

How to diagnose hidden rows step by step

Why Excel keeps hiding rows
An Excel worksheet menu shows hide and unhide row options

Likely causes, ranked

  • AutoFilter is active. Hidden rows may not match the current filter rule, and they can return when the filter is cleared.
  • Rows were hidden or grouped. Manual hide, outline grouping, and nested levels can make rows disappear from view.
  • The sheet is protected. Protection can block unhide actions, even when filtering still works.
  • Row height is zero. The row is still there, but it looks hidden because its height was collapsed.
  • Automation is hiding rows again. VBA, workbook events, or formula-driven logic can re-hide rows after you restore them.
  • Viewport confusion is involved. In Excel for the web, after scrolling, or with freeze panes active, the rows may only be out of view.

Why this order matters

Check filters first because they are the quickest thing to inspect and the most common false alarm. Then move to row state, protection, and automation. That order separates a true hidden-row problem from a view issue and keeps you from repeating fixes that do not stick.

Check Yes or no? Likely cause Exact fix
Filter present? Yes AutoFilter is hiding rows that do not match Data > Sort & Filter > Clear, then reapply the intended filter
Grouped rows? Yes Outline grouping collapsed rows Data > Ungroup, or click the plus control beside the outline
Sheet protected? Yes Protection blocks unhide actions Review > Unprotect Sheet, then allow Format rows if protection must stay on
Row height zero? Yes Rows are collapsed to height 0 Home > Format > Row Height, then set a visible height such as 15
Macro-enabled workbook? Yes VBA or event code is re-hiding rows Open the VBA editor and inspect Workbook_Open and Worksheet_Change code
Web or desktop mismatch? Yes Viewport, freeze panes, or control differences are misleading you Open the workbook in desktop Excel and compare the row headers, filter arrows, and frozen pane boundary

Why Excel filters hide rows

AutoFilter hides rows that do not match the current criteria, so the rows are still in the sheet. If the rows come back after you clear the filter, the filter was the cause. Table headers and filter arrows are the quickest clue that filtering is active.

How to confirm AutoFilter is the reason

  1. Open the filter menu. Click a filtered column header and inspect the checked items, text filters, or number filters. If a value is unchecked, Excel will hide every row that does not match it.
  2. Clear the filter. Use Data > Sort & Filter > Clear. If the hidden rows return, the issue is confirmed.
  3. Reapply the intended filter. Turn the filter back on and choose the exact criteria again. If a helper column is driving the filter, check that column for blanks or formula errors first.

Fix when filter rules are too narrow

Say your table has a filter arrow on the Status column and “Closed” is unchecked. Rows with that value vanish, then reappear after you clear the filter. That is normal filter behavior, not lost data.

Why grouped or hidden rows stay missing

Manual hide and outline grouping can both make rows disappear, but they do not behave the same way. Grouped rows collapse with plus or minus controls, while manually hidden rows need an unhide command. Nested outline levels can make several blocks look missing at once.

How to tell grouping from manual hide

  1. Look for outline controls. Check the left margin for plus/minus buttons and the outline level numbers. If they are present, grouped rows are collapsed.
  2. Expand the group. Click the plus control, or use Data > Ungroup if you want to remove the grouping altogether. This restores the collapsed rows.
  3. Unhide selected rows. Select the rows above and below the missing range, then use Home > Format > Hide & Unhide > Unhide Rows. Keyboard alternatives include Ctrl+Shift+9 on Windows and the row context menu on macOS.
  4. Unhide in bulk. If many rows are hidden, select the whole sheet first with the top-left triangle, then run the same unhide command. That is faster than hunting one gap at a time.

Fix when the outline is collapsed

Suppose rows 12 through 18 vanish, but row numbers jump from 11 to 19. If a small minus button sits beside the row labels, grouping is the likely cause. If there is no outline control, manual hide is more likely.

Excel row hiding decision tree

Excel row hiding decision tree
Laptop on a desk shows a spreadsheet beside office supplies

This decision tree separates the common causes in the order that fixes them fastest. Follow the first branch that matches what you see. Each branch ends with a concrete fix and a likely-cause label so you do not waste time on the wrong repair.

Question Yes No
Filter present? Likely cause: AutoFilter. Fix: Data > Sort & Filter > Clear, then reapply the intended criteria. Go to grouped rows.
Grouped rows? Likely cause: Outline collapse. Fix: Click plus controls or use Data > Ungroup. Go to sheet protection.
Sheet protected? Likely cause: Protected sheet. Fix: Review > Unprotect Sheet, or allow Format rows in Protect Sheet. Go to row height.
Row height zero? Likely cause: Zero-height row. Fix: Home > Format > Row Height, then set a visible number such as 15. Go to macro-enabled workbook.
Macro-enabled workbook? Likely cause: VBA re-hiding rows. Fix: Inspect Workbook_Open and Worksheet_Change code in the VBA editor. Go to web versus desktop.
Excel for the web vs desktop? Likely cause: View confusion. Fix: Open the file in desktop Excel and compare row headers, filters, freeze panes, and the visible scroll position. Likely cause: Non-row issue. Check the formula, the sheet name, or the workbook view.

Fix by branch

If the answer is yes on any branch, use the matching fix immediately instead of moving down the tree. If the answer is no, continue to the next branch because the symptom is probably caused by a different visibility mechanism.

Why protected sheets block unhiding

Worksheet protection can block row-unhide commands even when the sheet still lets you sort or filter. If the file is protected, Excel may refuse to change row visibility until protection is removed or row formatting is allowed in the protection settings.

How to clear or permit row visibility changes

  1. Check protection first. Go to Review > Protect Sheet. If the sheet is protected, the button will usually offer an unprotect action instead.
  2. Unprotect the sheet. Choose Review > Unprotect Sheet and enter the password if prompted. Without this step, unhide commands can fail.
  3. Allow row formatting. If protection must stay on, reopen Protect Sheet and allow Format rows. That permission matters when you need row visibility changes later.

Fix when edits are allowed but rows still stay hidden

If a workbook lets you edit cells but not unhide rows, protection is a strong candidate. That split behavior is common on shared files where filtering is allowed but row formatting is locked down.

Why rows re-hide after you unhide them

Rows that return only for a moment usually point to VBA or event-driven logic. Common triggers include Workbook_Open and Worksheet_Change. Formula-driven helper columns can also feed AutoFilter or macros and hide the wrong rows when the formula result changes. Frozen rows and split panes can make the same rows seem to vanish again when the visible area shifts.

How automation keeps undoing your fix

  1. Save and reopen. Save the file, close it, and open it again. If the same rows hide on open, that points to startup code rather than a one-time manual action.
  2. Check macro status. Look for a .xlsm or .xlsb workbook, then open the VBA editor with Alt+F11. Inspect Workbook_Open, Worksheet_Change, and any code that calls Rows.Hidden or changes row height.
  3. Review helper formulas. Look for helper columns that feed filtering or row-hiding logic. Fix formula errors first, then recalculate, because bad outputs can hide the wrong rows.
  4. Test without automation. If possible, disable macros and reopen a copy. If rows stay visible, automation is the cause and the code needs adjustment.

How freeze panes and scrolling can mimic hidden rows

A frozen header row can keep the top of the sheet fixed while the active area scrolls below it, so the missing rows may be outside the visible pane rather than hidden. Split panes can do something similar by showing separate scroll regions. If the row numbers are present but the content seems to jump, check the pane boundary before changing row visibility.

How helper formulas can trigger the symptom

A common first-timer mistake is fixing the row once, then closing the workbook and seeing it disappear again. That usually means the code is still active, so the visible result never had a chance to stick. Formula-based helper columns can also flip from visible to hidden when recalculation changes the filter result or the logic that drives a macro.

Still not working?

Still not working?
A desktop monitor displays a spreadsheet beside a keyboard and coffee mug

If the rows still disappear after the checks above, the next step is a wider reset: save, close, reopen, and compare the workbook in desktop Excel and Excel for the web. If the problem returns in a macro-enabled file, send the exact workbook copy to the file owner or vendor and describe the trigger that makes the rows hide again.

Escalation order

Use the simplest reset first, then move to file-level checks. That keeps you from chasing a view problem when the workbook itself is the source of the behavior.

  1. Reopen a saved copy. This clears temporary view issues and confirms whether the symptom survives a fresh session.
  2. Inspect the file type. If the workbook is managed by a team process, ask whether macros or event code are expected.
  3. Escalate with details. Share the workbook name, the sheet name, the exact command used to unhide, and whether the rows return after clearing filters or reopening the file.

Prevention: Keep filter logic, helper columns, and row-hiding code in one place when possible, and document any macro that hides rows so the next edit does not look like random data loss.

Keep reading

Frequently asked questions

Why does Excel keep hiding rows?

Most often, a filter, grouped rows, protection, zero row height, or VBA is changing row visibility. Start with Data > Sort & Filter > Clear, then check Home > Format > Hide & Unhide and Review > Unprotect Sheet if the rows do not return.

Why are rows hidden after I clear a filter?

If rows stay hidden after Data > Sort & Filter > Clear, they were probably hidden by another cause, not the filter. Check Home > Format > Hide & Unhide > Unhide Rows and look for grouping controls or zero row height.

How do I unhide rows in Excel?

Select the rows above and below the gap, then choose Home > Format > Hide & Unhide > Unhide Rows. For many hidden rows, select the whole sheet first. On Windows, Ctrl+Shift+9 is a quick keyboard option for row unhiding.

Why is Excel hiding rows when I filter?

That is standard AutoFilter behavior. Excel hides rows that do not match the current criteria. Check the filter arrow on the column header, clear the filter with Data > Sort & Filter > Clear, then choose the correct values again.

Why is Excel randomly hiding rows?

Random-looking hiding usually comes from automation or row height changes, not chance. Check whether the workbook is macro-enabled, then inspect Workbook_Open and Worksheet_Change code. Also verify that the row height is not set to zero in Home > Format > Row Height.

Why does Excel keep auto hiding rows?

If rows re-hide after you restore them, code is the first thing to check. Open the VBA editor with Alt+F11 and review event procedures. If the workbook is protected, also confirm that Format rows is allowed under Review > Protect Sheet.