If your Excel SUBTOTAL formula returns a blank cell, a zero, or nothing at all, the cause is almost always one of three things: the row is hidden by a filter so no visible rows remain, the data is stored as text rather than numbers, or the formula was entered into a cell that is itself inside the range being summed. A quick check of each fixes the vast majority of cases. Start by clearing filters with Data > Clear, then test one value with the ISNUMBER function, and confirm the formula does not reference its own cell. If those three are clean, move on to the calculation mode and cell formatting checks below. Menu labels can differ slightly by Excel version and platform, so the wording may not match exactly on your screen.
What You'll Need
- A desktop copy of Excel on Windows or Mac. The full subtotal workflow with outline buttons is not available in the mobile apps, where you should expect to type the formula manually.
- A sheet with tabular data: one header row and consistent columns.
- Access to the workbook, ideally a copy you can experiment on before changing the original.
Step-by-Step
- Confirm the cells really are empty. Select the cell where the subtotal should appear. If the formula bar shows a formula but the cell looks blank, the result is likely white text on a white background or a custom number format hiding the value. Check the font color on the Home tab and set the number format to General from the Number Format dropdown.
- Check that no hidden rows are doing the hiding. Function number 9 in SUBTOTAL ignores rows hidden by filtering; function number 109 also ignores rows hidden manually. Change
=SUBTOTAL(9,C2:C20)to=SUBTOTAL(109,C2:C20)and press Enter. If the total suddenly appears, manually hidden rows were being excluded. - Clear any filters. Go to Data > Clear. If a filter has left no visible rows in the range, SUBTOTAL returns 0 because it has nothing to add. After clearing, the total should recalculate.
- Test whether the numbers are stored as text. In an empty cell, enter
=ISNUMBER(C2)for the first data cell. A result of FALSE means that cell is text. Text that looks like a number is ignored by every maths function, including SUBTOTAL. Convert it with Data > Text to Columns, clicking Finish on the first screen, or by multiplying the column by 1 in a helper column. - Look for a circular reference. If the subtotal formula sits inside the range it references, Excel cannot calculate it and usually shows 0 or a warning. Move the subtotal to a row outside the data range, for example below the last data row.
- Check the calculation mode. Go to Formulas > Calculation Options and make sure Automatic is selected, not Manual. Then press F9 on Windows or Command + = on Mac to force a recalc and see whether the value appears.
- Re-enter the formula cleanly. Leading spaces, a stray apostrophe at the start, or the cell being formatted as Text before entry will all make Excel treat the formula as literal text. Set the cell format to General, then retype the formula and press Enter.
- Rebuild it with the Subtotal command. If you used Data > Subtotal, select the data, open that dialog again, and check the At each change in, Use function, and Add subtotal to fields. A wrong column in the last field is a very common cause of a subtotal that looks blank or zero. Clear the old subtotals with the Remove All button, then apply them again.
- Widen the column or clear merged cells. If the cell shows
#####, the column is too narrow. If numbers refuse to align or the subtotal row behaves oddly, select the range and use Home > Merge & Center to unmerge. Merged cells inside a table break the Subtotal command and can make results disappear.
Common Mistakes
- Using
SUMinstead ofSUBTOTALand then wondering why hidden rows are still counted. SUM does not ignore anything. - Placing the subtotal formula in a cell that falls inside the summed range, creating a circular reference.
- Formatting the cell as Text before typing the formula, so Excel stores it as a string.
- Pre-typing a leading apostrophe, often done by copying formulas from a web page or chat message.
- Leaving a filter active that hides every row, which yields 0 even though the formula is perfect.
- Assuming function number 9 hides manually hidden rows. It does not; use 109.
- Trusting the mobile app to behave like the desktop. The Subtotal dialog is a desktop feature.
Tips
- Use
SUBTOTAL(109, range)when you want the total to ignore both filtered and manually hidden rows. - Name your data range with Formulas > Define Name so subtotal formulas stay correct when rows are inserted.
- Convert the range to a table with Insert > Table. Tables add a total row you can turn on from the Table Design tab, and structured references survive sorting and filtering.
- Keep raw data on one sheet and totals on another. This alone prevents most circular references.
- Before sending a workbook, press Control + ` (the grave accent) on Windows or Control + ` on Mac to toggle formula view and confirm every subtotal cell actually contains a formula.
Troubleshooting
Formula shows but the value is blank: check font color, number format, and whether the result is a zero displayed as blank by a custom format such as 0;-0;;@.
Subtotal is zero when data clearly exists: your numbers are text, or a filter is hiding all rows. Run ISNUMBER on a few sample cells.
Only some rows are counted: a blank row in the middle of the range can break ranges built by the Subtotal command. Select the whole block including blanks and reapply.
The value refuses to update after edits: switch calculation back to Automatic, then recalculate with F9.
Still stuck: copy the sheet to a new workbook, paste only values, and rebuild the subtotal from scratch. This strips out corrupted formatting and stray formulas.
Frequently Asked Questions
Why does SUBTOTAL return 0 instead of a blank?
Usually all rows in the range are hidden by a filter, or every value is stored as text. Clear the filter and test one cell with ISNUMBER.
What is the difference between SUBTOTAL 9 and 109?
9 ignores rows hidden by filtering only. 109 ignores rows hidden by filtering and rows you hid manually.
Can I use SUBTOTAL on a phone or tablet?
You can type the formula in the mobile apps, but the Data > Subtotal dialog and outline buttons are desktop features.
Why does the subtotal cell show #####?
The column is too narrow for the result. Widen the column or reduce the font size.
Does SUBTOTAL work with text values?
Function numbers 3 and 103 count non-empty cells, but the SUM versions ignore text entirely. That is why text-formatted numbers produce 0.