Open In App

How to Find and Remove Duplicates in Excel

Last Updated: 16 Dec, 2024

N

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

Removing duplicates in Excel is essential when cleaning up data to ensure accuracy and avoid redundancy. Whether you’re working with small datasets or large spreadsheets, Excel provides built-in tools and methods to help you identify and remove duplicates effectively. This guide will walk you through all the methods, with tips for beginners and advanced users.

1. Using the Built-In Remove Duplicates Tool

The Remove Duplicates tool in Excel is one of the simplest and most efficient methods for cleaning up your data. Follow the below steps to remove duplicates in excel using the built-in remove duplicate tool.

Step 1: Open Excel Spreadsheet and Select Your Data

  • Highlight the range of data where you want to find duplicates.
  • Include column headers if applicable.
image-

Select the Data

Step 2: Go to the Ribbon

Navigate to Data > Remove Duplicates in the toolbar

image

Select Data >> Click on Remove Duplicates

Step 3: Choose Columns to Check Duplicates

  • In the dialog box, select the columns you want to check for duplicates.
  • If your data has headers, check the “My data has headers” box.
  • Here, we have selected columns ID, Name and Age.
image

Select Columns to Check for Duplicates

Step 4: Remove Duplicates

  • Click OK.
  • Excel will remove duplicates and display a message showing how many duplicates were removed and how many unique values remain.
image

Preview Results

2. Remove Duplicates Using the Advanced Filter Option

The Advanced Filter option in Excel is a versatile tool that allows you to remove duplicates while preserving unique records. This method is particularly useful when you want to filter duplicates and extract unique data into a separate location.

Step 1: Prepare your Data Set

Open Microsoft Excel and input your data into the sheet. Ensure your dataset is clean and includes clear headers. In the given example we have ID, Name and Age.

image

Prepare your Data

Step 2: Go to the “Data” Tab and Select “Advanced” Option

Navigate to the Data tab on the Excel ribbon and Click on Advanced option in the Sort & Filter group.

image-

Go to Data Tab>> Select “Advanced ” Option

Step 3: Configure the Advanced Filter

Once you click Advanced, a dialog box will appear with the following options:

Choose the Action

  • Filter the List, In-Place: Use this option if you want to display the filtered results directly within your current dataset.
  • Copy to Another Location: Choose this option to extract the filtered data to a separate location (preferred for duplicates extraction).

Specify the List Range

  • In the List Range field, highlight the column or dataset you want to filter for duplicates.
  • Ensure you include headers in the selection.

Set Criteria and Click OK

Check the box labeled Unique Records Only. This will ensure only unique values are extracted or displayed.

image

Set the Criteria

Step 4: Preview the Results

Excel will extract the unique records to the specified location.

Note: This method is only useful when you need to keep unique records only.

image

Duplicates Removed

3. Using the COUNTIF Function to Find Duplicates

For more control or advanced data handling, use the COUNTIF function to identify duplicates manually.

Step 1: Combine Data Using the Concatenate Operator

  • Create a new column and name it Combined.
  • Use the & operator to combine data from all relevant columns into a single string.
    • In the below example, we are combining A2, B2, and C2.
=A2 & B2 & C2
  • Drag the formula down to combine all rows.
  • This combined column acts as a unique identifier for each row.
image

Combine the Data

Step 2: Count Duplicates Using the COUNTIF Function

  • Create another column and name it Count.
  • Use the COUNTIF function to count how many times each combined entry appears in the dataset.

Formula:

=COUNTIF(D$2:D$11, D2)

Here:

  • C$2:C$6 is the range of the combined column.
  • C2 is the cell being checked for duplicates.
  • Drag the formula down to populate the count for all rows.
    • Any row with a count greater than 1 is a duplicate.
image

Enter the OUNTIF Formula

Step 3: Apply the Filter

  • Select Column E by clicking on the column header or highlighting the data range.
  • Navigate to the Data Tab on the Excel ribbon.
  • Click on the Filter Icon in the Sort & Filter group to apply a filter to the selected column.

Alternate Method:

After identifying duplicates in your dataset, you can use Excel’s Built-in Remove Duplicates Tool (explained in Method 1) to quickly eliminate the duplicates. This approach ensures efficient removal of repeated entries while retaining unique values

image

Select the Column >> Go to Data Tab>>Click on the Filter Icon

Step 4: Click on the Filter Dropdown Icon and Check the box next to 1

Click on the small filter dropdown icon in the header of Column E.

In the filter menu:

  • Uncheck Select All to clear all selections.
  • Check the box next to 1 to filter only for rows containing the value 1.
  • Click OK to apply the filter and view the filtered results.
image

Filter Drop-Down Icon>> Tick the Check Box 1 >>Press OK

Step 5: Preview Results

Now you can see only the Unique Values.

image-

Preview Results

4. Using Power Query (Advanced Method)

For large datasets or complex scenarios, Power Query provides a powerful way to clean and transform data.

Step 1: Go to the Data Tab and Select From Table

Go to Data tab given at the top and under Get & Transform section select From Table option.

 Remove Duplicates in Excel

Go to Data Tab >> Click “From Table”

Step 2: Enable “My table has headers” and Click Ok

A pop-up window will appear on the screen. In the window, tick mark the check on My table has headers and click on Ok button.

 Remove Duplicates in Excel

Check on “My table has Header” >> Click “Ok”

Step 3: Power Query Editor Displayed

Now, the Power Query Editor opens on the screen.

 Remove Duplicates in Excel

Power Query editor appears

Step 4: Remove Duplicates

  • In the Power Query Editor, select the columns you want to check for duplicates.
  • Go to Home > Remove Rows > Remove Duplicates.
 Remove Duplicates in Excel

Select Remove Duplicates

Step 5: Load Cleaned Data Back to Excel

Click Close & Load to insert the cleaned data into a new worksheet.

 Remove Duplicates in Excel

Preview Changes

5. Highlighting Duplicates Using Conditional Formatting

If you want to identify duplicates without removing them:

Note: While it doesn’t automatically remove duplicates, it allows you to identify them so you can delete them manually. Follow these steps:

Step 1: Select the Data Range

Highlight the range of cells to check for duplicates.

Step 2: Apply Conditional Formatting

Go to Home > Conditional Formatting > Highlight Cell Rules > Duplicate Values.

image

Go to Home Tab>>Select Conditional formatting>>Click on Highlight Cell rules >> Choose Duplicate Values

Step 3: Customize Formatting > Click OK

  • Choose how you want duplicates to be highlighted (e.g., red fill, bold text).
  • Excel will automatically highlight all duplicate values in your selection.
image

Preview the Highlighted Values

Step 4: Manually Review and Remove Duplicates

  • Review the highlighted cells to identify duplicate entries.
  • Manually delete duplicate rows as needed:
  • Right-click on a row with duplicate data.
  • Select Delete Row to remove it.
  • Repeat the process until all duplicates are removed.
image

Right-Click on the Duplicate row and Select Delete

Step 5: Preview Results

Now, all the duplicate values has been removed manually.

image-

Preview Results

6. Removing Duplicate Rows with Pivot Tables

Pivot Tables in Excel are a powerful tool to identify and count duplicates easily. They help organize and summarize large datasets into a clear format, making it simple to spot repeated values. Here’s how to use Pivot Tables to remove duplicates:

Step 1: Prepare Your Dataset

Before creating a Pivot Table, ensure your dataset is clean.

image-

Prepare your Data

Step 2: Select the Data, Go to Insert Tab and Select Pivot Table

Highlight the column containing the data you want to analyze for duplicates. If your dataset contains multiple columns, select the entire dataset to maintain context. Go to Insert Tab and Select Pivot Table:

image

Select the Data>> Go to Insert Icon >>Select Pivot Table

Step 3: Configure the Pivot Table

Once the Pivot Table is inserted, a blank table will appear along with the Pivot Table Fields pane.

Drag the Column into Rows

  • Drag the column containing duplicate-prone data (e.g., “Data”) into the Rows area.
  • This will create a list of unique values from that column.

Drag the Same Column into Values

  • Drag the same column into the Values area.
  • By default, the Values area aggregates data using “Sum.” Change this to “Count”
image

Drag the Column to Rows and Values Filed

Step 4: Identify and Remove Duplicates

  • Unique values will be listed in the Rows area.
  • The Values area will display the count of each row’s occurrences.

Identify duplicates:

  • Any value with a count greater than 1 is a duplicate.
  • Manually remove duplicates from the original dataset by filtering or sorting based on the duplicate criteria identified in the Pivot Table.
image

Preview the Results

Using Pivot Tables to find duplicates is a quick and efficient method for organizing and analyzing data. It not only identifies duplicates but also provides a count of how many times each value occurs, making it a versatile solution for data cleanup and reporting tasks.

7. Using Third-Party Tools

Third-party tools designed for Excel provide advanced features to efficiently manage duplicates. These tools often come with specialized options such as case-sensitive duplicate checks, advanced filtering, and automated duplicate removal across multiple sheets. They are especially useful for handling large datasets and offer additional customization beyond Excel’s built-in functionalities, saving time and effort in data cleaning and analysis.

8. Manually Identifying and Removing Duplicates

For smaller datasets, you can manually find and delete duplicates.

Step 1: Sort Data

Use Data > Sort to organize data alphabetically or numerically.

Step 2: Manually Compare Rows:

  • Scroll through the sorted data to find duplicates.
  • Delete rows that are duplicates.

Tips and Best Practices

  1. Backup Your Data: Always create a copy of your data before removing duplicates, as changes cannot always be undone.
  2. Use Filters: Apply filters to narrow down your data and locate duplicates easily.
  3. Check for Hidden Characters: Duplicates may not match exactly due to extra spaces or hidden characters. Use the TRIM function to clean data: =TRIM(A2)
  4. Case Sensitivity: Excel’s built-in tools are not case-sensitive. Use Power Query for case-sensitive duplicate removal.
  5. Combine Methods: Use conditional formatting to highlight duplicates before removing them, ensuring no critical data is lost.

Conclusion

Finding and removing duplicates in Excel is a vital skill for maintaining clean and accurate datasets. With options ranging from simple built-in tools to advanced methods like Power Query, Excel provides solutions for every user. Use this guide to confidently identify and manage duplicates in your spreadsheets while preserving data integrity.

How to Remove Duplicates in Excel – FAQs

How to easily remove duplicates in Excel?

Remove duplicates from excel easily by following these steps:

  • Open Your Excel Workbook
  • Select your Data
  • Navigate to the Data Tab
  • Remove Duplicates
  • Choose Columns to Check for Duplicates

What is the shortcuts of removing duplicates from a column in Excel?

Shortcut : To access the Remove Duplicates command on the Data tab on the Ribbon:

Press Alt > then press A > then press M .

How do I remove duplicates in Excel with multiple conditions?

  • Open Your Workbook:.
  • Select Your Data Range:
  • Navigate to the Data Tab:
  • Remove Duplicates:
  • Select Columns for Multiple Conditions:
  • Confirm and Remove

How to remove duplicates in excel but keep one?

Use the “Remove Duplicates” feature in Excel: Go to the Data tab, click “Remove Duplicates“, select the columns to check, and click OK. This keeps one instance of each duplicate row and removes the rest.

Why am I not able to remove duplicates in Excel?

  • Open Your Workbook:
  • Select Your Data Range:
  • Navigate to the Data Tab:
  • Remove Duplicates:
  • Select Columns to Check for Duplicates:
  • Confirm and Remove


N

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

How to Remove Duplicates From Array Using VBA in Excel?

article_img
Excel VBA code to remove duplicates from a given range of cells. In the below data set we have given a list of 15 numbers in “Column A” range A1:A15. Need to remove duplicates and place unique numbers in column B. Sample Data: Cells A1:A15 Sample Data Final Output: VBA Code to remove duplicates and place into next column (B) Declare Variables: VariablesData TypeCommentsnonDuplicateBooleanIt is a Boolean value (True/False).uNoIntegerCount no of Unique items in column BcolAIntegerIteration column A cellscolBIntegerIteration column B cells'Variable Declarations Dim nonDuplicate As Boolean, uNo As Integer, colA As Integer, colB As Integer Always first value will be unique, So A1 place to cell B1 'Place first value to B1 Cells(1, 2).Value = Cells(1, 1).Value Initialize variables: 'Initialize uNo = 1 since first number is already placed in column B; Assign True to the variable nonDuplicate uNo = 1 nonDuplicate= True Since the first number is already placed in cell B1, Loop starts from A2 to A15. Take each number from Column A and check with Column B (unique range) 'Use for loop to check each number from A2 to A15 For colA = 2 To 15 For colB = 1 To uNo if the number is already placed in
Read More

How to Find the Nth Largest Value With Duplicates in Excel?

article_img
In Microsoft Excel, in order to find Nth Largest value (with duplicates), an array formula based on MAX and IF functions is used. First, we find the largest value of range using the MAX function. In this case, the range is from B5 to B12. = MAX(range) Let the cell having the largest value be E5 i.e. 45. Once we find the largest value, we simply use the formula given below to check all values in the taken range against the "last largest value". As this is an array formula, we must enter it with Ctrl+Shift+Enter. = MAX(IF(range < E5, range)) range: Range of cells Explanation: After applying the above formula, values lower than the last largest remain the same but any value greater than the last largest becomes FALSE. As the formula gets copied down the column, each row (in this case E5) increments, hence MAX and IF return a new array, forming the Nth largest number series. Note: LARGE function is not used as it returns duplicate values if they exist in data.
Read More

How to Find Duplicates in Excel (2025 Step-by-Step Guide)

article_img
Managing data effectively in Excel often requires identifying duplicate entries, which can clutter your analysis or lead to inaccuracies. Knowing how to find duplicates in Excel is essential for maintaining data integrity. From using COUNTIF to find duplicates to applying advanced filters and PivotTables, this guide covers step-by-step methods to locate duplicates and even identify unique values for improved data clarity.Find Duplicates in ExcelHow to Identify Duplicates in Excel (4 Methods)Are you looking for methods to find duplicate in Excel, below are the methods to search duplicates in excel spreadsheet:Method 1: Finding Duplicates in Excel using Conditional FormattingExcel Conditional Formatting Duplicates offers a fast and efficient way to visually identify duplicates in Excel. By highlighting duplicate values with colors, it simplifies spotting them within your dataset. This method allows you to identify duplicates without deleting them. Follow these easy steps to utilize this feature effectively.Step 1: Open MS Excel and Enter the DataOpen MS Excel Spreadsheet and Enter Data into the Sheet. Before finding the duplicates, it's essential to ensure that the data is properly f
Read More

How to Compare Two Columns and Delete Duplicates in Excel?

Many a time while working with Microsoft Excel or MS Excel or Excel, we came up with a situation where we have duplicate values in columns and rows and the first task is to remove all the duplicates before proceeding to the next step. But before removing duplicates, we need to find out where these duplicates are present and for that we need to compare columns and rows to find the duplicate entry. After the duplicate values are found, we need to highlight them and remove them. The above process will be explained using excel commands. Comparing two columns in MS ExcelFollow the following steps to compare two columns in excel: Note: This tutorial is for MS Excel 2013. Steps can be different or the same for other versions of Excel. Step 1: Open the Excel file on which you want to compare the columns. For Example, your data can look like this Step 2: Select the columns and go to the Home tab > Style group> Conditional Formatting i.e first click on Home tab, then go to Style group and then select Conditional Formatting (as shown in the image below). Conditional formatting allows users to automatically apply formattings such as changing colors, data bars, and icons in the cells base
Read More

Lookup Top N Values Ignoring Duplicates in Excel

Excel is one of the best ways to organize and present a large amount of data. However, finding data in excel requires certain commands. In order to lookup top N values ignoring duplicates, it is important to first learn how to find top N values in Excel. Top N values mean finding the largest value, second largest value, and so on. However, if we want to ignore the Duplicate values, the ARRAY function comes into play, that is, the formula will change and ARRAY will be involved. Let's now understand in detail with proper steps how to look up top N values ignore duplicates, Lookup Top N Values without Ignoring Duplicates in ExcelLet's first understand how to find the top N values, Suppose there is data for the marks of a student in 8 subjects, the marks are out of 100, Step 1: In order to find the largest value, use formula, =large(B1:B8,1) Step 2: Now since 3 of the subjects have 96, if the second and third largest are found, they will be 96 only, which is a duplicate number. Lookup Top N Values Ignoring Duplicates in ExcelStep 1: In order to find the Top N values ignoring duplicates in excel, use the ARRAY formula for the second-highest value without duplicate, =ArrayFormula(large(i
Read More

How to Count Duplicates in a Column in Excel (All Methods)

article_img
Counting duplicates in Excel is a crucial task when analyzing data, managing large datasets, or spotting repetitive entries. Whether you're working on sales reports, attendance sheets, or large-scale inventory lists, identifying and counting duplicates helps maintain data accuracy and improve efficiency.In this guide, we’ll explore all the methods to count duplicates in a column in Excel, step-by-step. From beginner-friendly techniques to more advanced solutions, you'll learn how to clean, analyze, and organize your data effectively.Find Duplicates in a Column in ExcelWhether you’re a data analyst, business professional, or student, mastering these methods will save you time and improve your Excel skills.Using the COUNTIF Function The COUNTIF function in Excel is a powerful tool for counting duplicates in a dataset. This function allows you to count how many times a specific value appears in a column or range of cells. Here's a step-by-step guide to using COUNTIF to count duplicates in Excel.Step 1: Open MS Excel and Prepare Your DataEnsure your data is organized in a single column without empty rows or irrelevant data that might interfere with the count.Prepare your DataStep 2: Se
Read More

Editing Excel Macros in Excel

article_img
Excel Macro is a set of actions that can be recorded, saved, used multiple times. This feature saves us a lot of time when dealing with repetitive tasks and huge data sets. We can always make changes to an existing Macro in Excel. There are two ways to record and run macros: Excel Commands Excel Visual Basic for Applications(VBA).1. Copying a Macro Code We can reuse the existing macro code while creating new Macros. For example, if you have existing macros created using the record function, we can reuse the code to write new macros. To open the code follow the below steps: Select Tools --> Macros --> Visual Basic Editor. Copy code from the existing macros(use Command + C) and paste(use Command + V) in the new macro2. Renaming a Macro Follow the below steps to rename a Macro in Excel: Select Tools --> Macros --> Visual Basic Editor. Select name on the left plane.Edit the name.3. Deleting a Macro Follow the below steps to delete a macro in Excel: Select Tools --> Macros --> Macros... Select the macro to be deleted. Click on the minus(-) symbol at the bottom.Select yes to delete the macro.
Read More

Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024

article_img
Are you ready to unlock a world of opportunities with Microsoft Excel? In today’s data-driven job market, mastering Excel is essential for launching a successful career, whether you're a fresher or an experienced professional. In this article, we will cover the high-paying Excel jobs available in 2024, including crucial roles like data analyst, business analyst, and many more. We'll explore the qualifications needed for these positions, along with salary estimations to help you understand your earning potential. Whether you’re looking for Excel jobs for freshers or seasoned professionals, we’ll also dive into options for Excel freelancing jobs and work-from-home jobs in Excel. Equip yourself with the knowledge to excel in your career and take the first step toward a lucrative future!Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024Table of ContentWhy choose a career in ExcelWhy Excel Skills Are Essential for Your CareerEssential Excel Skills Required to Boost Your Resume Best Microsoft Excel High-Paying JobsFinancial AnalystsData AnalystAdministrative Assistant Accountants Project ManagersManagement ConsultantRetail Store ManagersBusiness Analyst Market Research A
Read More

Excel VLOOKUP Function - Excel Guide for Beginners

article_img
How to do Vlookup in Excel - Quick StepsPrepare Your DataEnter the VLOOKUP Formula >>Press EnterUse a Cell Reference for Flexibility Copy the Formula for Multiple RowsThe VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you're new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task.Excel VLOOKUP FunctionWhat is the VLOOKUP Function in ExcelThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.Syntax of VLOOKUP FormulaVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Arguments:1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code).
Read More

AI in Excel: Top 20 Excel AI Tools in 2025 (Free/Paid)

article_img
The integration of AI in Excel is transforming the way professionals manage, analyze, and visualize data. Whether you're handling large datasets, performing financial analysis, or automating repetitive tasks, AI-powered tools can significantly improve efficiency and accuracy. In 2025, advanced Excel AI tools are making complex tasks easier by offering features like data cleaning, predictive analytics, smart automation, and AI-driven insights.In this guide, we’ve gathered a list of the top 20 Excel AI tools for 2025 that are reshaping how users interact with Excel.Table of ContentBest AI Tool in Excel: Top Picks for 2025Top 10 Free Excel AI Tools in 2025Top 10 Excel AI ToolsAI in Excel: OverviewIn Excel, an AI tool (Artificial Intelligence tool) refers to an add-in or extension that leverages artificial intelligence to enhance your spreadsheet experience. These tools can automate tasks, improve data analysis, and generally make you more productive.Excel has always been a powerful tool for data analysis, but with the integration of AI tools, it has transformed into a smarter, more intuitive platform.Best AI Tool in Excel: Top Picks for 2025Explore the below AI tools designed for auto
Read More
three90RightbarBannerImg