“COUNTIF greater than” is one of the most searched Excel questions. The reason is simple: in COUNTIF, the operator >, < or <> must be written between quotes, with the number, like “>=40000”. Most people try =COUNTIF(B2:B20,>40000) and get an error. Once you know the rule, you can count any threshold.
The following exercise shows you how to write every operator in a COUNTIF criterion.
What you will practice in this exercise
You work on a customer file. You answer 8 questions, one formula per question:
- At least 1 child (greater than or equal to)
- Income of 40,000 or more, below 30,000, above 50,000 (number thresholds)
- Customers who are not single (not equal to, <>)
- Customers with an email filled in (non-empty cells, “<>”)
- At least 2 children, income of 35,000 or less (more thresholds)
Practice with exercises
COUNTIF operators — Customer file
Count with thresholds: greater than, less than, not equal to — every operator.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.