Finding duplicates with COUNTIF
Counts how many times the value in A2 appears in the whole column range. A result above 1 flags a duplicate, so review those rows before deleting any.
Understanding Finding duplicates with COUNTIF in ACARA Digital Technologies Years 9–10
What it does: The $ before the row numbers makes them absolute, so the range stays A2:A100 when the formula is filled down. Only the criteria cell (A2) changes. The first argument is the range to search and the second is the value to look for. So the range comes first, then A2. A result of 1 means the value matches only itself. Duplicates give 2 or more. COUNTIF returns how many cells match. A result above 1 flags a duplicate. The $ locks rows 2 and 100. A relative range slides down as you fill, so lower rows would miss the top of the list.
Common mistakes: The start of the range must be locked as A$2. Written as A3 it shifts down the column and misses the rows above, so duplicates are undercounted. It should be =COUNTIF(A$2:A$100,A3). COUNT only counts numbers and does not match a value. COUNTIF is needed to count how many times A4 appears. It should be =COUNTIF(A$2:A$100,A4).
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 333–377) and word search (Modules 333–412).
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(A$2:A$100,A2)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →