Building a frequency table with COUNTIF
Used in a frequency table: list each category in column A, then put this beside it to count how many times that category appears in the data range. Copy it down for every category.
Understanding Building a frequency table with COUNTIF in VCE Spreadsheets, SQL & Visualisation
What it does: A2 holds one unique category, and the COUNTIF formula in B2 refers to A2 to count how many times it appears in the data range. SUM adds the frequencies and COUNTA counts every entry in the data. If the result is TRUE, every value has been counted in a category. The range to search comes first and the criteria (the category cell) comes second. Each category must be listed once only. The count column shows how often it occurs. A2 is a relative reference, so it moves down. The locked range $D$2:$D$31 stays the same for every row. Checking that the counts add up to the total helps find missing categories, typos or extra spaces.
Common mistakes: COUNT only counts numbers and has no criteria argument. A frequency table needs =COUNTIF($D$2:$D$31,A2) to count how many times the category in A2 appears. The formula beside Train must use A3 as its criteria. Using A2 counts Bus again, so Train's count is wrong. It should be =COUNTIF($D$2:$D$31,A3).
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,A2)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →