How to find and highlight duplicates in excel
Tutor 5 (40 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Finding duplicates in Excel means Excel detects repeated values in a selected range and applies a visual marker to these entries through Conditional Formatting. To find duplicates in Excel, follow these steps:
-
Select the range of cells you want to examine.
-
Go to Home on the Ribbon.
-
Select Conditional Formatting.
-
Select Highlight Cells Rules.
-
Select Duplicate Values.
-
Choose the formatting style from the dropdown menu.
-
Select OK to apply the formatting.
Excel highlights all cells with repeated content in the selected range.
Windows vs. Mac Differences
Excel for Windows and Excel for Mac use the same path for this feature.
The Ribbon layout differs visually, yet the location of Conditional Formatting → Highlight Cells Rules → Duplicate Values remains identical.
Why does Excel highlight duplicates?
Excel highlights duplicates because Conditional Formatting applies rule-based formats to cell values based on their evaluation results. Repeated values satisfy the duplicate rule and receive the assigned highlight color.
How to highlight duplicates across multiple columns
To highlight duplicates across columns, follow these steps:
-
Select all relevant columns.
-
Go to Home → Conditional Formatting.
-
Select Highlight Cells Rules → Duplicate Values.
-
Confirm the formatting style.
-
Select OK.
Excel treats the entire selection as one dataset and highlights any repeated value across all selected columns.
How to find duplicates using advanced rules
Excel supports custom formulas in Conditional Formatting for precision control. These rules detect duplicates based on defined criteria such as full-row matches or partial-column checks.
Example: Highlight entire rows with duplicate entries in one column
-
Select all rows you want to format.
-
Go to Conditional Formatting → New Rule.
-
Select Use a formula to determine which cells to format.
-
Enter the formula without nested statements:
=COUNTIF($A:$A, A1) > 1
-
Set the format style.
-
Select OK.
The rule checks the frequency of each value in column A and highlights all rows with duplicate values.
How to remove duplicate highlighting
You remove duplicate highlighting by clearing the rules.
-
Select the formatted range.
-
Go to Conditional Formatting.
-
Select Clear Rules.
-
Select Clear Rules from Selected Cells or Clear Rules from Entire Sheet.
How to find duplicates without highlighting
Excel identifies duplicates without color by using filtering.
-
Select the column with potential duplicates.
-
Go to Data → Advanced.
-
Check Unique records only.
-
Select OK.
The filter isolates unique values and excludes repeated ones.
What are the accuracy considerations when finding duplicates?
Excel treats duplicates based on exact matches. The detection depends on these attributes:
-
Text-case sensitivity: Excel treats “Alpha” and “alpha” as identical.
-
Leading or trailing spaces: Excel counts “Data” and “Data ” as different values.
-
Formatting differences: Excel compares raw cell values, not their visible formats.
-
Percentage and date values: Excel evaluates underlying numeric codes.
Excel identifies duplicates accurately when data is normalized by trimming spaces and converting inconsistent formats.
Best practices for duplicate management
-
Use TRIM and CLEAN before running duplicate checks to reduce errors.
-
Convert data types consistently using Text to Columns.
-
Scan large lists by column rather than full-table ranges.
-
Create a backup sheet before applying deletion rules.
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Why are margins not working
Answers · 1
Why is page layout not working
Answers · 1
How to print repeated rows on top in excel
Answers · 1
How to print header on each page
Answers · 1