Fix Excel Web SUBTOTAL Not Recalculating Hidden Rows
Question details
The user needs a solution for the SUBTOTAL function failing to update automatically when hiding rows in the web version of Excel.
- Product
- Excel for the Web
- Device & OS
- not provided
- Scenario
- Hiding rows in an Excel spreadsheet containing SUBTOTAL(109) formulas to view updated dynamic totals.
- Observed behavior
- The SUBTOTAL formula does not immediately recalculate when rows are hidden in the web app, though it updates if the formula is re-entered, rows are unhidden, or if the file is opened in desktop Excel.
Verify whether this calculation issue is isolated to Excel for the Web by testing the same spreadsheet in the desktop version of Excel to confirm it is a web-engine discrepancy.
Use a SUMPRODUCT and OFFSET Formula Workaround
Apply an advanced array-style formula that forces Excel for the Web to dynamically recalculate visible rows.
Excel for the Web sometimes struggles with dynamically recalculating the standard SUBTOTAL(109) function when rows are manually hidden, due to limitations in its browser-based calculation engine. You can bypass this bug by combining SUMPRODUCT, SUBTOTAL, and OFFSET to force immediate evaluation.
Click on the cell containing your current malfunctioning SUBTOTAL formula.
Replace the existing formula with `=SUMPRODUCT(SUBTOTAL(109,OFFSET($H$9,ROW($H$9:$H$2007)-ROW($H$9),,1)))`.
Modify the `$H$9` and `$H$9:$H$2007` ranges in the formula to exactly match the starting cell and the full data array of your specific spreadsheet.
Press Enter to apply the formula, then right-click any row number in your dataset and select 'Hide Row' to verify that the sum updates immediately.
Report the Calculation Bug to Microsoft
Notify the Excel development team about this web-engine discrepancy so they can implement a permanent fix.
Switch to WPS Office for Reliable Spreadsheet Calculations
Tired of dealing with web-based formula bugs? WPS Office provides a robust, desktop-grade spreadsheet application that accurately processes SUBTOTAL and other complex functions in real-time, completely free of web-engine calculation delays.
- 1. Download WPS Office: Visit the official WPS website and download the free desktop application for your operating system.
- 2. Open your workbook: Launch WPS Spreadsheet and easily open your existing Excel (.xlsx) file.
- 3. Experience accurate calculations: Use your standard SUBTOTAL formulas without complex workarounds and watch them update instantly when hiding rows.

Frequently Asked Questions
What does the 109 in the SUBTOTAL formula mean?
The number 109 is a function_num argument that tells the SUBTOTAL function to calculate the SUM of a range while explicitly ignoring any rows that have been manually hidden.
Why does SUBTOTAL work on desktop Excel but not on the web?
Excel for the Web uses a lightweight, browser-based calculation engine. Occasionally, this web engine fails to detect UI changes like manually hiding rows as a trigger for recalculating certain dynamic formulas, resulting in delayed or static outputs.
Does this calculation issue affect filtered rows as well?
No, filtering rows usually triggers a proper recalculation event even in Excel for the Web. This specific bug primarily manifests when rows are manually hidden using the right-click 'Hide' context menu.




