Hands-On Excel

Hands-On Excel Challenges SUMIF

Excel SUMIF practice

=SUMIF(B2:B11, "North", C2:C11) looks for North in B2:B11 and adds the matching sales from C2:C11. Where to look, what to look for, what to add.

CoreAbout 3 minutesFree, no sign-upBy Updated

Try it yourself

13 · SUMIF · Core

Add up the ones that match

In F2, add up the sales of every rep in the North region. In F3, add up every sale over $500.

SUMIF(where to look, what to look for, what to add). When the cells you check are the ones you add, leave the third part out: SUMIF(C2:C11, ">500").

sales.xlsx
Ready

Write in the green cells, then press Check. Click a cell while typing to insert it, drag to select a range, F4 adds $, Esc cancels.

The guide · SUMIF

Syntax

=SUMIF(range, criteria, [sum_range])

A worked example

The sheet lists ten reps with their region in column B and their sales in column C. For the North total, SUMIF goes down B2:B11, and on every row that says North it takes the number from the same row of C2:C11: 420 + 380 + 530 + 670 = 2,000.

For "sales over $500", the cells you check are the ones you add, so two parts are enough: =SUMIF(C2:C11, ">500").

Conditions you can use

CriteriaAdds the rows where the checked cell…
"North"says North (not case-sensitive)
"<>North"says anything except North
">500"is more than 500
"N*"starts with N
F1equals whatever is in F1
">="&F1is at least the number in F1 (see criteria in a cell)

Common mistakes

FAQ

How do I use SUMIF in Excel?
Give it the range to check, the condition, and the range to add: =SUMIF(B2:B11,"North",C2:C11) adds the sales in C for every row where B says North.
Why does my SUMIF return 0?
Usually the first and last ranges are swapped, the condition is spelled differently from the data, or the numbers to add are stored as text. Check that the first range holds what you search for and the last one holds numbers.
How do I sum values greater than a number?
Put the comparison in quotes and leave out the third part: =SUMIF(C2:C11,">500") adds every value in C2:C11 that is more than 500.
What is the difference between SUMIF and SUMIFS?
SUMIF checks one condition and takes the range to add last. SUMIFS takes the range to add first and can check several conditions.

All challenges

  1. 01 Add it upSUM Starter · 3 min
  2. 02 Find the averageAVERAGE Starter · 3 min
  3. 03 Write once, fill downRelative references Starter · 3 min
  4. 04 Lock it with $Absolute references Core · 3 min
  5. 05 Lock just the row or the columnMixed references Advanced · 3 min
  6. 06 Percent of a totalPercentages Starter · 3 min
  7. 07 Up or down by how much?Percent change Core · 3 min
  8. 08 Select to the end in one moveCtrl + Shift + arrow Core · 3 min
  9. 09 Pass or fail?IF Core · 3 min
  10. 10 Both or either?AND, OR Core · 3 min
  11. 11 Grade bands with nested IFNested IF Core · 3 min
  12. 12 Count the ones that matchCOUNTIF Core · 3 min
  13. 13 Add up the ones that matchSUMIF Core · 3 min
  14. 14 Use a cell as the conditionCriteria in a cell Core · 3 min
  15. 15 Count with two conditionsCOUNTIFS Core · 3 min
  16. 16 Add up with two conditionsSUMIFS Core · 3 min
  17. 17 Look it upVLOOKUP Core · 3 min
  18. 18 Find the right bracketVLOOKUP approximate match Core · 3 min
  19. 19 XLOOKUP, the modern wayXLOOKUP Core · 3 min
  20. 20 Where is it in the list?MATCH Core · 3 min
  21. 21 INDEX and MATCH togetherINDEX + MATCH Advanced · 3 min
  22. 22 Catch the error, not the bugIFERROR Core · 3 min
  23. 23 Split first and last namesLEFT, MID + FIND Core · 3 min
  24. 24 Mistake hunt: #N/A everywhereFixing #N/A Core · 3 min
  25. 25 Mistake hunt: hard-coded numbersReferences instead of typed numbers Core · 3 min
  26. 26 Mistake hunt: numbers stored as textNumbers stored as text Core · 3 min

Pro · coming soon

From first formula to job-ready.

100+ challenges on lookups, pivot tables, dates and text cleanup, an interview track modeled on the Excel tests employers use, and your progress saved across devices.

$29 one-time · early-bird price

You won't be charged today.

You're early!

Pro isn't open yet. We're building it right now. Leave your email and we'll hold the $29 early-bird price for you and tell you the day it launches.

We'll email you a link to confirm, then one email when Pro launches. Privacy