How to find duplicate values in excel
Tutor 5 (37 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
A duplicate value in Excel is a value that appears more than once within a selected range of cells. Excel provides several methods to identify duplicates quickly.
Method 1: Using Conditional Formatting
Conditional Formatting highlights duplicate values in your data range.
-
Select the range of cells where you want to find duplicates.
-
Go to the Home tab.
-
Click on Conditional Formatting.
-
Choose Highlight Cells Rules → Duplicate Values.
-
Select the formatting style (for example, red fill with dark red text).
-
Click OK.
Excel will highlight all duplicate values in the selected range. Unique values remain unchanged.
Method 2: Using the COUNTIF Function
The COUNTIF function counts the number of times a value appears in a range. This method allows more control and can work with formulas.
-
Assume your data is in column A, from A2 to A20.
-
In cell B2, enter the formula:
=COUNTIF(A$2:A$20, A2)
-
Press Enter and drag the formula down to B20.
-
Values greater than 1 in column B are duplicates.
-
Values equal to 1 are unique.
Method 3: Using the Remove Duplicates Tool
This method identifies and removes duplicate entries.
-
Select the range or entire table.
-
Go to the Data tab.
-
Click on Remove Duplicates.
-
Select the columns to check for duplicates.
-
Click OK.
Excel will remove duplicates and display a message showing how many duplicate values were removed and how many unique values remain.
Method 4: Using the UNIQUE Function (Excel 365 or Excel 2021)
The UNIQUE function can generate a list of unique values, helping to identify duplicates indirectly.
-
Assume your data is in column A (A2:A20).
-
In another column, enter:
=UNIQUE(A2:A20)
-
Press Enter.
-
Values not included in the result are duplicates.
-
You can combine this with
COUNTIFto highlight duplicates dynamically.
Key Notes
-
Conditional Formatting highlights duplicates visually but does not remove them.
-
COUNTIFprovides a numerical way to detect duplicates, useful in large datasets. -
Remove Duplicatespermanently deletes duplicates, so backup your data first. -
UNIQUEis dynamic and updates automatically if the source data changes.
This approach ensures all duplicates in Excel can be found and managed efficiently.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Excel chart axis labels not showing
Answers · 1
Excel chart title not showing
Answers · 1
Excel chart labels not showing
Answers · 1
Excel chart not showing data
Answers · 1