- A condition is a piece of text:
"Shipped",">100","4*", or an operator joined to a cell,">="&F2. - SUMIF and AVERAGEIF take the range to add last; SUMIFS and AVERAGEIFS take it first. That one swap causes most of the errors.
- A wrong SUMIF rarely shows an error. Ranges that don't line up, slide when filled, or meet a stray space give totals that look plausible.
The 10 exercises
Each one is a short task on an Excel-style sheet in your browser, free and without sign-up. The checker looks at the result, so any formula that gets it right passes, and a wrong one gets the reason.
-
Count the ones that match
COUNTIFcounts the cells in a range that meet one condition, like a status or a minimum amount. -
Add up the ones that match
SUMIFadds the numbers in one column for the rows where another column meets a condition. -
Use a cell as the condition
A
SUMIFcondition can come from a cell, so changing that cell changes the total without touching the formula. -
Partial matches with * and ?
In
SUMIFandCOUNTIFconditions,*stands for any run of characters: "North*" matches everything that starts with North. -
Count with two conditions
COUNTIFScounts the rows that meet several conditions at once, each tested in its own column. -
Add up with two conditions
SUMIFSadds the numbers in one column for the rows that meet every condition you give it. -
Average with conditions
AVERAGEIFaverages the numbers on the rows that meet one condition,AVERAGEIFSthose that meet several. -
Count the blanks
COUNTBLANKcounts the cells that look empty, formulas that show nothing included;COUNTAcounts every cell that isn't empty. -
Which invoices are missing?
To compare two lists, look up each item of the first in the second and mark the ones that aren't found.
-
Mistake hunt: the regional report
A
SUMIFtotal goes wrong without an error when its two ranges don't line up, slide when filled, or the label has a stray space.
Do module 6 in order, step by step, in the courseAll 126 exercises
FAQ
- Should I learn SUMIF or SUMIFS first?
- Start with COUNTIF and SUMIF, where you learn how a condition is written. SUMIFS uses the same conditions with more than one pair, and many people then use it even for a single condition so there is only one argument order to remember.
- Do these formulas work in Google Sheets and Excel for Mac?
- Yes. COUNTIF, SUMIF, COUNTIFS, SUMIFS and AVERAGEIFS have the same arguments, the same quotes and the same wildcards in both.
- What happens if I get an exercise wrong?
- The checker says what went wrong, for example swapped ranges, a missing quote or a cell reference inside the quotes, and each exercise has a hint with a formula that works.