Count passing scores (COUNTIF)
The problem
Problem statement
You just finished grading an exam for an adult-education class. The passing line is 60 points, and the grade report needs one number at the top: how many of the eight students in B2:B9 passed. Fill the Passed count cell D2.
One formula over the whole roster — no helper column, and don't rewrite the range to fit one test case.
Problem data
Show the sheet as a table (selectable, copyable)
| A | B | D | |
|---|---|---|---|
| 1 | Student | Score | Passed count |
| 2 | Anna | 85 | |
| 3 | Ben | 58 | |
| 4 | Cara | 92 | |
| 5 | Dan | 60 | |
| 6 | Ella | 47 | |
| 7 | Frank | 73 | |
| 8 | Grace | 66 | |
| 9 | Henry | 39 |
Notes
COUNTIF takes a range and a criteria string. Comparison operators go inside the criteria text: ">=60". Writing 60 alone would count only exact 60s; "60" would be treated as equality too.
How to approach
Your answer goes in D2. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.
- Target cell is D2
- The range to count over is B2:B9
- Criteria for 'at least 60' is the text ">=60"
- Shape:
=COUNTIF(B2:B9, ?)
Official solutions
Show 2 solutions — try it yourself first
Approach 1: COUNTIF with >= criteria
=COUNTIF(B2:B9, ">=60")
COUNTIF walks B2:B9 and counts every cell that satisfies the criteria ">=60" — sixties and above. One line, no helper column.
Approach 2: COUNTIF against a threshold cell
=COUNTIF(B2:B9, ">=" & 60)
Concatenating the operator with a value builds the same criteria string. Useful when the threshold sits in another cell: ">=" & F1 lets you change the passing line without rewriting the formula.
Function guide
FAQ
How do I count cells greater than a value?
Use =COUNTIF(B2:B9, ">=60") — the operator and the threshold live together in one criteria string. Use ">60" if 60 itself should not count.
Does COUNTIF include the boundary value?
With ">=60", a score of exactly 60 is included. With ">60" it is excluded. Pick the operator that matches your rule.
Can the threshold be a cell reference?
Yes: =COUNTIF(B2:B9, ">=" & E1) builds the criteria from the number in E1, so you can tune the passing line without touching the formula.