Skip to content
Blog/Excel
Excel

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.

/5 min read

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:

fx
=SUMIF(range,criteria,[sum_range])

For example, to sum campaign spend for rows where column A equals Paid Search:

fx
=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:

fx
=SUMIF(A2:A100,"Software",B2:B500)

Excel may still return a result, but it is easy to misalign the rows. Use matching ranges:

fx
=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:

fx
=SUMIF(A2:A100,"Travel",B2:B100)

or:

fx
=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:

fx
=TRIM(A2)

Check number and date criteria

Comparison criteria need quotes:

fx
=SUMIF(B2:B100,">500",C2:C100)

If the comparison value comes from a cell, join the operator to the reference:

fx
=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:

fx
=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:

fx
=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

CauseWhat happensFix
Range sizes do not matchRows are misalignedUse matching criteria and sum ranges
Text does not match exactlySUMIF returns zeroClean or standardize categories
Comparison criteria typed wrongToo many or too few rows matchUse quoted operators
Dates stored as textDate criteria miss rowsUse real dates or DATE
Multiple conditions neededFormula over-includes rowsUse SUMIFS

TIP

If SUMIF returns zero, filter the source table by the same criteria. If no rows appear, the issue is probably the source data or criteria text, not the formula.

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.

Finance