Duplicate checker template
By the Analistable team · Updated · 2 min read
Fill it in yourself
| Row ID | Name | Clean key | |
|---|---|---|---|
| 1 | Anna Berg | anna@north.co | =TRIM(C2) |
| 2 | Ben Cole | ben@kite.io | =TRIM(C3) |
| 3 | Anna Berg | ANNA@north.co | =TRIM(C4) |
| 4 | Cara Diaz | cara@delta.com | =TRIM(C5) |
| 5 | Dev Rao | dev@orbit.net | =TRIM(C6) |
duplicate-checker-template.xlsx · Instructions, List, Summary
Or let us do it for you
Doing period-end? Save this and rerun it next period in one click.
The workbook has a List sheet and a Summary. Paste your rows with the value to check (such as email) in column C; formulas trim stray spaces, count how often each value appears, mark the first occurrence Keep and later ones Remove duplicate, and the Summary reports total rows, unique values and rows to remove.
How to use this template
- 1Paste your list into List from A2; the value to check goes in column C.
- 2Sort first if it matters which copy is kept: the top occurrence is marked Keep.
- 3Fill columns D to G down to the last row.
- 4Filter Action for Remove duplicate, review and delete.
Tired of doing this by hand?
By hand
- Copy-paste every sheet into the template
- Fix mismatched columns and date formats
- Hunt for the rows that don't line up
- Repeat it all next month
With Analistable
- Upload your files
- The AI lines up columns and cleans the data
- Export the finished file
- Rerun next month in one click
Related templates
Part of our guide: How to compare two spreadsheets for differences and matches
What the template does
Excel's Remove Duplicates button deletes rows immediately and shows no reasoning. Before you delete anything from a customer or contact list, you usually want to see which rows repeat, how many times, and which copy survives. This template marks every row instead of deleting it, so you can review, then filter and delete. It applies the techniques in combining duplicate rows and merging contact lists without duplicates.
Sheet-by-sheet guide
| Sheet | You fill in | Formulas add |
|---|---|---|
| Instructions | Nothing | — |
| List | Row ID, Name, Email (or any key) | Clean key, Times seen, Occurrence, Action |
| Summary | Nothing | Total rows, unique values, values repeated, rows to remove |
How to fill it in
- Paste your list into List from A2. Put the column you want to deduplicate on — email, customer ID, phone — in column C.
- Sort the list first if it matters which copy is kept: the first occurrence from the top is marked Keep, so sort newest first to keep the latest record.
- Fill columns D to G down to the last row.
- Filter Action for Remove duplicate, review, and delete those rows (or copy the Keep rows to a new sheet).
How the formulas work
The clean key removes leading, trailing and doubled spaces. Matching is case-insensitive because COUNTIFS ignores case:
=TRIM(C2)
=COUNTIFS($D$2:$D$100,D2)The expanding range counts how many times the value has appeared so far, so only the first copy gets 1:
=COUNTIFS($D$2:D2,D2)
=IF(F2=1,"Keep","Remove duplicate")Worked example
Ten sample contacts. Anna appears once in capitals, Dev once with a trailing space and Ben twice with identical rows — all three are caught. In each case the first row from the top is kept and the later copy is marked for removal.
| Measure | Value |
|---|---|
| Total rows | 10 |
| Unique values | 7 |
| Values that appear more than once | 3 |
| Rows to remove | 3 |
Limits and when to move on
- TRIM does not remove non-breaking spaces from web exports; replace CHAR(160) first if matches are missed. Trailing and non-breaking spaces explains why.
- Only exact keys match. 'Jon Smith' and 'John Smith' are different values; for near-matches see matching names spelled differently.
- To check duplicates across two separate lists, use the compare spreadsheets tool or load both into Analistable and ask which records appear in both.
Frequently asked questions
- Can I check duplicates on two columns, like name and date?
- Yes. Change the clean key to =TRIM(B2)&"|"&TRIM(C2) so it joins both values, and the rest of the formulas work unchanged.
- Will it remove duplicates for me?
- No, on purpose. It marks rows so you can review them; filter on Remove duplicate and delete when you are satisfied.
- Does it work in Google Sheets?
- Yes. TRIM, COUNTIFS, COUNTA and IF behave the same in Google Sheets.