Hands-On Excel Totals with conditions

Excel SUMIF and COUNTIF exercises

Ten exercises on counting, adding and averaging the rows that meet a condition: COUNTIF, SUMIF, a condition in a cell, wildcards, COUNTIFS, SUMIFS, AVERAGEIF and AVERAGEIFS, blank cells, comparing two lists, and a SUMIF report that gives the wrong totals. Each runs on an Excel-style sheet in your browser and checks your result, so any correct formula passes and a typed-in number does not.

10 lessonsAbout 30 minutesBy Updated

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.

  1. Count the ones that match COUNTIF, Core, 3 min

    COUNTIF counts the cells in a range that meet one condition, like a status or a minimum amount.

  2. Add up the ones that match SUMIF, Core, 3 min

    SUMIF adds the numbers in one column for the rows where another column meets a condition.

  3. Use a cell as the condition Criteria in a cell, Core, 3 min

    A SUMIF condition can come from a cell, so changing that cell changes the total without touching the formula.

  4. Partial matches with * and ? SUMIF, COUNTIF with wildcards, Core, 3 min

    In SUMIF and COUNTIF conditions, * stands for any run of characters: "North*" matches everything that starts with North.

  5. Count with two conditions COUNTIFS, Core, 3 min

    COUNTIFS counts the rows that meet several conditions at once, each tested in its own column.

  6. Add up with two conditions SUMIFS, Core, 3 min

    SUMIFS adds the numbers in one column for the rows that meet every condition you give it.

  7. Average with conditions AVERAGEIF, AVERAGEIFS, Core, 3 min

    AVERAGEIF averages the numbers on the rows that meet one condition, AVERAGEIFS those that meet several.

  8. Count the blanks COUNTBLANK, COUNTA, Core, 3 min

    COUNTBLANK counts the cells that look empty, formulas that show nothing included; COUNTA counts every cell that isn't empty.

  9. Which invoices are missing? Compare two lists, Core, 3 min

    To compare two lists, look up each item of the first in the second and mark the ones that aren't found.

  10. Mistake hunt: the regional report Fixing SUMIF, Core, 3 min

    A SUMIF total 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.