The COUNTIF function
Counts how many cells in a range match a value or condition, such as "Yes" or ">10". Example: =COUNTIF(C2:C30,"Yes") counts every Yes in C2 to C30.
Understanding The COUNTIF function in VCE Spreadsheets, SQL & Visualisation
What it does: The range is D2:D25 and the criteria is the text "No", so COUNTIF counts every No. The condition "<50" goes in quotes as the criteria, so only scores below 50 are counted. COUNTIF counts cells that match a condition. COUNT only counts cells that hold numbers, so it can't look for the word Yes. The range is the group of cells to look in. "Yes" is the criteria, the thing each cell is checked against. The range always comes first, then a comma, then the criteria. The > sign means greater than, so a cell with 10 is not counted. Only cells with 11 or more are counted.
Common mistakes: The arguments are the wrong way around. COUNTIF needs the range first and the criteria second: =COUNTIF(C2:C30,"Yes"). COUNTIF needs a criteria argument as well as a range. It should be =COUNTIF(C2:C20,">10") to count the cells greater than 10.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 4–20) and word search (Modules 4–34).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
=COUNTIF(range, criteria)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →