Finding duplicate records in a customer list

Every customer list collects duplicates. Someone signs up twice, a colleague adds a contact that already exists, two systems are merged and each brings its own copy. The exact copies are easy to find with built-in tools. The ones that cause trouble are the near-duplicates: the same person written two different ways, which exact-match tools will not flag.

Find the exact duplicates first

In Excel, select the column you want to check, such as email addresses, and go to Home, Conditional Formatting, Highlight Cells Rules, Duplicate Values. Every value that appears more than once is coloured, which lets you look before you delete anything.

To remove them, select the whole table, go to Data, Remove Duplicates, and tick only the column that identifies a record, such as the email. Excel keeps the first row of each set and deletes the others, whole rows, not just that column. It only matches values that look exactly the same in the cell, so "acme@example.com" and "acme@example.com " with a trailing space are two different values to it. Work on a copy of the sheet, because the deleted rows are gone.

In Google Sheets, Data, Data cleanup, Remove duplicates does the same job, and the same menu has Trim whitespace for the spaces. To highlight instead of delete, add a conditional formatting rule with a custom formula such as =COUNTIF($C:$C,C1)>1, where C is the column you are checking.

A helper column with =COUNTIF($C$2:$C$500,C2)>1 works in both and gives you TRUE on every row whose value appears again, which you can then filter on.

Clean the values before you compare them

Exact-match tools miss many real duplicates because the same value is written in different ways. Before running them, make the column comparable: trim spaces at the start and end, put email addresses in lower case, and reduce phone numbers to their digits, dropping the country code or a leading 00, so that "+1 415 555 0100" and "(415) 555-0100" become the same thing. The TRIM and LOWER functions handle the first two in both Excel and Sheets.

Do this in a new column and compare that, so the original values stay as they were.

Decide on the field that identifies a person

The question a duplicate check really answers is whether two records are the same customer, and a name is a poor field to answer it with. Names are written differently from one system to the next: "Tom Baker" and "Thomas Baker", "María García López" and "Maria Garcia", a title added, a second surname dropped. And names that match exactly can belong to two different people: there is more than one John Smith.

Contact details are a better key, and a rule that works for most customer lists runs like this. An email address normally belongs to one person, so the same address points to the same customer, whatever the name says. If the emails differ, the phone number, compared as digits, is the next best evidence. When both differ, treat them as two people, and use the name to confirm what the contact details already said, not to decide on its own.

Know where the rule breaks. A shared inbox such as info@ or accounts@ belongs to a company, not a person, and a switchboard number can be shared by everyone who works there; on those, the shared detail proves nothing. And someone who changes jobs comes back with a new email and a new phone, so their two records will look like two people. Write your rule down, exceptions included, and apply it the same way to every pair rather than deciding each one on a feeling about the name.

Why a wrong merge is worse than a missed duplicate

A missed duplicate costs a little: a customer gets the same email twice, a report counts them twice. A wrong merge mixes two people’s histories, orders and notes into one record, and it is much harder to undo. When the evidence is unclear, leave the records apart and mark them for a second look rather than merging on a guess.

Most CRMs have their own duplicate rules and a merge screen that shows both records side by side. Use it, and check which value of each field will survive before you confirm.

Practise the judgement

The tools find the copies. Deciding whether two near-identical records are one person is a judgement, and it gets quicker with practice. Dupe Check shows two customer records at a time, each with a name, an email, a phone number and a company, and asks whether they are the same person or two. Half the pairs are the same person and half are not, so calling everything a duplicate fails as fast as calling nothing one. There is no timer, and nothing is merged or deleted.

← All guides