ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Errors & fixes
  3. SUMIF Not Working? Common Causes and Fixes

SUMIF Not Working? Common Causes and Fixes

By ExcelReady Team·Updated November 1, 2026·6 min read

The short answer

SUMIF usually returns 0 or a wrong total for one of five reasons: the numbers to add are stored as text, the arguments are in the wrong order, the sum range is missing, the criteria doesn't match because of spaces, or the two ranges are different sizes. The correct shape is =SUMIF(range, criteria, sum_range), for example =SUMIF(A2:A7,"East",C2:C7).

Key takeaways

  • SUMIF's order is range, criteria, sum_range; SUMIFS puts sum_range first.
  • Leave out sum_range and SUMIF adds the criteria column itself, often giving 0.
  • SUMIF skips numbers stored as text in the sum range, so the total comes out too low.
  • SUMIF doesn't warn you when the ranges are different sizes; it quietly shifts the sum range.
  • Write criteria from a cell as ">="&E1, never ">=E1".
On this page+
  1. How SUMIF should work
  2. Cause 1: the numbers are stored as text
  3. Cause 2: the arguments are in the wrong order
  4. Cause 3: the sum range is missing
  5. Cause 4: spaces and other mismatches in the criteria
  6. Cause 5: the ranges are different sizes
  7. Cause 6: date criteria that don't match
  8. Cause 7: ranges move when you copy the formula
  9. Practise it

When SUMIF is not working, it rarely shows an error. It returns 0, or a total that's quietly wrong. The usual causes are numbers stored as text, arguments in the wrong order, a missing sum range, spaces in the data, and ranges of different sizes. This guide shows how to spot and fix each one.

How SUMIF should work#

SUMIF adds the numbers in one column when a matching cell in another column meets a condition. The syntax has three parts:

Excel formula
=SUMIF(range, criteria, sum_range)
PartWhat it meansExample
rangeThe cells to checkA2:A7
criteriaWhat they must match"East", ">=300", E2
sum_rangeThe cells to addC2:C7

All the examples use this sales table in A1:C7:

ABC
1RegionRepSales
2EastAna500
3WestBen300
4EastChloe250
5SouthDev400
6EastEma150
7WestFarid200

=SUMIF(A2:A7,"East",C2:C7) should return 900 (500 + 250 + 150). If yours doesn't, work through the causes below. The full SUMIF guide covers the basics.

Cause 1: the numbers are stored as text#

SUMIF only adds real numbers. If some cells in the sum range hold numbers stored as text, SUMIF skips them, so the total is too low or 0. This is common with data from CSV files and other systems.

Text numbers usually sit on the left of the cell and show a small green triangle. Select them, click the warning icon and choose Convert to Number, or use Data > Text to Columns > Finish on the whole column.

If you can't change the data, convert inside the formula. This version uses VALUE to turn each sales cell into a number:

Excel formula
=SUMPRODUCT((A2:A7="East")*VALUE(C2:C7))

It returns 900 even when the sales are stored as text. The VALUE function guide explains what VALUE can convert.

Cause 2: the arguments are in the wrong order#

SUMIF and SUMIFS put the sum range in different places, and mixing them up is very common:

Excel formula
=SUMIF(A2:A7,"East",C2:C7)
=SUMIFS(C2:C7,A2:A7,"East")

Both return 900. SUMIF puts the cells to add last. SUMIFS puts them first, because it can take many conditions after that. If you write =SUMIF(C2:C7,"East",A2:A7), SUMIF looks for "East" in the sales numbers, finds nothing, and returns 0.

Many people use SUMIFS for everything so they only learn one order. See SUMIF vs SUMIFS for when each makes sense.

Cause 3: the sum range is missing#

The sum range is optional. If you leave it out, SUMIF adds the cells in the range itself. That's useful for something like =SUMIF(C2:C7,">=300"), which adds sales of 300 or more: 1,200 (500 + 300 + 400).

But =SUMIF(A2:A7,"East") adds up the Region column, which holds text, so the result is 0. Add the sum range as the third argument and it works.

Cause 4: spaces and other mismatches in the criteria#

SUMIF matches the criteria to whole cells, ignoring only capital letters. "East " with a trailing space doesn't match "East". Check a suspicious cell with =LEN(A2): "East" should give 4.

Fix it by cleaning the column with TRIM in a helper column, or match around the spaces with a wildcard such as "*East*". The same rules apply to COUNTIF, so the guide to COUNTIF not working is worth a read if both are giving you trouble.

Operators also need care:

  • Operators go inside quotes: ">=300", not >=300.
  • Not equal to is "<>West". The guide to SUMIF not equal to has more examples.
  • For a value in a cell, keep the cell outside the quotes: ">="&E1. Writing ">=E1" compares with the letters E1 and returns 0.

Cause 5: the ranges are different sizes#

SUMIF doesn't give an error when range and sum_range are different sizes. Instead, it takes the top-left cell of sum_range and stretches it to match the size of range. That can add the wrong cells.

For example, =SUMIF(A2:A7,"West",C3:C8) starts the sum range one row too low. Each "West" row now adds the sales from the row below it: 250 from row 4 plus an empty C8. The result is 250 instead of the correct 500, and nothing warns you.

Always make both ranges start and end on the same rows. SUMIFS is stricter: it returns #VALUE! when the ranges don't match, which helps you catch the mistake.

Cause 6: date criteria that don't match#

To add values by date, put the operator in quotes and build the date with the DATE function. If column D held order dates, this adds the sales from 1 March 2024 onwards:

Excel formula
=SUMIF(D2:D7,">="&DATE(2024,3,1),C2:C7)

Typing the date inside the text, as in ">=01/03/2024", can go wrong because Excel reads it using your computer's date settings, so 01/03 may mean 3 January. DATE always takes year, month and day in that order. If the result is still 0, check that the dates are real dates: =ISNUMBER(D2) should return TRUE. Text dates sit on the left of the cell and need converting first.

Cause 7: ranges move when you copy the formula#

If you fill a SUMIF down a summary table, unlocked ranges shift with each row. In the next row, A2:A7 becomes A3:A8 and the first record drops out.

Lock the data ranges with $ signs and leave the criteria cell unlocked:

Excel formula
=SUMIF($A$2:$A$7,E2,$C$2:$C$7)

With "West" in E2, this returns 500 (300 + 200). Fill it down next to a list of regions and every row uses the full table. Press F4 after selecting a reference to add the $ signs (Mac: ⌘T). The SUMIF function guide shows more patterns.

If a lookup on the same data is also failing, the guide to INDEX MATCH not working covers similar problems with text, spaces and ranges.

Practise it#

Practise SUMIF in a live spreadsheet: you type each formula and it's checked instantly, including totals by region and by amount. Then practise turning text into numbers with VALUE, so imported data never breaks your totals again. Start with the exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Total the sales for the region in E2. Click F2 and type a SUMIF with the arguments in the right order: the region column A2:A7, then E2, then the sales column C2:C7. Press Enter.

fx
ABCDEFG
1
Region
Rep
Sales
Region
Total
2
East
Ana
500
West
3
West
Ben
300
4
East
Chloe
250
5
South
Dev
400
6
East
Ema
150
7
West
Farid
200
8
9
10

Tip: Range to check first, then what to match, then the numbers to add.

Practise this in a lesson

LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.LessonTEXT and VALUE: numbers to text and backFormat dates and dollar amounts inside sentences with TEXT, and turn digits stored as text into real numbers with VALUE.Function guideSUMIFAdd up values that meet one condition with SUMIF. Totals by category, person or amount, the argument-order trap, and a live exercise.Function guideVALUEFix numbers stored as text with Excel's VALUE function, so SUM and lookups work again. Examples, common mistakes and a live practice exercise.

Frequently asked questions

Why is my SUMIF returning 0?

+

The criteria matches nothing, or the numbers to add are stored as text. Check for spaces in the criteria column, make sure the sum range holds real numbers, and confirm you included the sum range at all.

Why is SUMIF giving the wrong total?

+

The two ranges may be different sizes or start on different rows, so SUMIF adds the wrong cells. Make range and sum_range cover exactly the same rows, and lock them with $ before copying.

What is the correct order of arguments in SUMIF?

+

=SUMIF(range, criteria, sum_range): the cells to check, the condition, then the cells to add. SUMIFS is different: the sum range comes first.

Can SUMIF add numbers stored as text?

+

No. SUMIF skips text in the sum range. Convert the cells with Convert to Number or VALUE, or use SUMPRODUCT with VALUE as a workaround.

Sources

  • SUMIF function - Microsoft Support
  • VALUE function - Microsoft Support
  • Convert numbers stored as text to numbers - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How SUMIF should work
  2. Cause 1: the numbers are stored as text
  3. Cause 2: the arguments are in the wrong order
  4. Cause 3: the sum range is missing
  5. Cause 4: spaces and other mismatches in the criteria
  6. Cause 5: the ranges are different sizes
  7. Cause 6: date criteria that don't match
  8. Cause 7: ranges move when you copy the formula
  9. Practise it

Keep reading

Conditional math· 6 min read

SUMIF Not Equal To: Exclude a Value From a Total

To sum everything except one value, use the not-equal-to operator <> inside quotes: =SUMIF(A2:A8,"<>North",C2:C8) adds the sales of every region except North. For a value in a cell, write "<>"&E1. To exclude two or more values, use SUMIFS with one "<>" condition for each value.

Conditional math· 7 min read

How to Use SUMIF in Excel

SUMIF adds up the numbers in the rows that meet one condition. Write =SUMIF(range, criteria, sum_range): the cells to check, what they must match, then the numbers to add. For example, =SUMIF(C2:C9,"Travel",D2:D9) totals all Travel claims. Leave out sum_range when the condition is about the numbers themselves.

Comparisons· 8 min read

SUMIF vs SUMIFS: What's the Difference?

SUMIF adds up numbers that meet one condition. SUMIFS adds up numbers that meet one or more conditions, and every condition must be true. The other big difference is argument order: SUMIF puts the range to add last, while SUMIFS puts it first. Both work in every current version of Excel.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free