Flag duplicate values
Mark every value that appears more than once in a column.
The formula
Excel and Google Sheets
=IF(COUNTIF($A$2:$A$100, A2)>1, "Duplicate", "")How it works
COUNTIF($A$2:$A$100, A2)How many times this row's value appears in the whole column. The $ signs keep the range fixed.
>1More than once means it is a duplicate.
Example
| A: Email | B: Result |
|---|---|
| a@x.com | Duplicate |
| b@x.com | |
| a@x.com | Duplicate |
Tips
- To flag only the second and later copies, use COUNTIF($A$2:A2, A2)>1.