EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • All Courses
    • All Specializations
  • Blog
  • Enterprise
  • Free Courses
  • All Courses
  • All Specializations
  • Log in
  • Sign Up
Home Excel Excel Resources Excel Tips Remove Duplicates in Excel
 

Remove Duplicates in Excel

Madhuri Thakur
Article byMadhuri Thakur

Updated July 3, 2023

What is the Remove Duplicates in Excel Feature?

Remove Duplicates is an Excel feature that searches for repeated data in the selected cell range and performs the delete operation to provide a data set with unique values.

For example, the image below illustrates a table with multiple entries for James and Alan. When we use the Remove Duplicates feature in Excel, we get the table with unique values.

 

 

Remove Duplicates in Excel

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

This feature can remove duplicates from a large accounting database while preparing sales reports or data with repeated entries.

Key Highlights

  • We can use conditional formatting to highlight duplicate values.
  • To remove duplicates, we must filter the highlighted values and manually delete them.
  • The Remove Duplicates in Excel feature permanently deletes (removes) duplicate values from a worksheet.
  • Excel cannot find and remove duplicates from the area section of a Pivot Table report

How to Remove Duplicates in Excel?

You can download this Remove Duplicates in Excel here – Remove Duplicates in Excel

#1 Using Conditional Formatting

The table below shows the names of Sales executives, their Client IDs, and sales. We want to find any duplicate values in the data using conditional formatting.

Using Conditional Formatting

Solution:
Step 1: Select the data table
Step 2: Go to the Home Tab
Step 3: Go to Conditional formatting > Highlight Cells Rules  > Duplicate Values

Using Conditional Formatting step 3

A Duplicate values dialog box will appear
Step 4: Select Duplicate from the drop-down list as shown below

Using Conditional Formatting step 4

Step 5: Choose the desired highlight color

Using Conditional Formatting step 5

Step 6: Click on OK

Using Conditional Formatting step 6

The duplicate values are highlighted as shown below

Using Conditional Formatting final

#2 Using the Filter Option to Remove Duplicates in Excel

The below table shows highlighted duplicate values. To remove the duplicate rows, follow the given steps.

Using the Filter option to remove duplicates in Excel

Step 1: Select the data table
Step 2: Go to Data Tab
Step 3: Under the Sort & Filter Group, select the Filter option

Using the Filter option to remove duplicates in Excel step 3

A filter is applied to all the columns

Using the Filter option to remove duplicates in Excel step 3.1

Step 4: Click the filter icon of column B (Client ID)
Step 5: Click on Filter by Color
Step 6: Select Filter by Cell Color

Using the Filter option to remove duplicates in Excel step 6

The highlighted (duplicate) rows are filtered as shown below

Using the Filter option to remove duplicates in Excel step 6.1

Step 7: Delete the duplicate rows manually to get Unique values

Using the Filter option to remove duplicates in Excel step 7

Shortcut: To apply a filter, select the desired table range and press the keys CTRL + SHIFT + L together.

#3 Using the Remove Duplicates Feature in Excel

The table below displays a list of customers, their Total Bill, and the number of items purchased. We want to remove duplicate entries from the list using the Remove Duplicates feature.

Using the Remove Duplicates feature in Excel

Solution:
Step 1: Select the data table
Step 2: Go to Data Tab
Step 3: Click the Remove Duplicates icon under the Data Tools Tab.

Using the Remove Duplicates feature in Excel step 3

A Remove Duplicates dialog box appears.
Step 4: Select the column headings (customer Name) by which the duplicate value needs to be searched
Step 5: Click OK

Using the Remove Duplicates feature in Excel step 5

A Microsoft Excel pop-up indicates the number of duplicate values found and removed; and the number of remaining unique values.
Step 6: Click OK

Using the Remove Duplicates feature in Excel step 6

All the duplicate values are removed, and the table now consists of unique values.

Using the Remove Duplicates feature in Excel 6.1

#4 Using the COUNTIF Function to Find the Number of Duplicates

We can find the number of duplicate values in a given data set using the COUNTIF in Excel. Consider the following example to understand how it works.

The table below shows the Brand names of four-wheelers with the Model name and colors. We want to find the number of duplicate values using the COUNTIF function in Excel.

Using the COUNTIF function to find the Number of Duplicates

Solution:
Step1: Place the cursor in cell D6 and enter the formula,

=COUNTIF(A6:A16, A6)

  • A6:A16 – It is the range across which we want to find the duplicate data
  • A6 – It indicates the first value in the range A6:A16

step 1 Using the COUNTIF function to find the Number of Duplicates

Step 2: Press Enter key to get the total number of duplicates (3) for the brand Ford.

step 2 Using the COUNTIF function to find the Number of Duplicates

Step 3: Drag the formula in the remaining cells to get the number of duplicates as shown below

step 3 Using the COUNTIF function to find the Number of Duplicates

#5 Using Advanced Filter to Remove Duplicates in Excel

The table below shows the brand name of four-wheelers and their model name and color. Using Excel’s Advanced Filter, we want to remove the duplicate values.

Using Advanced Filter to Remove Duplicates in Excel

Solution:
Step 1: Select the data range
Step 2: Go to Data Tab
Step 3: Select the Advanced option under the Sort & Filter Group.

step 3 Using Advanced Filter to Remove Duplicates in Excel

An Advanced Filter dialog box appears
Step 4: Select the Copy to another location option
Step 5: Click the cell in the worksheet where the new(unique) data table needs to be created. This will fill the section Copy to.
Step 6: Click the checkbox Unique records only.

step 6 Using Advanced Filter to Remove Duplicates in Excel

This results in a table with unique data, as shown below

step 6.1 Using Advanced Filter to Remove Duplicates in Excel

#6 Using the Power Query Tool in Excel to Remove Duplicates

You can integrate data from different sources, clean up your data, and transform it using Excel’s Power Query feature. Duplicates in Excel can be easily removed using this utility.

Step 1: Choose a cell or region, then find the Data Tab’s – Get & Transform Data section and click the From Table/Range option.

Using the Power Query Tool in Excel to Remove Duplicates

A dialogue window for creating a power query table will appear on clicking.
Step 2: Verify that the stated range of values is accurate.

Using the Power Query Tool Step 2

Step 3: Select OK.
The Power Query editor window opens.

Using the Power Query Tool in Excel to Remove Duplicates Step 3

We now have two choices. Based on the following, copies can be eliminated:

  • One or more columns
  • Entire table

Step 4: Right-click on the relevant ‘column heading’ to delete duplicate entries based on one or more columns. Using the SHIFT button, we can pick multiple columns. In this example, we have selected the Sales Executive column.

Using the Power Query Tool in Excel to Remove Duplicates Step 4

Step 5: Select the “Remove Duplicates” choice after that.

The data will be free of duplicate values in this manner.

Using the Power Query Tool in Excel to Remove Duplicates Step 5

Step 6: Clicking the “Close & Load” choice in the upper left corner will load the data onto the spreadsheet.

Using the Power Query Tool in Excel to Remove Duplicates Step 6

The data will be visible as per the below screenshot.

Using the Power Query Tool in Excel to Remove Duplicates Step 6-2

Things to Remember

  • We can remove duplicates from Google Sheets using the Data Cleanup option
  • It is important to remove any subtotal before using the feature Remove Duplicates in Excel.
  • It is recommended to make a copy of your worksheet before trying to remove duplicate data.

Frequently Asked Questions (FAQs)

Q1. How do I quickly delete duplicates in Google Sheets?

Answer:  To delete duplicates in Google Sheets, follow these steps:
Step 1: Select the data table
Step 2: Go To Data > Data cleanup > Remove duplicates

FAQ 1

Q2. Where is the removal of duplicates in Excel?

Answer: To find the Remove Duplicates option in Excel, follow these steps:
Step 1: Go to the Data Tab of the Excel toolbar
Step 2: Under the Data Tools Group, click on the Remove Duplicates icon (option), as shown below

FAQ 2

Q3. What is the shortcut to finding duplicates in Excel?

Answer: To find and highlight duplicates in Excel, press the below keys one by one,

ALT + H + L + H + D.

When we press the above keys, the duplicate values (rows) will be highlighted in the provided color. The keys function as a shortcut for the conditional formatting features in Excel.

Q4. How do I find and keep only duplicates in Excel?

Answer: To find and keep the duplicate values in Excel, follow the below steps:
Step 1: Select the data table
Step 2: Go to the Home Tab
Step 3: Under the Styles Group, go to,

Conditional Formatting > Highlight Cells Rules > Duplicate Values

FAQ 4

A Duplicate Values dialog box will appear,

Step 4: Select the Duplicate option from the drop-down list and choose the desired highlight color and Click OK

Step 4

All the duplicate values in the table will be highlighted.

Step 5: Select the data table and go to Data Tab
Step 6: Under the Sort & Filter Group, click on Filter

This will apply a filter to the data set, as shown below

step 6

Step 7: Click on the filter icon of column B (Emp Name)
Step 8: Click on Filter by Color
Step 9: Select Filter by Cell Color

step 9

The highlighted duplicate values will be filtered as shown below

9.1

Recommended Articles

The above article explains how we can find and remove duplicates in Excel worksheets. To learn more about such useful features of Excel, EDUCBA recommends the below-given articles.

  1. COUNTIF with Multiple Criteria
  2. Relative Reference in Excel
  3. Insert Rows in Excel
Primary Sidebar
Footer
Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download Remove Duplicates in Excel

EDUCBA Login

Forgot Password?

EDUCBA

Download Remove Duplicates in Excel

EDUCBA

डाउनलोड Remove Duplicates in Excel

🚀 Limited Time Offer! - 🎁 ENROLL NOW