SUMIFS returning 0? Six reasons your conditional total is wrong, and how to fix each
You can see the sales on the screen. Gauteng is right there, three times. But your formula says R0.
A SUMIFS returning 0 is rarely a broken function. It almost always means Excel looked for something and didn't find an exact match. This post walks through the six causes that come up most, how to spot each one, and the fix. Work through them in order and you will find yours.
All the examples use this list:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Province | Product | Sales |
| 2 | 03/11/2026 | Gauteng | Kettle 1.7L | R4 200 |
| 3 | 05/11/2026 | Western Cape | Toaster | R2 800 |
| 4 | 10/11/2026 | Gauteng | Kettle 1.2L | R1 900 |
| 5 | 14/11/2026 | KwaZulu-Natal | Kettle 1.7L | R3 150 |
| 6 | 20/11/2026 | Gauteng | Toaster | R12 500 |
| 7 | 02/12/2026 | Western Cape | Kettle 1.7L | R11 400 |
1. The sum range is in the wrong place
SUMIF and SUMIFS put their arguments in a different order. SUMIF ends with the column to add up. SUMIFS starts with it.
=SUMIF(B2:B7,"Gauteng",D2:D7) correctly gives R18 600.
If you switch to SUMIFS and keep the old habit, you might write:
=SUMIFS(B2:B7,B2:B7,"Gauteng")
Excel is now adding up the province names. Text doesn't add up to anything, so the answer is 0.
Fix: in SUMIFS, the numbers come first.
=SUMIFS(D2:D7,B2:B7,"Gauteng")
2. You needed a wildcard
You want the total for all kettles and write:
=SUMIFS(D2:D7,C2:C7,"Kettle")
The result is 0. No cell says exactly "Kettle". They say "Kettle 1.7L" and "Kettle 1.2L", and SUMIFS looks for an exact match unless you tell it otherwise.
Fix: add an asterisk. It stands for any sequence of characters.
=SUMIFS(D2:D7,C2:C7,"Kettle*")
That gives R20 650. Use "*kettle*" if the word could appear anywhere in the cell, for example "Steel kettle". A question mark stands for exactly one character, so "Kettle 1.?L" matches both sizes too. Matching ignores upper and lower case, so "kettle*" works as well.
This is the most common reason for a SUMIF wildcard search, and it's also the mistake we built into the AI lesson in this module.
3. Hidden spaces in the data or the condition
Sometimes the text looks identical but isn't. Data copied from another system often carries a space at the end, so the cell actually says "Gauteng " with a trailing space. Your condition "Gauteng" won't match it.
How to spot it: click the cell, then click at the end of the text in the formula bar. If the cursor stops one space after the last letter, you have found it. You can also test with =LEN(B2). "Gauteng" has 7 characters, so a result of 8 means there's an extra one.
Fix: clean the column with TRIM in a helper column, for example =TRIM(B2), then copy and paste the results back as values. Microsoft also suggests CLEAN for non-printing characters that sneak in from other systems.
4. The numbers are stored as text
If the condition is fine but the total is still 0 or too low, look at the numbers. Values imported from a bank statement, a payroll export or a CSV sometimes arrive as text that only looks like a number.
How to spot it: text-numbers often sit on the left of the cell instead of the right, and Excel may show a small green triangle in the corner. Select the column and look at the status bar at the bottom of the window. If it shows a Count but no Sum, Excel doesn't see numbers there.
Fix: select the cells, click the warning icon and choose Convert to Number. For a whole column, Microsoft's other options include Text to Columns (click Finish without changing anything) or a helper column with =VALUE(D2). Watch for a currency symbol typed into the cell, such as "R4 200". Remove the "R" and the space and let number formatting show the rand symbol instead.
5. The operator or date is written wrongly
Conditions with operators have strict rules. Three versions go wrong often:
"=>10000"instead of">=10000". The order matters. Excel doesn't read "=>" as "greater than or equal to", so you get nothing back. Always put the greater-than or less-than sign first.">G1"when the threshold is in cell G1. Inside quotes, G1 is just text. Join the operator to the cell:">"&G1.- Dates typed as text. To total November sales, avoid typing a date inside the quotes, because the way Excel reads 03/11/2026 depends on your regional settings. Build the dates with the DATE function instead:
=SUMIFS(D2:D7,A2:A7,">="&DATE(2026,11,1),A2:A7,"<"&DATE(2026,12,1))
That gives R24 550 and leaves out the December row. If it still returns 0, check that the dates in column A are real dates and not text, using the same status bar test as in point 4.
6. You wanted OR, but SUMIFS uses AND
Every condition in SUMIFS must be true for a row to count. So this formula asks for rows that are Gauteng and Western Cape at the same time:
=SUMIFS(D2:D7,B2:B7,"Gauteng",B2:B7,"Western Cape")
No row can be both, so the answer is 0. The same thing happens with COUNTIFS when you put two conditions on one column.
Fix: add two separate totals together.
=SUMIFS(D2:D7,B2:B7,"Gauteng")+SUMIFS(D2:D7,B2:B7,"Western Cape")
That gives R32 800. A shorter version uses a list of values in curly brackets inside SUM:
=SUM(SUMIFS(D2:D7,B2:B7,{"Gauteng","Western Cape"}))
Not 0, but #VALUE!
One related problem shows up as an error rather than a zero. In SUMIFS, the sum range and every criteria range must be the same size. If your sum range is D2:D7 and a criteria range is B2:B10, Excel returns #VALUE!. Make the ranges match and it goes away. Microsoft notes that formulas pointing at a closed workbook can also give #VALUE!, and opening the file fixes that.
Once SUMIFS stops returning 0, check the answer
Once your formula returns a number, check that it's the right number:
- Filter the list for the same conditions (Data > Filter) and select the visible sales. The status bar shows the sum. It should match your formula.
- Add up your totals per group. They should equal the grand total.
- Run a COUNTIFS with the same conditions. If you expect four kettle sales and it says 0, you know the problem is the condition, not the numbers.
Practise the fixes
The fastest way to stop making these mistakes is to make them on purpose somewhere safe, and see the result straight away.
- Lesson 17: COUNTIF practises the
*wildcard with"Kettle*". - Lesson 18: SUMIF covers comparisons like
">10000". - Lesson 19: SUMIFS and COUNTIFS puts multiple conditions together.
- Lesson 21: Conditional totals with AI shows an AI assistant making mistake number 2, and asks you to catch it.
Every lesson is graded the moment you press Enter. It's free, with no sign-up and nothing to install.