Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
When SUMIF returns 0, it usually means the criteria did not match any rows, so there was nothing to sum — but the formula is silently treating every comparison as false. This is different from an error: the formula runs successfully but finds no matches, or matches rows whose sum_range cells contain text numbers that do not add up.
=SUMIF(B2:B100,"Apples",C2:C100)=SUMIF(B2:B100,TRIM("Apples"),C2:C100)In this case TRIM removes any trailing space in the criteria literal; the same fix should be applied to source data if spaces are embedded in B2:B100 using a helper column or TRIM in an array context.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Got the same error in multiple cells? Upload your whole sheet and the Auditor will flag every 0 and broken formula at once — free. Pro plans (₹199/$4.99/mo) can apply the verified fixes and download the corrected file in one click.
The most common cause is new data pasted from an external source where numbers arrive as text. Check the newest rows: select a cell in the sum_range and press Ctrl+1 in Excel or check Format > Number in Sheets to see the format.
Yes. Use wildcards in the criteria: =SUMIF(B:B,"*apple*",C:C) matches any cell containing the word apple. The * wildcard matches any number of characters.
Dates stored as text in the criteria_range will not match a real date criteria value. Ensure the criteria_range stores real dates (formatted as dates, not text) and pass the criteria as a DATE() function or cell reference, not a text string.
Add up the cells in a range that meet a single condition.
How-toUnderstand when to use SUMIF (one condition) versus SUMIFS (multiple conditions) for conditional summing in Excel and Google Sheets.
Error fixSUMIF not working in Excel and Google Sheets — diagnose formula errors, criteria syntax problems, range mismatches, and wildcard issues.
ReferenceSum values that meet multiple conditions at once.
How-toUse SUMIF with a date comparison criterion to sum values only for dates on or after (or before) a specific date in your data range.
Error fixSUMIFS returns 0 in Excel and Google Sheets — fix criteria order errors, range size mismatches, data-type problems, and AND logic misunderstandings.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: