
Find Duplicates and Outliers with Conditional Formatting
Find Duplicates and Outliers with Conditional Formatting
Two of the most practical uses of conditional formatting in everyday data work are finding duplicate entries and spotting outliers that fall outside expected ranges. Both are fast to set up and immediately improve your data quality awareness.
Highlighting Duplicate Values
Excel can automatically highlight every cell in a range that appears more than once:
- Select the column or range you want to check.
- Go to Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values.
- In the dialog, choose Duplicate (or Unique to highlight one-of-a-kind values instead).
- Pick a highlight color and click OK.
Every duplicate value is immediately highlighted. This is particularly useful for checking ID columns, email address lists, or product codes for accidental repeats.
Finding True Row Duplicates
The built-in Duplicate Values rule checks individual cell values, not full row duplicates. To find rows where multiple columns match, use a helper column with a formula that concatenates the key columns into a single value (for example, combining first name, last name, and email into one text string), then apply the Duplicate Values rule to that helper column.
Highlighting Outliers with Top/Bottom Rules
Go to Conditional Formatting → Top/Bottom Rules → Top 10 Items (or Bottom 10 Items). Set the number to a value that makes sense for your data — highlighting the top 5% or bottom 5% quickly reveals the extremes in any dataset.
Standard Deviation Outliers with Formula Rules
For a more statistically rigorous approach, create a formula-based rule that highlights values more than two standard deviations from the mean. Use a formula combining AVERAGE and STDEV to define the boundary, then flag any cell that falls outside it. This is a professional-level data quality check that identifies genuine statistical outliers.
Cleaning Up After Review
After reviewing duplicates and outliers, remove the conditional formatting: go to Conditional Formatting → Clear Rules → Clear Rules from Selected Cells. Your data remains unchanged — only the highlighting is removed.