Cart
No products in the basket.
Log In Sign Up

Login

How to Remove Duplicates in Excel (4 Ways)

Duplicate entries can make Excel spreadsheets difficult to manage, especially when working with customer lists, sales records or employee information. A repeated row might seem harmless, but it can affect reports, calculations and everyday data management.

To remove duplicates in Excel, select your data, go to Data → Remove Duplicates, choose the columns you want to check, and click OK. Excel will remove matching records while keeping the first occurrence.

However, deleting rows is not always necessary. Excel also provides ways to extract unique records, create automatically updating lists and clean imported data.

This guide explains four practical methods, when to use each one and how to keep your important information organised.

Need a ready-made formula? Try our UNIQUE formula builder.

Before You Remove Duplicates in Excel

Before cleaning your spreadsheet, decide what actually counts as a duplicate.

Imagine a UK business has a customer list containing names, customer IDs and towns. Two customers might both live in Manchester, but that does not make them the same person.

Excel can compare one column or several columns together. Your selection determines which records it identifies as duplicates.

Before starting:

  • Keep a copy: Save the original worksheet before removing records.
  • Check column headings: Make sure Excel recognises your header row.
  • Choose comparison columns: Decide which fields identify a repeated record.
  • Review important details: Check which entries should remain.

You can also use conditional formatting to spot repeated values before deciding which records to remove. Go to Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values to identify matching entries visually.

This is particularly helpful when reviewing customer details or invoice records.

How to Remove Duplicates in Excel: 4 Methods

The best method depends on whether you want to delete repeated rows, extract unique records or create a list that updates when your data changes.

Method 1: Use Excel’s Remove Duplicates Tool

The built-in Remove Duplicates tool is the quickest option for most everyday spreadsheets. It allows you to remove repeated records without using formulas.

Follow these steps:

  1. Open your Excel workbook and select the complete data range, including all columns belonging to each record.
  2. Click the Data tab.
  3. Select Remove Duplicates from the Data Tools group.
  4. Tick My data has headers if the first row contains column headings.
  5. Choose the columns Excel should compare.
  6. Click OK to remove matching records.

Excel displays a message showing how many duplicate values were removed and how many unique values remain.

When working with larger spreadsheets, a few keyboard shortcuts for faster Excel navigation can make selecting and reviewing records easier.

Example: Removing duplicate customer records

Suppose your spreadsheet contains the following information:

Customer IDNameTown
C101Sarah JonesBristol
C102James SmithLeeds
C101Sarah JonesBristol
C103Emma BrownCardiff

If you select Customer ID as the comparison column, Excel identifies the repeated C101 entry and removes its second occurrence.

Your cleaned spreadsheet will look like this:

Customer IDNameTown
C101Sarah JonesBristol
C102James SmithLeeds
C103Emma BrownCardiff
Before-and-after Excel customer records showing a repeated customer ID removed while the original entry remains.

What happens when you select multiple columns?

If you select all three columns, Excel removes a row only when the values match across every selected field.

For example, if two records share a customer ID but contain different addresses, selecting all columns would retain both.

Make sure your selected range includes the complete records, even if you are checking duplicates using just one column.

According to Microsoft’s duplicate-removal guidance, the built-in feature permanently deletes matching records from the selected range. Keeping a separate copy allows you to refer back to the original information.

Method 2: Use Advanced Filter to Extract Unique Records

Advanced Filter is useful when you want to create a separate list of unique records while keeping your original spreadsheet unchanged.

For example, an office administrator might need a clean supplier contact list without altering the master database.

Follow these steps:

  1. Select your data range, including column headings.
  2. Open the Data tab.
  3. Click Advanced in the Sort & Filter group.
  4. Select Copy to another location.
  5. Check that the List range contains the correct cells.
  6. Enter a destination in the Copy to box.
  7. Tick Unique records only.
  8. Click OK.

Excel copies the distinct records to your selected location.

Advanced Filter compares the fields included in the selected list. If you only need unique customer IDs, select the relevant ID column rather than the entire multi-column dataset.

You can also choose Filter the list, in-place, which temporarily hides duplicate records instead of producing a separate list.

Microsoft’s guidance on filtering unique values in Excel explains the difference between filtering records and permanently removing them.

Once your list is organised, using drop-down lists to standardise data entry can help maintain consistent categories and reduce typing errors.

Method 3: Use the UNIQUE Function

The UNIQUE function is ideal when you want a list of distinct values that updates as the referenced source data changes.

Unlike the Remove Duplicates tool, it leaves your original information untouched.

Suppose customer IDs appear in cells A2 to A20.

Click an empty cell and enter:

=UNIQUE(A2:A20)

Press Enter.

Excel displays a list containing each distinct customer ID once.

Removing duplicates across several columns

To return unique combinations of values across columns A, B and C, use:

=UNIQUE(A2:C20)

Excel checks each row across those three columns and returns distinct records.

Excel spreadsheet showing the UNIQUE function removing repeated customer IDs from a list while keeping the original data unchanged.

For a list that grows regularly, using an Excel Table with a structured reference can help ensure new entries are included. A fixed reference such as A2:A20 must be extended when records are added outside that range.

What if you only want values that appear once?

The UNIQUE function also has an optional argument for returning only entries that occur exactly once.

For example:

=UNIQUE(A2:A20,,TRUE)

This excludes values that appear more than once, rather than returning one copy of each repeated value.

The Microsoft UNIQUE function reference provides the full syntax and supported versions, including Microsoft 365, Excel 2021 and Excel 2024.

The function is particularly useful for producing distinct customer IDs, product categories or reporting lists. For more practice with formulas and spreadsheet tools, Skill Up offers an Excel course covering beginner to advanced techniques.

When comparing records from separate datasets, using INDEX MATCH for spreadsheet lookups can help retrieve related information.

Free Excel tool

Step 1 of 4

UNIQUE Formula Builder

Build a ready-to-paste UNIQUE formula for your own data. First, where is your data?

Works in Microsoft 365, Excel 2021 and Excel 2024. Nothing you enter is saved.

Method 4: Remove Duplicates Using Power Query

Power Query provides a repeatable way to clean data, making it useful for spreadsheets that receive regular updates.

For example, a UK retailer might import weekly stock records from different suppliers. Rather than manually cleaning each new file, Power Query can apply the same duplicate-removal transformation when the query is refreshed.

A small-business employee reviewing stock records on a laptop and paper documents in an office.

Follow these steps:

  1. Select a cell within your dataset.
  2. Go to Data → From Table/Range.
  3. Confirm the table or range to open the Power Query Editor.
  4. Select the columns you want to compare.
  5. Choose Home → Remove Rows → Remove Duplicates.
  6. Review the cleaned records.
  7. Click Close & Load to return the result to Excel.

Power Query records the cleaning step, allowing you to refresh the output when the source data changes.

If you regularly prepare reports, Skill Up’s training in PivotTables and Power Query covers additional tools for managing and analysing data.

A useful detail when comparing text

Power Query is case-sensitive. For example, ABC123 and abc123 may be treated as different customer IDs.

If letter case should not matter, apply an uppercase or lowercase transformation before removing duplicates.

Power Query also does not guarantee which matching record will be retained. When the latest transaction or customer update must remain, use a reliable method to establish which record should be kept.

Microsoft explains these behaviours in its guidance on working with duplicate values in Power Query.

For larger reporting tasks, Power Pivot for analysing connected datasets offers additional data-modelling capabilities, while Power Query focuses on preparing information.

Which Excel Duplicate Removal Method Should You Use?

The best way to remove duplicates in Excel depends on your data and whether you want to keep the original records. Here is when each method works best.

  • Remove Duplicates: The quickest option for everyday spreadsheet cleaning. It removes repeated records and keeps the first matching entry. This is ideal when you no longer need the extra copies.
  • Advanced Filter: A good choice when you want a separate list of unique records. You can copy the results to another location while keeping your original data unchanged.
  • UNIQUE Function: Best for creating a list that updates automatically when values in the referenced data change. It is particularly useful for customer lists, product categories and regular reports.
  • Power Query: Suitable for larger datasets and spreadsheets that need regular cleaning. You can save the duplicate-removal steps and apply them again when refreshing your data.

For most beginners, the built-in Remove Duplicates tool is the easiest starting point. However, if you regularly manage large spreadsheets or imported data, learning Advanced Filter, UNIQUE and Power Query can make your work more efficient and help you develop stronger Excel skills.

For learners handling regular reports and larger datasets, Skill Up’s Data Analysis in Excel course covers data organisation, cleaning and analytical techniques.

Removing duplicates is one part of developing advanced Excel skills for everyday workplace tasks, alongside formulas, data analysis and reporting.

Accurate spreadsheet management is also one of the practical computer skills worth including on your CV, particularly for office and administrative roles.

Why Is Excel Not Removing All Duplicates?

Sometimes, repeated entries remain after duplicate removal. A few checks can help you identify why.

Extra Spaces or Hidden Characters

Two entries may appear identical but contain different spaces or invisible characters.

The TRIM function removes unnecessary standard spaces, while CLEAN removes certain non-printing characters.

For example, =TRIM(A2) can help standardise text before comparing values.

Incorrect Columns Selected

If you select several comparison columns, Excel checks the combined values.

Two rows with matching customer IDs but different addresses will remain if both columns are selected and the combined records differ.

Review the column selections to make sure they match your intended criteria.

Inconsistent Data Types

Numbers stored as text, differently formatted dates or inconsistent imported values can affect duplicate comparisons.

Check the underlying values and standardise the data before repeating the process.

The UNIQUE Formula Is Not Working

A #SPILL! error usually means something is blocking the formula’s output range. Move the formula or clear the obstructing cells.

If Excel displays #NAME?, check whether your version supports the UNIQUE function.

Final Thoughts

Removing duplicates in Excel is straightforward once you choose the right method. The built-in tool works well for quick cleaning, while Advanced Filter, UNIQUE and Power Query offer flexible approaches for preserving and managing data.

If you want to build confidence with formulas, data management and more advanced spreadsheet features, Skill Up’s Microsoft Excel Complete Training provides structured online learning to help develop those skills.

If you are considering recognised training credentials, comparing Excel certification and training certificates in the UK can help you choose a suitable route.

Excel Training

Ready to Build Confident Excel Skills?

Learn formulas, data management and advanced spreadsheet tools at your own pace with Skill Up’s Microsoft Excel Complete Training.

  • Formulas, functions and data tools
  • PivotTables, Power Pivot and VBA
  • About 40 hours of flexible online learning
£329FreeSave 100%
Start Learning for Free →
★ 5/5 (557 reviews)⏱ 40 hours🎓 CPD-accredited⚡ Instant access

Frequently Asked Questions

Select your dataset, go to Data → Remove Duplicates, choose the comparison columns and click OK. Excel keeps the first matching record and removes subsequent duplicates.

Select the complete data range and open Remove Duplicates. Untick all comparison columns except the one you want Excel to check.

Yes. Advanced Filter can copy unique records elsewhere, the UNIQUE function generates a separate list, and Power Query can load cleaned data into a separate output.

Yes. Excel for the web supports duplicate removal, although its available features and interface may differ from the desktop version. Check the Data tab for the relevant options.

Use a reliable date or timestamp column to sort the dataset with the newest records first, then apply the built-in Remove Duplicates tool. Check records with identical timestamps to ensure the correct entry remains.

Select the entire dataset, then go to Data → Remove Duplicates. Choose the columns Excel should compare. This removes matching rows while keeping the remaining records together. Save a copy of your spreadsheet first.

Yes, Power Query can apply saved duplicate-removal steps whenever you refresh the query. Alternatively, the UNIQUE function can automatically update a separate list when values in its referenced source range change.

Select the cells you want to check, then go to Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values. Excel highlights repeated values so you can review them before deciding whether to delete anything.

Remove Duplicates deletes repeated records from the selected data and keeps one matching entry. The UNIQUE function creates a separate list of distinct values or rows without changing the original dataset.

Select your complete dataset and open Data → Remove Duplicates. Tick the two columns you want Excel to compare. Excel removes rows only when the values match across both selected columns.

This can happen when entries contain extra spaces, hidden characters or inconsistent data types. It may also occur if you selected the wrong comparison columns. Check the underlying values and clean inconsistent entries before trying again.

Yes. Click anywhere inside your Excel Table, open Data → Remove Duplicates, and choose the columns to compare. Excel removes matching records from the table while keeping the remaining rows and their associated information together.

November 27, 2026
top