In Excel, 109 is the function number you pass to the SUBTOTAL function to sum a range while ignoring rows that have been manually hidden. The formula =SUBTOTAL(109, A2:A100) adds up the values in A2:A100 but skips any rows you hid with the Hide command, unlike a plain SUM, which includes hidden values. That is the entire meaning of "subtotal 109" — it is not a word or a setting, just a specific code inside one Excel function.
What the SUBTOTAL Function Is
SUBTOTAL is a built-in Excel worksheet function with the syntax SUBTOTAL(function_num, ref1, [ref2], ...). Instead of doing just one job, it can perform several different calculations depending on the number you give it as the first argument: average, count, max, min, product, standard deviation, sum, and variance. Because one function covers so many calculations, Microsoft assigned each calculation a number: 1 through 11 for the standard versions, and 101 through 111 for variants that also ignore manually hidden rows.
How Function Numbers Work
The numbering system is consistent, which makes it easy to remember:
- 9 or 109 = SUM (the "9" family always means sum)
- 1 or 101 = AVERAGE
- 2 or 102 = COUNT
- 4 or 104 = MAX
- 5 or 105 = MIN
- 100 is added to a code to make it ignore manually hidden rows
So 109 is simply "9 (sum) plus 100 (ignore hidden rows)." Every SUBTOTAL function number, whether in the 1–11 range or the 101–111 range, always ignores other SUBTOTAL results within the range, which prevents double-counting when subtotals are nested inside grand totals.
SUBTOTAL(9) vs SUBTOTAL(109): The Key Difference
This is the part that confuses most people, because the two codes behave almost identically in most situations:
- SUBTOTAL(9, range) sums the range but includes values in rows you hid manually (via right-click > Hide). It still excludes rows filtered out by an AutoFilter.
- SUBTOTAL(109, range) sums the range and excludes both filtered-out rows and manually hidden rows.
In other words, both codes ignore rows hidden by a filter; only 109 also ignores rows hidden by hand. If you never hide rows manually, the two produce the same result and you can use either.
How to Use 109 in a Formula
The syntax is straightforward:
- Click the cell where you want the total.
- Type =SUBTOTAL(109, followed by the range, for example =SUBTOTAL(109, B2:B50).
- Press Enter.
You can also apply it to multiple ranges: =SUBTOTAL(109, B2:B50, D2:D50). If you prefer the ribbon, Excel's Data tab has a Subtotal button in the Outline group (labels can vary slightly between Excel versions), but note that the ribbon Subtotal tool is a different feature — it inserts grouped subtotal rows automatically and typically writes SUBTOTAL(9,...) formulas, not 109. To get 109 specifically, you almost always type the formula yourself.
When 109 Is the Right Choice
Use function number 109 when you want a visible-rows-only total. Typical situations include:
- A budget sheet where you hide rows for categories you are not currently analyzing and want the total to reflect only what is on screen
- Reports where you temporarily hide detail rows before printing or presenting
- Any worksheet where users hide rows by hand (not just with filters) and expect the total to change accordingly
Stick with 9 (or a plain SUM) when manually hidden rows should still count toward the total — for example, when hidden rows contain data that is merely out of sight but still relevant.
Common Problems and Misconceptions
It ignores only hidden rows, not hidden columns. SUBTOTAL(109) skips values in hidden rows but still includes values in hidden columns. There is no built-in SUBTOTAL code that ignores hidden columns; that requires a workaround with helper cells or a more complex formula.
It does not ignore grouped (outline) rows in all versions the same way. Rows collapsed with grouping/outlining are treated as hidden, so 109 typically excludes them — but behavior around outlines has not been perfectly consistent across very old Excel versions, so test on your own file if you rely on this.
It does not work across multiple worksheets in one function. SUBTOTAL operates on a single sheet; for workbook-wide totals you need one SUBTOTAL per sheet or a different approach.
"109" alone is not a feature. Searching Excel's menus for "subtotal 109" finds nothing — the number only has meaning as the first argument of SUBTOTAL. This is the single most common misconception behind the search query.
How 109 Compares to Alternatives
- SUM: simplest option, but includes hidden and filtered values alike — wrong choice when you want a visible-only total.
- AGGREGATE: a newer, more flexible function that can also sum while ignoring hidden rows, error values, and nested subtotals. AGGREGATE(9, 5, range) behaves like SUBTOTAL(109, range). Use it when you also need to skip errors like #DIV/0!.
- SUMIFS / SUMPRODUCT: can total based on conditions, but they do not natively detect hidden rows.
Practical Example
Suppose A2:A11 contains ten expense values totaling 5,000. You hide rows 5 and 6, which together hold 1,200. Now:
- =SUM(A2:A11) returns 5,000 — hidden or not, everything counts.
- =SUBTOTAL(9, A2:A11) also returns 5,000 — manual hiding does not affect code 9.
- =SUBTOTAL(109, A2:A11) returns 3,800 — the hidden rows are excluded.
Unhide the rows and the 109 formula immediately returns 5,000 again. The formula recalculates automatically; you never need to edit it when visibility changes.
Frequently Asked Questions
What does 109 mean in Excel?
109 is the function number for SUM with hidden-row exclusion inside the SUBTOTAL function. The formula =SUBTOTAL(109, range) totals only the visible cells in the range.
What is the difference between SUBTOTAL 9 and 109?
Both sum the range and both ignore rows hidden by filters. The difference is manually hidden rows: 9 includes them in the total, 109 excludes them.
Does SUBTOTAL(109) ignore filtered rows?
Yes. All SUBTOTAL function numbers ignore rows excluded by an AutoFilter. Code 109 additionally ignores rows hidden by hand.
Can SUBTOTAL(109) ignore hidden columns?
No. It only reacts to hidden rows. Values in hidden columns are still included in the sum, and there is no SUBTOTAL code that changes this.
Why does my SUBTOTAL(109) not update when I hide rows?
Check that the rows were truly hidden (right-click > Hide) rather than filtered, and that calculation is set to automatic. If you hid the rows in a range that only partly overlaps the formula's range, only the overlapping hidden rows are excluded.
Is there a newer function that does the same thing?
Yes. AGGREGATE can replicate and extend this behavior — AGGREGATE(9, 5, range) matches SUBTOTAL(109, range) and can additionally skip error values.