Lab › Data Cleaning › Flag Duplicate Emails
Flag Duplicate Emails: Excel Lab
Lab 28 · IntermediateCOUNTIF$ absolute referenceIF
The task: A mailing list has repeats. Mark every email that appears more than once, then count the flags.
1 Watch how it is done
Step 1: Count each email in the whole list
=IF(COUNTIF(A$4:A$13,A4)>1,"Duplicate","OK")- Click B4.
- Type =IF(COUNTIF(A$4:A$13,A4)>1,"Duplicate","OK") and press Enter. The $ keeps the list fixed while A4 moves.
- Drag the fill handle down.
Step 2: How many flags
=COUNTIF(B4:B13,"Duplicate")- Click the cell next to Duplicates found.
- Type =COUNTIF(B4:B13,"Duplicate") and press Enter.
2 Your turn
Download the practice file. It has new numbers. Open it in Excel (or Google Sheets) and do the same steps.
3 Check your answers
Stuck? Download the solution file and compare it with yours.
Next lab: Due Date and Day Name →
Want the theory? Read the Data Cleaning lessons →
← More Data Cleaning labs · All lab categories