How to Remove Duplicates in Excel: 6 Ways That Actually Work

How to remove duplicates in Excel — 6 ways that actually work | JAAD Group Excel Consulting
Jump to...

A client sent me a customer list last month with 4,200 rows. After I ran it through a proper duplicate check, 4,200 became 3,340. Same company, entered three different ways by three different people over two years. Acme Corp, Acme Corporation, and ACME CORP were all sitting in the same column as if they were three separate customers, and every report built on top of that list had been quietly wrong the whole time.

Duplicate rows are one of the most common problems I get called in to fix, and also one of the easiest to fix badly. Click Remove Duplicates without thinking it through and you can delete the wrong record, keep the wrong version of a duplicate, or wipe out rows that only looked identical because you were comparing the wrong columns. This guide covers six ways to find and remove duplicates in Excel, when to use each one, and how to stop the same duplicates from reappearing in your next import.

Why Duplicate Rows Show Up in the First Place

Before removing anything, it helps to know where duplicates actually come from, because the source usually tells you which method below is the right one.

Manual Entry Errors

Two people type the same customer into a spreadsheet on two different days, neither one checks whether it is already there, and now there are two rows. This is the most common cause in small business spreadsheets that multiple people update.

Merged Exports and Data Imports

Pulling data from QuickBooks, a CRM, or a form tool and combining it with an existing list is one of the most reliable ways to create duplicates. If this pattern sounds familiar, it is the same category of problem I walk through in my guide on cleaning messy exported data in Excel. Duplicate removal is usually step one in that larger cleanup, not a separate task.

Copy and Paste Mistakes

Someone copies a block of rows to reorganize a sheet, pastes it in the wrong place instead of cutting it, and now the same data exists twice. It happens to careful people too. It is one of the easiest mistakes to make and one of the hardest to notice until a total looks wrong.

Formatting Differences That Hide as Duplicates

Sometimes what looks like one entry is actually several, because of inconsistent formatting rather than genuinely separate data. “Acme Corp” with a trailing space, “ACME CORP” in all caps, and “Acme Corp.” with a period can all refer to the same company but will not be caught as duplicates until the formatting is standardized first. If this is the issue, TRIM, PROPER, and CLEAN, which I cover in more depth in the exported data guide, usually need to run before any duplicate check will work properly.

Method 1: The Remove Duplicates Button

This is the fastest option and the right starting point for most straightforward cases.

Step 1: Back Up Your Data First

Removal with this method is permanent the moment you click OK. There is no warning dialog that lets you review which rows are about to disappear. Copy your range to a new sheet or save a copy of the file before you start. I tell every client this and I still see people skip it, usually right before they need the backup.

Step 2: Select Your Data Range

Click any cell inside your table, or select the full range including headers if it is not formatted as a table. If your data is already formatted as an Excel table, Excel will detect the full range automatically once you select Remove Duplicates.

Step 3: Open Remove Duplicates

Go to the Data tab and click Remove Duplicates, found in the Data Tools group.

Step 4: Choose Which Columns Define a Duplicate

This is the step that trips people up the most. A dialog box lists every column in your selection with a checkbox next to each one. If you leave every column checked, Excel only considers two rows duplicates when every single value in the row matches exactly. If two rows are the same customer but one has a different phone number on file, leaving every column checked means Excel will not catch it as a duplicate.

Think about what actually makes a row unique before you check anything. For a customer list, that is usually the email address alone. For an order list, it might be the order number. Uncheck every column except the one or two that define uniqueness in your specific dataset, then click OK.

Remove Duplicates dialog in Excel with Customer Email column selected as the column that defines a duplicate

Step 5: Read the Result Message

Excel tells you exactly how many duplicate values it found and removed, and how many unique values remain. Read this number. If it removed far more or far fewer rows than you expected, undo with Ctrl+Z and check your column selection before trying again.

Microsoft’s own documentation on this feature notes an important detail: comparison is based on what is displayed in the cell, not the value stored underneath it. “3/8/2026” and “March 8, 2026” can be stored as the same date but will be treated as different values if they display differently. Keep that in mind if dates or formatted numbers are part of what defines your duplicates.

Method 2: Conditional Formatting to Find Duplicates Before You Delete Anything

Sometimes you do not want to delete duplicates immediately. You want to see them first, understand the pattern, and decide case by case. Conditional formatting highlights every duplicate without touching your data.

Step 1: Select the Range to Check

Click and drag to select the column or range you want to scan.

Step 2: Apply the Duplicate Values Rule

Go to the Home tab, open Conditional Formatting, choose Highlight Cells Rules, then Duplicate Values.

Step 3: Pick a Highlight Style

A dialog lets you choose a fill color for the duplicate cells. Pick something that stands out clearly against your data, then click OK.

Every duplicate value in the range is now highlighted. This is the method I reach for when a client wants to review duplicates manually before anything gets deleted, especially on a customer or vendor list where deleting the wrong record has real consequences. Once you can see the pattern, you can decide whether Method 1 is safe to run or whether specific rows need a closer look first.

Excel column of customer emails with duplicate values highlighted in yellow by conditional formatting

Method 3: COUNTIF to Flag Duplicates with a Formula

This method gives you a permanent, visible flag column instead of a one-time deletion, which is useful when you want an ongoing way to spot duplicates as new rows get added.

In a helper column next to your data, enter:

=COUNTIF(A:A,A2)>1

This returns TRUE for every row where the value in column A appears more than once anywhere in that column, and FALSE for rows that are genuinely unique. Drag the formula down the full column. You can then sort or filter by this column to review every flagged row together, decide which ones to keep, and delete manually with full control over the process.

For a more useful version, combine COUNTIF with the row number so you can tell the first occurrence apart from the repeats:

=COUNTIF($A$2:A2,A2)>1

Because the range reference starts fixed at the top and extends down as you copy the formula, this version returns FALSE for the first time a value appears and TRUE for every repeat after it. That makes it easy to filter for TRUE and know exactly which rows are the extras, keeping the original untouched.

Method 4: Advanced Filter for Unique Values Only

This method does not delete anything. It filters your view, or copies a clean list to a new location, while leaving your original data completely untouched. Microsoft calls this the Advanced Filter.

Step 1: Select Your Range

Click a cell inside your data or select the full range.

Step 2: Open Advanced Filter

Go to the Data tab, find the Sort & Filter group, and click Advanced.

Step 3: Choose Filter in Place or Copy to Another Location

Filtering in place hides the duplicate rows without deleting them, and you can unhide them again at any time. Copying to another location builds a clean, duplicate-free list somewhere else while your original stays exactly as it was. If you choose to copy, you will need to specify a destination cell.

Step 4: Check Unique Records Only

This is the checkbox that makes the whole thing work. Check it, then click OK.

The result either hides duplicates in place or produces a fresh copy with duplicates excluded. Because nothing is deleted, this is the safest method on this list when you are not fully confident about which rows should go.

Method 5: The UNIQUE Function for a Live, Self-Updating List

If you are on Microsoft 365 or Excel 2021 or later, the UNIQUE function does something the methods above cannot. It produces a list of unique values that updates automatically whenever your source data changes, without you touching it again.

In an empty cell, enter:

=UNIQUE(A2:A500)

Excel spills the unique values down from that cell automatically. Add a new entry to your source range, duplicate or not, and the UNIQUE list adjusts itself the next time the sheet recalculates. This is the method I set up for clients who are adding rows to a list on an ongoing basis and want a permanently clean version available without rerunning Remove Duplicates every week.

Combine it with SORT for a tidy, alphabetized result:

=SORT(UNIQUE(A2:A500))

Unlike the first four methods, UNIQUE does not touch your source data at all. It builds a derived list beside it, which makes it the right choice whenever you need both the raw data and a clean version to exist at the same time.

Method 6: Power Query for Duplicates That Keep Coming Back

If you are cleaning the same type of duplicate out of a weekly or monthly import, doing any of the five methods above by hand every time is a waste of your hours. Power Query lets you build the cleanup once and replay it automatically on every new file.

Power Query workflow for removing duplicates — load data, remove duplicates as a query step, load the clean result, refresh on new data

Step 1: Load Your Data Into Power Query

Go to Data, then Get Data, then choose From File or From Table/Range depending on where your data lives.

Step 2: Select the Column That Defines a Duplicate

In the Power Query editor, right click the header of the column that should be unique, Customer Email for example.

Step 3: Choose Remove Duplicates

This option is in the right click menu and works the same way as Method 1, but it is now a recorded step inside a query rather than a one-time action.

Step 4: Close and Load

Click Close & Load to bring the cleaned result back into your worksheet.

Step 5: Refresh Whenever New Data Comes In

The next time you need to run the same cleanup on a fresh export, right click the table and select Refresh. Power Query reapplies every step, including the duplicate removal, automatically. I set this up for a client who was spending close to an hour every week manually deduplicating a sales export. After the Power Query setup, that same job takes under a minute, and nobody on the team has to remember the exact process or which columns matter.

Which Method Should You Actually Use

MethodBest forDeletes your data?Stays up to date on its own?
1. Remove DuplicatesOne-time cleanupYes — permanentNo
2. Conditional FormattingReviewing before deletingNoNo
3. COUNTIF flagOngoing flag you can filterNoYes — flags new rows as they are added
4. Advanced FilterClean copy, original intactNoNo
5. UNIQUELive clean list beside your dataNoYes — updates automatically
6. Power QueryRepeating importsNo — builds a clean outputYes — on refresh

For a one time cleanup on a file you will not touch again, Method 1 is the fastest path, as long as you take the backup step seriously and think through which columns actually define uniqueness.

For a list you need to review carefully before deleting anything, start with Method 2 to see the pattern, then decide.

For an ongoing flag you can filter and sort by without losing any data, Method 3 gives you full visibility and control.

For keeping your original data completely intact while working from a clean copy, Method 4 or Method 5 are the safer choices, with Method 5 adding the benefit of updating itself automatically as new data comes in.

For a repeating import that you clean the same way every time, Method 6 is the only one of the six that removes your manual work from the equation entirely.

When It Is Time to Bring in Help

Most duplicate problems are a five minute fix once you know which method fits the situation. The cases that are worth a second opinion are the ones where the stakes are higher than a messy spreadsheet. A customer list feeding into billing, a donor list where duplicate records mean duplicate mailings and wasted cost, or a dataset where the definition of a duplicate is not obvious from the columns alone are all situations where getting it wrong costs more than the time it would have taken to get it right.

If duplicates keep showing up in the same report every month, that is usually a sign the underlying process needs fixing, not just the spreadsheet. A properly built Excel automation system with Power Query built in stops the problem at the source instead of requiring someone to clean it up by hand every time.

A free consultation starts with looking at what your data actually looks like and where the duplicates are coming from.

Call JAAD Group: 949-464-7489 Visit: jaadgroupexcelconsulting.com

Frequently Asked Questions

What is the fastest way to remove duplicates in Excel?

The Remove Duplicates button on the Data tab is the fastest method for a one time cleanup. Select your data, go to Data, click Remove Duplicates, choose which columns define a duplicate, and click OK. Back up your data first, since this method deletes rows permanently with no way to preview the result beforehand.

How do I remove duplicates in Excel but keep one copy?

The Remove Duplicates feature already does this by default. It keeps the first occurrence of each duplicate and removes every repeat after it. You do not need to do anything extra to keep one copy, since that is the built in behavior of the feature.

Can I find duplicates without deleting them?

Yes. Conditional formatting highlights duplicate values without changing your data at all. The Advanced Filter with Unique Records Only checked can also hide or copy out duplicates without deleting anything from your original range. Both are safer starting points than Remove Duplicates when you are not certain which rows should go.

Why does Remove Duplicates sometimes miss obvious duplicates?

This almost always comes down to formatting differences or the column selection in the Remove Duplicates dialog. Comparison is based on what is displayed in the cell, so values that are stored the same but formatted differently can slip through. Trailing spaces, inconsistent capitalization, and extra characters also cause this. Running TRIM and PROPER on your data first usually fixes it.

How do I stop duplicates from showing up in every new import?

Deleting duplicates after the fact only fixes the current file. For ongoing exports, Power Query lets you build the duplicate removal into a saved process that reruns automatically every time you refresh. For data entered manually by a team, the real fix is usually data validation at entry, not cleanup after the fact.

Published By
Jeff Mattus, Owner and President of JAAD Group Excel Consulting
Jeff Mattus
JUMP TO...

Table of Contents

Transform Your Excel Workflows Today!

Stop wasting time on repetitive Excel tasks and confusing spreadsheets. Optimize your data with automation, reporting, and financial forecasting—so your team can focus on strategic growth instead.

Contact us today for a free consultation and see how Excel automation, reporting, and financial modeling can revolutionize your business operations.

Book a FREE Consultation