Flagging duplicates with a COUNTIF formula
Gives TRUE when the value in A2 appears more than once in column A. Put it in a helper column to flag duplicate rows, then filter for TRUE.
Understanding Flagging duplicates with a COUNTIF formula in ACARA Digital Technologies Years 7–8
What it does: The formula goes in a new column next to the data and is copied down. Each row then shows TRUE or FALSE for its own value in column A. Absolute references with $ keep the list being searched fixed. Only the A2 part moves down to A3, A4 and so on, so every row is checked against the whole column. COUNTIF counts how many times A2 appears in the range. If that count is greater than 1, the value is a duplicate, so the result is TRUE. Filtering the helper column hides the OK rows and shows only the flagged rows, so you can check them before removing anything.
Common mistakes: Row 3 must check the value in A3, not A2. The second argument of COUNTIF should be the cell on the same row as the formula, so it should end with A3)>1. Every value counts itself, so the count is always at least 1 and >0 is always TRUE. To flag duplicates the test must be >1.
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 261–300) and word search (Modules 261–324).
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)>1Fill in the Blanks
Spot the Error
Student with a class code? Join your class →