All articles

Custom Software9 min read

CRM Data Cleansing and De-duplication Before Migration

Cleanse CRM data before the migration, not after. Standardize the fields you will match on, find duplicates with rules ranked by confidence, merge by a written survivor rule, let a sales lead decide the uncertain cases, and archive what no longer earns a place in the new system.

Written byUsama AsifPublished

Cleanse and de-duplicate CRM data before migrating, in five moves: standardize the fields you will match on, find duplicates with matching rules ranked by confidence, merge them by a written rule for which record survives, have a sales lead decide the uncertain matches, and archive records that should not move. Record every merge so it can be reversed.

A migration copies whatever it is given. If the old CRM holds the same customer three times, the new one will too, and each copy will carry a third of the notes. This guide is for the person who has been asked to clean the data before a CRM change and wants a method. It assumes a spreadsheet tool or a database and a few people who know the customers.

Key takeaways

  • Clean before the load. Duplicates merged afterward have already split the history.
  • Standardize first, then match. Two phone numbers written differently will not match until they are written the same way.
  • Rank matching rules by confidence. Merge the certain ones automatically and send the uncertain ones to a person.
  • Write the survivor rule before merging: which record is kept, and which value wins when two differ.
  • Merging a contact must move its notes, activities and deals to the survivor.
  • Keep a merge log with the IDs of both records.
  • Archive what should not move, and do not delete it.

Why cleanse before migrating and not after?

Because the migration is the one moment when every record passes through your hands. Before the load, a duplicate is two rows that can be compared and joined. After the load, it is two live records that salespeople have already started editing, each with its own notes, tasks and deals.

Reconciliation also depends on it. If cleansing is part of the load, every difference between the old and new counts is explained by a rule: so many merged, so many archived.

What should you standardize first?

Standardize the fields you will match on and the fields people filter by. Do it on a copy of the data, with a rule per field, so the same rule can be run again on the final extract.

FieldCommon problemRule to apply
EmailCapital letters, spaces before or after, two addresses in one cellLowercase, trim, split into primary and secondary
PhoneBrackets, dots, spaces, missing country codeDigits only with a country code; keep the extension in its own field
Company name"Inc", "Inc.", "LLC", "Ltd", all capitalsKeep the display name; build a second, simplified name for matching only
Person nameFull name in one field, titles, nicknamesSplit first and last; move titles to their own field
Dropdown values"Hot", "hot", "HOT lead"Map every old value to one new value; list the ones nobody can map
DatesMixed formats, text such as "last spring"One date format; unreadable dates go to a review list

Never overwrite the original value in the working file. Add a cleaned column beside it, so anyone can see what the rule did.

Which matching rules find duplicate records?

Use several rules in order, from the most certain to the least. Each rule either merges automatically or sends the pair to a review list. A wrong merge is worse than a missed one: a missed duplicate can be merged later, but two different customers joined into one are hard to separate.

Matching ruleConfidenceWhat to do
Same email address after cleaningHighMerge automatically, unless the address is shared, such as info@ or sales@
Same phone number and same last nameHighMerge automatically
Same company domain and same first and last nameHighMerge automatically
Same simplified company name and same postal codeMediumReview list for companies
Same first and last name, different companyLowReview list; often a person who changed jobs
Same phone number onlyLowReview list; often a switchboard number

Match companies first, then contacts within each company. A contact match is far more reliable once you know the two records sit under the same company.

What merge rules decide which record survives?

A survivor rule names the record that is kept. Common choices are the record with the most recent activity, the one with the most fields filled, or the one that already has an ID in your accounting system. Pick one and apply it everywhere.

Then set a rule for each field where the two records differ:

  • Most recently updated value wins for phone, job title and address.
  • Survivor's value wins, the other is kept as secondary for email.
  • Most restrictive value wins for marketing consent. If either record says the person opted out, the merged record says so. Your legal adviser should confirm this rule for your situation.
  • Keep both for notes, activities, deals and attachments. These are never chosen between: all of them move to the survivor, with their original dates and authors.
  • Owner follows the survivor, with the other owner told about the merge.

Write the old ID of the merged-away record on the survivor, and in the merge log. That is what makes a merge reversible.

Who decides?

The sales lead owns the rules. A technical person runs the matching and prepares the review list. Two or three salespeople work through the list for their own accounts, since they know whether two similar names at one firm are the same person. Finance should see the company merges if customer IDs are shared with the accounting system.

If the review list runs to thousands of pairs, the weaker rules are too loose. Tighten them and accept that some duplicates will be merged later in the new system.

What does a before and after look like?

The records below are fictional and for illustration only. Four rows in the old system describe one company and two people.

Before

RowCompanyContactEmailPhoneOwnerLast activity
1Harlow Supply Co.Dana Reyesdana.reyes@harlowsupply.example(555) 010-0142M. Ortiz2026-03-14
2Harlow Supply Company IncD. ReyesDana.Reyes@harlowsupply.example555.010.0142Former employee2024-09-02
3HARLOW SUPPLYDana Reyesdreyes@harlowsupply.example(blank)M. Ortiz2025-11-20
4Harlow Supply Co.Tom Averytom.avery@harlowsupply.example555-010-0177M. Ortiz2026-01-08

After

RecordResultRule that applied
Company: Harlow Supply Co.One company; three name variants joinedSame domain; simplified name match confirmed by the review list
Contact: Dana ReyesRows 1 and 2 merged automatically; row 1 survivesSame email after lowercasing; most recent activity survives
Contact: Dana Reyes, second emailRow 3 merged after review; dreyes@ kept as secondary emailSame name and company, different email: review list, confirmed by the owner
Contact: Tom AveryUnchanged, linked to the one companyNo match
Notes and activitiesAll items from rows 1, 2 and 3 now sit on one contact, in date orderKeep both
Merge logOld IDs of rows 2 and 3 stored on the survivorEvery merge is recorded

Four rows became one company and two contacts, and nothing written about Dana Reyes was lost.

What should you archive instead of migrate?

Archive records that are true but no longer useful, and records that were never real. Archive means moved to a read-only store that can still be searched, not deleted.

Record typeUsual treatmentWhy
Test records and spam form submissionsLeave outNever real
Contacts whose email bounces, with no activityArchiveCannot be reached; may still explain an old deal
Leads with no activity for a number of years you chooseArchiveAdds noise to searches and reports
Companies that have closedArchive, unless there are open invoicesHistory only
Closed deals older than your cut-offMigrate as a summary or archiveUseful for reporting, rarely opened
Contacts who opted out of marketingMigrate, with the opt-outThe opt-out must be respected in the new system

How long customer records may or must be kept is a question for your own legal or compliance adviser.

How do you stop duplicates coming back?

Ask for three things in the new CRM: a duplicate warning when someone creates a contact with an email that already exists, required fields and fixed dropdowns on the fields you just cleaned, and one named owner for the rules. If a packaged product cannot enforce your rules, the CRM customization depth checklist helps you test how far it can be adapted.

When this is more than you need

A list of a few hundred contacts can be cleaned by sorting on email and reading down the column. Written rules, a review list and a merge log are worth the effort when there are thousands of records, several sources, or history attached to the duplicates. If the history is your main worry, the CRM migration checklist for keeping customer history covers what to check after the load. For the full sequence from inventory to cutover, see our guide to CRM data migration to a custom CRM.

How Timeline Digital approaches data cleansing

Timeline Digital is a custom software development company founded in 2013 in Islamabad, Pakistan, that builds custom CRM systems and runs migrations into them as managed projects, delivered remotely. In our CRM data migration services, your sales lead approves the matching and merge rules, and we record every merge with both record IDs. The pilot is always free. It covers 2 to 3 key modules of the CRM, which can include a trial migration of a sample of your data. There is no fixed timeframe: the schedule for your CRM migration is set from your requirements in the Plan step. The free pilot of 2 to 3 key modules is ready in about 2 days, and with 1,200+ developers we have the capacity to deliver a focused system in as little as 2 weeks. The full project starts after you approve the pilot, and the scope, milestones and terms are agreed after it. Timeline Digital does not publish prices for custom software, because every project is custom.

Frequently asked questions

Should we clean CRM data before or after migrating?

Before. Until the load, a duplicate is two rows that can be compared and joined. Afterward it is two live records that people are already editing, each with its own notes and tasks. Cleansing before the load also means every difference in the reconciliation counts is explained by a written rule.

What matching rules should we use to find duplicate contacts?

Start with the most certain: the same email address after lowercasing and trimming, then the same phone number with the same last name, then the same company domain with the same full name. Merge those automatically. Send weaker matches, such as the same name at a different company, to a review list.

When two records are merged, which one is kept?

Decide a survivor rule in advance and apply it everywhere. Common rules are the record with the most recent activity, the most complete record, or the one already linked to your accounting system. Notes, activities, deals and attachments from both records move to the survivor.

Who should decide whether two records are the same customer?

The sales lead owns the rules, and the salespeople who know the accounts decide the uncertain pairs on the review list. A technical person runs the matching. Finance should see company merges where customer IDs are shared with the accounting system.

What CRM data should be archived instead of migrated?

Archive unreachable contacts with no activity, leads untouched for a number of years you choose, closed companies and very old closed deals. Leave out test records and spam. Keep the archive read-only and searchable. Contacts who opted out of marketing should migrate with the opt-out, so it is respected in the new system.

Topics in this article

  • CRM Data Cleansing
  • De-duplication
  • CRM Migration
  • Data Quality
  • Custom CRM

Start a conversation

Tell us how your business works.

Describe what is slowing your team down. We will help you work out what to build, and how a free pilot lets you judge our work before the full project.

Prefer WhatsApp? Start a chat

What happens next

  1. You send a short brief

    The problem, the people involved and any target date. A senior engineer replies within 4 business hours.

  2. We understand your workflow

    A first call about how your business works today. An NDA can be signed before you share details.

  3. You test a free pilot

    You choose 2 to 3 key modules and we build them first, so you judge real software before the full project.