FormulaCraft

Fix the 0 error

Excel & Google Sheets
Topic:SUMIF & SUMIFS

What 0 means

SUMIFS returns 0 when none of the rows satisfy all criteria simultaneously. Because SUMIFS applies AND logic — every criteria_range/criteria pair must match the same row — adding more conditions narrows the result, and a mismatch in any one condition causes the whole row to be excluded.

Common causes

Example fix

Broken
=SUMIFS(B2:B100,A2:A100,"North",A2:A100,"South")
Fixed
=SUMIFS(C2:C100,A2:A100,"North",B2:B100,"Q1")

The broken formula applied two criteria to the same column (A) with mutually exclusive values. The fixed version filters A for region 'North' AND B for quarter 'Q1', which is logically achievable on the same row.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How to fix it

  1. 1Verify each condition independently with COUNTIFS using one criteria pair at a time. Start with =COUNTIFS(B:B,"North") then add pairs to find which condition eliminates all rows.
  2. 2Check the argument order: SUMIFS is =SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, ...). The sum_range comes first, unlike SUMIF where it is last.
  3. 3Convert text-numbers in criteria ranges using VALUE() or Paste Special > Multiply. Confirm with =ISNUMBER(B2) across the range.
  4. 4For date criteria, use DATE() or a cell reference containing a real date: =SUMIFS(C:C,A:A,">="&DATE(2024,1,1),A:A,"<"&DATE(2024,2,1)).
  5. 5Ensure all range arguments cover exactly the same rows. Use the same row numbers for sum_range and every criteria_range, and lock them with $ to avoid drift when copying.

Stop hunting errors by hand.

Upload your spreadsheet and the Auditor flags every 0 and broken formula at once — or paste this one formula and get the fix explained.

Frequently asked

How do I get SUMIFS to use OR logic instead of AND?

SUMIFS always uses AND. For OR logic, add multiple SUMIFS results: =SUMIFS(C:C,A:A,"North")+SUMIFS(C:C,A:A,"South"). For complex OR scenarios in Excel 365 or Sheets, consider SUMPRODUCT or FILTER.

SUMIFS works correctly for one date range but returns 0 for another — why?

Check that both boundaries are real date values. A common mistake is using a text-formatted date in one of the criteria. Use DATE() or a cell reference to a real date for both the >= and < boundaries.

Can SUMIFS handle wildcard matching?

Yes. Use * for any characters and ? for a single character: =SUMIFS(C:C,A:A,"*apple*") sums rows where column A contains 'apple' anywhere in the text.

More on SUMIF & SUMIFS

See all →

Related formulas

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: