Calculation Issues

Fix Hidden Rows Reappearing When Entering a Formula in Excel

Steven ParkerSteven Parker Nov 20, 2026 869 views

Question details

Determine why hidden rows become visible when a formula is entered in Excel.

Fix Hidden Rows Reappearing When Entering a Formula 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.
Before you start

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.

Solution 1Recommended

Test the Formula in a New Excel Workbook

Use a new workbook to determine whether the behavior is specific to the affected file.

1
Create a test workbook

In Excel, select File > New > Blank workbook and enter a few numbers in a column.

2
Hide some rows

Select several row headings, right-click them, and choose Hide.

3
Enter the formula

In a visible cell, enter an AVERAGE formula covering the test data and press Enter. Check whether the hidden rows reappear.

4
Compare the results

Repeat the same actions in the affected workbook. If the issue occurs only there, inspect that workbook's macros, events, filters, and grouped rows.

Test the Formula in a New Excel Workbook
A test helps narrow the cause: If you cannot reproduce the behavior in a new workbook, the result does not by itself identify which workbook setting or automation is responsible.
Free Microsoft Office alternative

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.

Work with hidden rows and formulas in WPS SpreadsheetsCompatible with Microsoft Excel formats, including XLSX and XLSFamiliar spreadsheet interface for a smoother transitionFree, lightweight Office alternative
microsoft office alternative - wps office

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.