Fix Hidden Rows Reappearing When Entering a Formula in Excel
Question details
Determine why hidden rows become visible when a formula is entered in Excel.

- Product
- Microsoft Excel 2016
- Device & OS
- Windows 10 Enterprise, version 1607, OS Build 14393.2189
- Scenario
- The user enters a formula such as AVERAGE in a worksheet containing hidden rows.
- Observed behavior
- Hidden rows unexpectedly become visible after the formula is entered.
Note the formula, the cell where you enter it, and which rows are hidden. Check whether the behavior occurs immediately after pressing Enter or after another action.
Test the Formula in a New Excel Workbook
Use a new workbook to determine whether the behavior is specific to the affected file.
In Excel, select File > New > Blank workbook and enter a few numbers in a column.
Select several row headings, right-click them, and choose Hide.
In a visible cell, enter an AVERAGE formula covering the test data and press Enter. Check whether the hidden rows reappear.
Repeat the same actions in the affected workbook. If the issue occurs only there, inspect that workbook's macros, events, filters, and grouped rows.

Check Workbook Automation, Add-ins, Filters, and Groups
Investigate features that may change row visibility when a worksheet is edited.
Collect Version Details and a Reproduction
Provide precise information when the issue needs further investigation.
Work with Spreadsheets in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface. Open compatible Excel workbooks in WPS Spreadsheets for an easier transition, although it does not repair the issue in Microsoft Excel.

Frequently Asked Questions
Should entering an AVERAGE formula unhide rows?
Entering an AVERAGE formula should not normally change row visibility. Test the same formula in a blank workbook and check the affected file for automation or other features that change rows.
How can I find my exact Excel build?
In Excel, select File > Account > About Excel and record the full version and build number displayed.
How do I tell whether the issue is specific to one workbook?
Select File > New > Blank workbook, hide a few rows, and enter the same type of formula in a visible cell. Compare the result with the affected workbook.
Could a macro unhide rows when I enter a formula?
Yes. A worksheet or workbook event procedure can respond to an edit and change row visibility. Press Alt+F11 to inspect the affected sheet and ThisWorkbook if you are familiar with VBA.
What should I send to someone helping me troubleshoot?
Provide your Excel version and build, Windows build, detailed reproduction steps or a screen recording, and a sanitized copy of the workbook. Use a private support channel for information that should not be public.




