COUNTIF practice exercises (free, checked instantly)
No download, no sign-up3 exercises · checked instantly
Counting with conditions comes up constantly: how many orders shipped, how many reps hit a number, how many tickets are open. These exercises cover COUNTIF with text, a broken comparison you repair (the most common COUNTIF mistake), and COUNTIFS with two conditions. Each is graded on our server. The first uses a sales team sheet, where the region column is text; the other two use a shop's order list, where quantities are numbers, so you practise criteria for both text and numbers. After a wrong answer you can take a hint, try again, or reveal the answer with an explanation of how the formula reads.
Quick refresher
COUNTIF(range, criteria) counts the cells that meet one condition: text in quotes, or a comparison in quotes like ">2". COUNTIFS(range1, criteria1, range2, criteria2, …) counts rows that meet every condition. See the COUNTIF reference, COUNTIF vs COUNTIFS and COUNTIF with a cell reference.
- 1
How many reps work in the East? Count them in I1.
- Use COUNTIF
Select I1 and type = to start its formula (in the cell or the formula bar)A B C D E F G H I 1 Rep Region Jul Aug Sep Target East reps 2 Amara Osei North $12,400 $13,100 $11,800 $36,000 3 Ben Fischer South $9,800 $10,250 $12,100 $30,000 4 Lina Chen East $15,200 $14,800 $16,900 $45,000 5 Diego Alvarez West $8,700 $9,100 $8,400 $28,000 6 Eva Novak North $11,200 $12,600 $13,900 $36,000 7 Farid Haddad South $13,300 $12,900 $14,100 $39,000 8 Grace Kim East $10,100 $9,600 $10,800 $33,000 9 Hugo Martin West $14,500 $15,800 $15,100 $42,000 - 2
The formula in K1 should count orders with a Qty over 2, but it won't even calculate. Fix it.
- Use COUNTIF
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = #ERROR!A B C D E F G H I J K 1 Order Date Customer Product Category Qty Price Status Qty over 2 #ERROR! 2 1001 2 Mar 2026 Mara Okafor Monstera Plants 1 $34.00 Shipped 3 1002 2 Mar 2026 Jonas Lind Terracotta pot Pots 3 $12.50 Shipped 4 1003 3 Mar 2026 Priya Raman Snake plant Plants 2 $22.00 Shipped 5 1004 4 Mar 2026 Tomás Ruiz Watering can Tools 1 $18.00 Pending 6 1005 5 Mar 2026 Elif Demir Fern Plants 4 $9.50 Shipped 7 1006 5 Mar 2026 Mara Okafor Potting mix Soil 2 $7.25 Returned 8 1007 6 Mar 2026 Kenji Mori Pruning shears Tools 1 $24.00 Shipped 9 1008 7 Mar 2026 Ines Varga Ceramic pot Pots 2 $19.00 Pending 10 1009 8 Mar 2026 Jonas Lind Monstera Plants 1 $34.00 Shipped 11 1010 9 Mar 2026 Sofia Rossi Fern Plants 6 $9.50 Shipped 12 1011 10 Mar 2026 Priya Raman Potting mix Soil 5 $7.25 Shipped 13 1012 11 Mar 2026 Leo Brandt Snake plant Plants 1 $22.00 Pending - 3
How many reps in the North (Region, column B) sold more than $12,000 in September (column E)? Answer in I1.
- Use COUNTIFS
Select I1 and type = to start its formula (in the cell or the formula bar)A B C D E F G H I 1 Rep Region Jul Aug Sep Target North > 12k 2 Amara Osei North $12,400 $13,100 $11,800 $36,000 3 Ben Fischer South $9,800 $10,250 $12,100 $30,000 4 Lina Chen East $15,200 $14,800 $16,900 $45,000 5 Diego Alvarez West $8,700 $9,100 $8,400 $28,000 6 Eva Novak North $11,200 $12,600 $13,900 $36,000 7 Farid Haddad South $13,300 $12,900 $14,100 $39,000 8 Grace Kim East $10,100 $9,600 $10,800 $33,000 9 Hugo Martin West $14,500 $15,800 $15,100 $42,000
What these exercises check
The exercises cover a COUNTIF with text, a broken comparison to repair (the most common COUNTIF mistake), and a COUNTIFS with two conditions. Each is graded on our server. Counting with conditions is everywhere at work: open tickets, orders shipped, people in a team, targets hit.
Common mistakes
- Writing a comparison without quotes,
>2instead of\">2\", which doesn't calculate. - Putting a cell reference inside the quotes, so it's compared as text.
- Using two COUNTIFs added together when COUNTIFS with both conditions was meant (that's OR, not AND).
Tips
- Comparisons go inside the quotes; a cell reference goes outside, joined with
&. - COUNTIF ignores case.
- Switch to COUNTIFS as soon as you need a second condition.
Updated . Answers are checked on our server against the course's answer key and against changed data; nothing you type is stored.
Practise COUNTIF on a live sheet
Lesson 20, COUNTIF, AVERAGEIFS and MAXIFS (Unit 5, Conditional totals), has 3 more graded exercises, checked instantly, with steps and hints when you're stuck. Pro