Formula Guide

How to Use SUMIF in Excel:
the complete guide

Add up only the numbers that match your condition. SUMIF is one of the most useful formulas you'll ever learn โ€” here's everything you need to know.

EP
ExcelPro ยท June 3, 2026 ยท 6 min read
๐Ÿ”ข
In this guide
  1. What is SUMIF?
  2. The syntax explained
  3. 8 real examples
  4. SUMIFS โ€” multiple conditions
  5. Common mistakes
  6. Practice exercises

What is SUMIF?

Imagine you have a list of all your expenses for the month โ€” groceries, rent, eating out, transport. You want to know how much you spent on food only. You could filter the list and use SUM, or you could write one formula: SUMIF.

SUMIF adds up numbers that meet a condition you set. It's like saying: "only add the numbers where the category says Groceries."

It's one of the most used formulas in Excel โ€” and once you learn it, you'll use it constantly.

The syntax explained

=SUMIF(range, criteria, [sum_range])

Three parts โ€” here's what each one means:

๐Ÿ’ก Quick tip

If your criteria is text, wrap it in double quotes. If it's a number or a cell reference, no quotes needed.

8 real examples

1. Sum sales for one product

You have a sales log and want to total only the sales for "Coffee".

=SUMIF(A2:A10, "Coffee", B2:B10)
Result
A โ€” ProductB โ€” Sales ($)
Coffee120
Tea85
Coffee200
Juice60
Coffee95
SUMIF result415

2. Sum values above a threshold

Total all expenses over $100 โ€” useful for spotting big spends.

=SUMIF(B2:B10, ">100")

Note: when the criteria is a comparison like >100, you still put it in quotes but don't add a third argument โ€” SUMIF uses the same range for checking and summing.

3. Sum values below a number

=SUMIF(B2:B10, "<50")

4. Reference a cell instead of typing the criteria

This is much more flexible โ€” change the cell and the SUMIF updates automatically.

=SUMIF(A2:A10, E1, B2:B10) โ† E1 contains the product name you want to look up

5. Wildcard โ€” sum anything containing a word

Use * as a wildcard to match any text that contains a word.

=SUMIF(A2:A10, "*coffee*", B2:B10) โ† matches "Coffee", "Iced Coffee", "Coffee Latte"

6. Sum values that are NOT equal to something

=SUMIF(A2:A10, "<>Coffee", B2:B10) โ† <> means "not equal to"

7. Sum by month

If column A has dates and you want to sum a specific month:

=SUMIF(A2:A100, ">=01/06/2026", B2:B100) - SUMIF(A2:A100, ">=01/07/2026", B2:B100)

8. Sum the top earners

Sum all values greater than the average:

=SUMIF(B2:B10, ">"&AVERAGE(B2:B10))

SUMIFS โ€” when you need multiple conditions

SUMIF handles one condition. When you need two or more, use SUMIFS instead.

=SUMIFS(sum_range, range1, criteria1, range2, criteria2, ...)

Example: total Coffee sales in the North region only:

=SUMIFS(C2:C10, A2:A10, "Coffee", B2:B10, "North")
SUMIF vs SUMIFS

With SUMIFS, the sum_range comes first โ€” opposite to SUMIF where it comes last. This trips up almost everyone the first time.

Common mistakes

โš ๏ธ Watch out for these

Now practise it yourself

Reading about SUMIF is one thing. Actually typing it in a live spreadsheet is how you'll remember it. ExcelPro has 8 SUMIF exercises built from real scenarios โ€” you type the formula, get instant feedback, and move on when you're right.

Practise SUMIF live

Type real formulas in a live spreadsheet. Instant feedback. Free to start.

Try SUMIF exercises โ†’
Keep reading