Key points
- Define whether you need an all-record total or visible subtotal.
- Options 9 and 109 treat manually hidden rows differently.
- Check a fictional sample, then record ranges and filters.
What should you check when a total stays unchanged after filtering?
Decide whether you need the total for all records or a subtotal of the visible records. Both can be useful, but they need different labels. For visible-row totals, check whether SUBTOTAL is appropriate rather than assuming a filter alone changes the calculation. Microsoft: summing visible values.
This guide concerns vertical data ranges. Check the range and filter criteria in a copy and retain the original report. Do not delete records or overwrite a formula merely because the result looks unexpected.
How do SUBTOTAL options 9 and 109 differ?
Both sum values and exclude filtered-out rows. Option 9 includes manually hidden rows; 109 excludes them. Microsoft: SUBTOTAL definition. The illustrative formula =SUBTOTAL(109,C2:C20) must be adjusted to the actual numeric column and range.
Ask why rows were hidden before choosing. If colleagues merely collapsed items that still belong in the reported total, 109 may not represent the intended business measure. Select the formula from a stated coverage rule, not whichever result looks more plausible.

How can a small test demonstrate the difference?
Use fictional values 10, 20 and 30, not customer data. With all visible, the expected subtotal is 60. Filter out the row containing 20: both 9 and 109 should return 40. Clear the filter and manually hide that row: 9 should return 60 and 109 should return 40.
Run this known-answer check in your actual Excel environment before applying it to operational data. This article does not claim to have executed a test in your file or version. If results differ, preserve the formula, row states and screenshots for the maintainer.
Does a correct subtotal prove the report is correct?
No. Check the date, branch, status and first and last data rows, including whether newly entered records fall inside the formula range. Then review units, duplicates and unconfirmed items. SUBTOTAL does not validate those business conditions.
Consider separate labels for “All-record total” and “Current filtered subtotal”, alongside the filter criteria and data cut-off. This is an editorial recommendation to explain coverage, not an instruction to add the two figures together.
When should this formula not be copied without further checks?
Do not apply hidden-row behaviour to hidden columns. Microsoft describes SUBTOTAL as intended for vertical ranges; hiding a column in a horizontal range does not change the subtotal in the same way. Nested SUBTOTAL calculations are ignored to avoid double counting. Microsoft: limitations and nested subtotals.
If the sheet mixes detail and summary rows, identify the detail records before placing a formula. Do not assume every type of summary calculation is automatically excluded, particularly manually entered aggregate values.
How can a subtotal report be reproduced?
Save the output version and record the source version, formula range, filter criteria and rule for manually hidden rows. A reviewer should be able to repeat the same conditions to distinguish data changes from filter or formula changes.
Distinguish the SUBTOTAL function from the desktop Data-tab Subtotal command. Microsoft notes that the command can be unavailable in an Excel table. Microsoft: inserting subtotals. Do not change the original table structure merely to enable it without checking whether a formula or grouped report is actually needed.
Frequently asked questions
Do both 9 and 109 exclude filtered-out rows?
Yes. Their difference concerns manually hidden rows. Microsoft guidance
Must an all-record total use 109?
No. Define coverage first; a visible-row subtotal should not be labelled as the total of all records.
Does hiding a column make 109 exclude it?
Not in the same way as a hidden row. SUBTOTAL is designed for vertical data ranges. Official limitation
Can the subtotal be added to the full total?
Usually not: the visible records may already be included in the full total. Establish coverage to avoid double counting.
Are 10, 20 and 30 measured test results?
No. They are fictional test inputs and expected answers for you to verify in a copy using your own environment.
