Why SUMIF Is Not Working in Excel
SUMIF may fail when ranges do not match, criteria are typed incorrectly, or source data is dirty. Learn how to debug it.
SUMIF usually breaks in quiet ways. It may return zero, miss rows that should match, or total the wrong values without showing an error. The formula syntax is simple, so the problem is often in the ranges, criteria, or source data.
Start by checking whether the condition range, criteria, and sum range line up exactly with the rows you expect to include.
Check the SUMIF syntax
SUMIF uses this structure:
=SUMIF(range,criteria,[sum_range])For example, to sum campaign spend for rows where column A equals Paid Search:
=SUMIF(A2:A100,"Paid Search",B2:B100)The first range is where Excel checks the condition. The final range is what Excel adds. If those ranges point to different row sets, the total can be wrong.
Match the range sizes
The criteria range and sum range should have the same shape. This is risky:
=SUMIF(A2:A100,"Software",B2:B500)Excel may still return a result, but it is easy to misalign the rows. Use matching ranges:
=SUMIF(A2:A100,"Software",B2:B100)In expense trackers and marketing spend sheets, this usually happens after new rows are added to one table but not the related summary formula.
Check text criteria
Text criteria need quotes unless they come from another cell:
=SUMIF(A2:A100,"Travel",B2:B100)or:
=SUMIF(A2:A100,E2,B2:B100)If SUMIF returns zero, compare the criteria text to the source data. Hidden spaces, inconsistent capitalization, punctuation, or slightly different category names can cause misses.
Use TRIM to clean ordinary spaces:
=TRIM(A2)Check number and date criteria
Comparison criteria need quotes:
=SUMIF(B2:B100,">500",C2:C100)If the comparison value comes from a cell, join the operator to the reference:
=SUMIF(B2:B100,">"&E2,C2:C100)For dates, avoid typing ambiguous date text directly into the formula. Put the date in a cell and reference it, or use DATE:
=SUMIF(A2:A100,">="&DATE(2026,6,1),B2:B100)Upgrade to SUMIFS when there is more than one condition
SUMIF handles one condition. If the total needs category plus month, owner plus status, or region plus product, use SUMIFS:
=SUMIFS(C2:C100,A2:A100,"Software",B2:B100,"June")Remember that SUMIFS puts the sum range first, while SUMIF puts it last.
Common causes and fixes
| Cause | What happens | Fix |
|---|---|---|
| Range sizes do not match | Rows are misaligned | Use matching criteria and sum ranges |
| Text does not match exactly | SUMIF returns zero | Clean or standardize categories |
| Comparison criteria typed wrong | Too many or too few rows match | Use quoted operators |
| Dates stored as text | Date criteria miss rows | Use real dates or DATE |
| Multiple conditions needed | Formula over-includes rows | Use SUMIFS |
TIP
The Griddy way
SUMIF debugging gets slow when categories, dates, and ranges have drifted across a working sheet. The hard part is proving which rows should have matched.
"Fix the SUMIF totals in this marketing spend tracker and show me which category names or ranges were misaligned"
Griddy can inspect the formula ranges, clean source categories, and rewrite the totals so the summary matches the underlying rows.
Skip the manual work
Describe it. Griddy does it.
Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.
Use this on real templates
Fix conditional totals in operating templates
SUMIF issues usually come from category drift, range mismatch, or date criteria problems in expense logs and campaign spend trackers.
Expense Tracker
Log every expense, track receipts, and generate category summaries. Free template for personal or business use.
Open templateFinanceExpense Tracker for Marketing Teams
Track campaign spend, software, contractors, events, ad costs, and approvals in one free marketing expense spreadsheet.
Open templateFinanceSmall Business Budget
Plan revenue, direct costs, overhead, and EBITDA in one compact operating budget. Keep H1 totals, margin, and owner notes visible without building a giant finance model.
Open templateFinanceBudget Tracker
Track income, expenses, and savings in one place. Line items, budgeted vs actual totals, and monthly net savings — free to use in your browser.
Open template