Finding duplicates is one of the most asked questions on Excel forums. The answer is simple once you see it: COUNTIF counts how many times a value appears in the list. If the answer is more than 1, the value is a duplicate. IF then writes a clear message next to it.
The following exercise shows you how to spot duplicates in a reference list with COUNTIF, a logical test and IF.
What you will practice in this exercise
You work on a list of product references. You answer 5 questions, one formula per question:
- How many times a reference appears in the list (COUNTIF with absolute references)
- Copy the count down the list (fill down)
- Is the reference a duplicate? (logical test >1)
- Copy the test down the list (fill down)
- Write “Duplicate”, otherwise leave the cell empty (IF + COUNTIF)
Practice with exercises
Find duplicates — COUNTIF and IF
Spot duplicates in a list at a glance with COUNTIF and IF.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.