Excel auto-hiding rows is usually caused by grouping, filtering, or manual row hiding that wasn’t undone. It doesn’t happen randomly—it’s triggered by user actions or settings. The fix is simple once you identify the cause. This guide shows you how to find and reverse the hidden rows, disable automatic grouping, and prevent recurrence.

What You'll Need

  • Access to the Excel file where rows are hiding
  • Basic familiarity with Excel’s ribbon menus and keyboard shortcuts
  • Windows or macOS with Excel 2016 or later (steps apply to all recent versions)

Step-by-Step

  1. Open the Excel file where rows are being auto-hidden.
  2. Look for the small gray boxes with a minus (-) or plus (+) symbol on the left side of the worksheet, between row numbers. These indicate grouped rows. If you see them, grouping is active.
  3. Click the minus (-) symbol to expand any collapsed groups, or click the plus (+) to collapse them. If rows re-hide after you expand them, the group is still active and needs to be removed.
  4. Select the entire range of rows that are grouped. Click the row number on the far left to select one row, then hold Shift and click another row number to select a block. Or press Ctrl+A to select all rows if you’re unsure which ones are grouped.
  5. Go to the Data tab on the ribbon. In the Outline group, click Ungroup.
  6. A dialog box will appear. Select Rows and click OK. This removes all row groupings in the selected range.
  7. If you don’t see the Ungroup button, it may be grayed out. This means no rows are currently grouped. Skip to step 8.
  8. Check for filters. Go to the Data tab and look for the Filter button. If it’s highlighted (blue), filters are active. Click it to turn them off. Filtered rows can appear hidden if they don’t match the filter criteria.
  9. Manually unhide any hidden rows. Select the rows above and below the hidden ones. For example, if rows 5–7 are hidden, select rows 4 and 8. Right-click anywhere in the selected area and choose Unhide.
  10. Press Ctrl+Shift+9 on your keyboard to unhide any rows that may still be hidden. This shortcut works even if you haven’t selected anything.
  11. Save the file. Press Ctrl+S to ensure the changes are preserved.

Common Mistakes

  • Clicking Hide instead of Unhide when trying to fix the issue—this makes rows disappear further.
  • Assuming the problem is a bug or glitch rather than a setting—Excel doesn’t auto-hide rows without cause.
  • Only ungrouping one section and leaving others grouped, causing partial hiding to persist.
  • Turning off filters but forgetting to clear the filter criteria—rows stay hidden if the filter still blocks them.
  • Using Ctrl+9 instead of Ctrl+Shift+9—Ctrl+9 hides rows, Ctrl+Shift+9 unhides them.

Tips

  • Before grouping rows, consider if you really need it. Grouping is useful for summarizing data but easily forgotten after editing.
  • Use the Outline symbols (the small arrows) to quickly toggle visibility without ungrouping—this lets you keep structure while viewing data.
  • Hold Ctrl and click multiple row numbers to select non-adjacent hidden rows, then right-click and choose Unhide if only certain rows are hidden.
  • Disable automatic outline creation: go to File > Options > Advanced, scroll to Display options for this worksheet, and uncheck Auto-create outlines if you frequently create accidental groups.
  • Use Ctrl+Shift+L to quickly toggle filters on and off. This is faster than navigating the ribbon.
  • Keep a backup copy of your file before making bulk changes—especially if you’re ungrouping large datasets.

Troubleshooting

  • If rows still hide after ungrouping and unfiltering, check if someone else has applied a macro or VBA script. Press Alt+F11 to open the Visual Basic Editor. Look under Modules or ThisWorkbook for code that includes Rows().Hidden = True. If found, delete or comment out the line.
  • If the Ungroup option is grayed out and you can’t select rows, the worksheet may be protected. Go to the Review tab and click Unprotect Sheet. If a password is required, you’ll need it from the file owner.
  • If ungrouping doesn’t work and you suspect a corrupted file, open Excel in Safe Mode: hold Ctrl while launching Excel, then open the file. If rows stay visible in Safe Mode, an add-in is interfering. Disable add-ins via File > Options > Add-Ins.
  • If this happens only in one file but not others, the issue is file-specific. Copy the data to a new workbook and recreate formulas. This often resolves hidden row corruption.
  • If you’re using Excel Online, some grouping features are limited. Switch to the desktop app to fully manage row grouping and ungrouping.

Frequently Asked Questions

Why do my Excel rows keep hiding after I unhide them?

Rows are likely grouped. When you unhide them, the group setting remains and re-hides them when collapsed. Ungroup the rows to permanently fix this.

Can Excel hide rows automatically based on cell values?

Not by default. Excel only hides rows manually or through grouping. If rows hide based on values, a macro or VBA script is doing it—not Excel itself.

What’s the difference between hiding rows and filtering rows?

Hiding rows makes them invisible permanently until unhidden. Filtering hides rows temporarily based on criteria and can be turned off with one click. Filters show a dropdown arrow in column headers; hidden rows do not.

How do I know if rows are grouped or just hidden?

Look for the small + and - symbols in the row numbers on the left. If they’re present, rows are grouped. If not, they’re manually hidden and you’ll need to use the Unhide command.

Will ungrouping delete my data?

No. Ungrouping only removes the collapsible structure. Your data, formulas, and formatting remain intact.

Can I stop Excel from grouping rows automatically?

Yes. Go to File > Options > Advanced and uncheck "Auto-create outlines" under Display options for this worksheet. This prevents Excel from creating groups when you use Subtotal or Data > Group.