How Do I Find Duplicates In Excel

A practical step-by-step guide to how do i find duplicates in excel, including preparation, instructions, common issues, tips, and next steps.

Published 2026-07-01 ยท Updated 2026-07-24

How Do I Find Duplicates In Excel cover image

How Do I Find Duplicates In Excel

This guide explains how to approach how do i find duplicates in excel, including the preparation, practical steps, common mistakes, and final checks that help you finish with confidence.

5-15 minutes Time needed
Easy Difficulty
Accidental data deletion Watch out for

Before You Start

Check first: Always back up your Excel file before you begin. Saving a copy of your workbook ensures you can easily revert to the original data if you make a mistake, especially when using the "Remove Duplicates" tool.

Step-by-Step Instructions

Quick Reference

Common Problems When You Find Duplicates In Excel

Even with Excel's powerful tools, you might run into a few common issues when trying to find or remove duplicates. Knowing these problems and their solutions can save you time and frustration.

Accidental Data Deletion

Problem: You used the "Remove Duplicates" tool and accidentally deleted unique data that you wanted to keep, or you deleted rows based on criteria that weren't quite right.

Solution: This is why backing up your file is crucial. If you realize you've made a mistake right after using the tool, immediately press Ctrl + Z on your keyboard or click the Undo arrow in the Quick Access Toolbar. This will reverse the last action. If you've made several changes since, close the file *without saving* and reopen your backup copy.

Duplicates Not Being Found (Formatting Issues)

Problem: You know there are duplicates, but Excel isn't highlighting or removing them. This often happens because the "duplicate" entries aren't exact matches.

Solution: Excel is very precise. Differences like extra spaces, different capitalization, or hidden characters will prevent it from recognizing an entry as a duplicate. For example, "Apple " (with a space) is not the same as "Apple".

  • Extra Spaces: Use the TRIM function in a helper column to remove leading, trailing, and excessive internal spaces. For example, =TRIM(A2).
  • Capitalization: Use PROPER, LOWER, or UPPER functions to standardize capitalization. For example, =LOWER(A2) would turn "APPLE" and "Apple" into "apple".
  • Hidden Characters: Sometimes, non-printing characters can be present. These are harder to spot and might require advanced cleanup or formulas like CLEAN.

Always clean your data first if you suspect these kinds of inconsistencies.

Incorrect Column Selection for Removal

Problem: When using "Remove Duplicates," you selected the wrong columns, leading to either too few or too many duplicates being removed.

Solution: Pay very close attention to the "Remove Duplicates" dialog box. Each checked column tells Excel that its value must match an earlier row for that row to be considered a duplicate. Uncheck columns that should *not* be used to define a duplicate. For instance, if you want to remove rows where only the "Email" is duplicated, uncheck all other columns. If you only want to remove rows where *all* columns (like Name, Address, and Phone) are identical, check all those relevant columns.

Duplicates in Hidden Rows or Columns

Problem: Your data might contain hidden rows or columns that are not included in your selection or that are causing unexpected duplicate findings.

Solution: Before you start, ensure all relevant rows and columns are visible. Select your entire sheet (click the triangle in the top-left corner above row 1 and to the left of column A), right-click any column header, and choose Unhide. Do the same for row headers. This ensures you're working with your complete dataset.

Advanced Tips for How Do I Find Duplicates In Excel

While Conditional Formatting and the "Remove Duplicates" tool are excellent for most situations, Excel offers even more sophisticated ways to handle duplicate data, especially for complex scenarios or very large datasets.

Using Helper Columns with Formulas (COUNTIF)

For a more flexible way to find and manage duplicates, you can use a helper column with the COUNTIF function. This method is non-destructive and allows you to count how many times each item appears.

In an empty column next to your data (e.g., column C if your data is in A and B), enter a formula like =COUNTIF(A:A, A2) in cell C2 and drag it down. This formula counts how many times the value in A2 appears in column A. Any row with a count greater than 1 is a duplicate. You can then sort or filter by this helper column to easily see and work with your duplicates.

For duplicates across multiple columns, you can create a unique identifier by combining columns. For example, in a helper column, use =A2&"-"&B2 to combine values from columns A and B, then use the COUNTIF formula on this new combined column.

The UNIQUE Function (Excel 365)

If you have Excel 365, the UNIQUE function is a powerful tool to quickly extract a list of unique values from a range, instantly removing duplicates without altering your original data. This is a "dynamic array" function, meaning the results will "spill" into adjacent cells.

Simply select an empty cell and type =UNIQUE(range). Replace "range" with the cells you want to check (e.g., =UNIQUE(A2:A100)). This will create a new list containing only the unique entries from your specified range. You can also specify multiple columns within the UNIQUE function for more complex unique criteria.

Leveraging Power Query for Robust Data Cleaning

For extremely large datasets, data imported from external sources, or data that requires extensive cleaning beyond just duplicate removal, Excel's Power Query is an invaluable tool. Power Query allows you to connect to various data sources, transform data, and then load it into Excel.

You can access Power Query from the Data tab > Get & Transform Data group > Get Data > From File > From Workbook (or other source). Once your data is in Power Query Editor, you can use the "Remove Duplicates" command (found under the Home tab within the Power Query Editor, in the "Reduce Rows" group) which is often more efficient for big files and allows for more complex cleaning steps before loading the final, clean data back into your spreadsheet.

Consolidating Data from Multiple Sheets

If you have similar data spread across several Excel worksheets and want to find duplicates across all of them, you'll first need to consolidate the data into a single sheet. You can do this manually by copying and pasting, or more efficiently using Power Query to combine tables from different sheets into one unified dataset. Once all your data is in one place, you can then apply the standard Conditional Formatting or "Remove Duplicates" tools as described in the steps above.

How Do I Find Duplicates In Excel FAQ

Q: Can I find duplicates in multiple Excel sheets at once?

A: Excel's built-in "Conditional Formatting" and "Remove Duplicates" tools typically work on one worksheet at a time. To find duplicates across multiple sheets, you generally need to consolidate all the relevant data into a single worksheet first. You can do this by copying and pasting, or by using more advanced tools like Power Query to combine data from different sheets into a master list, and then run the duplicate check on that combined list.

Q: What if duplicates have slightly different spellings or formatting?

A: Excel's duplicate detection tools require exact matches. If you have variations like "John Smith" and "Jon Smith" or "Apple Inc." and "Apple Inc", Excel will consider them unique. Before checking for duplicates, it's essential to clean your data. Use functions like TRIM to remove extra spaces, LOWER or UPPER to standardize capitalization, or other text functions to normalize your data. For slight spelling variations, you might need manual review or advanced fuzzy matching techniques (which are beyond basic Excel features).

Q: Does "Remove Duplicates" delete the first or last occurrence of a duplicate?

A: When you use the "Remove Duplicates" tool, Excel always keeps the first occurrence of a set of duplicate values it encounters in your selected range and deletes all subsequent identical entries. The order in which Excel processes the data is based on the original row order of your spreadsheet.

Q: Can I find duplicates and keep them, moving unique values elsewhere?

A: Yes. If you only want to identify duplicates without deleting them from your original list, Conditional Formatting is your best friend. After highlighting the duplicates, you can use the Filter by Color option (from the Data tab's Filter dropdown) to display only the duplicate rows. You can then copy these filtered duplicates to a new sheet. Conversely, if you want only the unique values, you can highlight unique values with Conditional Formatting and filter them, or use the UNIQUE function if you have Excel 365, which directly extracts only the unique items into a new range.

Q: How do I remove duplicate rows but keep a specific instance (e.g., the newest one)?

A: The "Remove Duplicates" tool keeps the first instance it finds. If you want to keep a specific instance (e.g., the newest entry based on a "Date" column), you must first sort your data by that specific column (e.g., "Date" in descending order for newest first). After sorting, when you run "Remove Duplicates," Excel will keep the "first" (which is now your desired instance due to sorting) and remove the others.

Final Checklist for How Do I Find Duplicates In Excel

Before you finalize your work or share your cleaned Excel file, run through this quick checklist to ensure everything is in order.

  • File Backed Up: Have you saved a copy of your original Excel file before making any permanent changes? This is your safety net.
  • Data Cleaned: Have you checked for and removed common inconsistencies like extra spaces, different capitalization, or hidden characters that might prevent accurate duplicate detection?
  • Duplicate Definition Clear: Do you fully understand what defines a "duplicate" in your specific dataset (e.g., matching on Name only, or Name and Email)? This impacts which columns you select for analysis.
  • Correct Range Selected: Did you select all the necessary rows and columns for either highlighting or removing duplicates?
  • Reviewed Results: After finding or removing duplicates, have you taken a moment to visually inspect the data to ensure the process worked as intended and no errors occurred?
  • Undo Option Known: Are you aware that you can immediately press Ctrl + Z to undo any accidental removals?
  • Saved Your Work: Don't forget to save your cleaned Excel workbook once you are satisfied with the results!