Count passing scores (COUNTIF)

Easy Logic
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

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)
The exercise data, as a table
ABD
1 StudentScorePassed count
2 Anna85
3 Ben58
4 Cara92
5 Dan60
6 Ella47
7 Frank73
8 Grace66
9 Henry39

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.

  1. Target cell is D2
  2. The range to count over is B2:B9
  3. Criteria for 'at least 60' is the text ">=60"
  4. 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

Related practice

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.