Free Excel guide
How to Use COUNTIF in Excel
COUNTIF counts qualifying cells. Use it in a traffic report to count days when visits reach a chosen threshold.
Try it yourselfFormula syntax
=COUNTIF(range, criteria)Pass the range to inspect and one criterion. To build the criterion from another cell, join the operator to the reference, as in ">="&D2.
Example formula
=COUNTIF(B2:B6,">100")On this worksheet, the example counts 132 and 110 and returns 2. The value 100 would also qualify with ">=" in place of ">".
Common mistakes
- Use COUNTIF to count matches and SUMIF to add their values.
- Use ">=" if the threshold itself should count.
Try it yourself
In B7, use COUNTIF to count days with at least 100 visits in B2:B6.
Keep practicing with the Excel course
Start with the free SUM exercise. You can try it before creating an account.
Related course lesson: COUNTIF· Premium course lesson