|
Home > Format > Conditional > Duplicates Excel Highlight Duplicate Values
|

Use Excel conditional formatting to highlight values that are duplicate entries in a specific column, or in a range of cells (multiple rows and columns).
To highlight all the duplicate values, follow these steps:

On the worksheet, all of the duplicate numbers in column A are highlighted with light red fill colour, and dark red font.

To highlight the duplicate records in a list, you can use conditional formatting. Add a formula in one column first, to string all the data together.
You can see the steps in this video, and the written instructions are below the video.
You can use Excel conditional formatting to highlight duplicate records in a list.
First, you'll set up a formula to combine all the fields into one column, then test that column for duplicates.

First, create a formula to combine the data:
Next, follow these steps, to add the conditional formatting which will format values that are duplicates:
1) Occurrences: The COUNTIF function counts the occurrences of each row's combined text, starting from row 2, and down to the formula's row. If there is more than one occurrence, the row is highlighted.
2) Character Limit: The COUNTIF function only works for 255 characters or fewer. For longer strings use the following formula:
3) First Instance: If you only want to highlight the duplicate records, and not the first instance of a duplicated record, use the following conditional formatting formula:

Use Excel conditional formatting to hide duplicate headings on a worksheet, to make a long list easier to read. This video shows you the steps, and the written instructions are below the video.
In an Excel table, each row should have all the data entered, so you can sort and filter the data correctly.
However, you can use Excel conditional formatting to hide duplicate values in the label columns, and make the list easier to read.
In the screen shot below, the table is sorted by Region.
I've formatted the Region names, so the second (and subsequent) occurrences of each region name will have white font colour. That makes it "hidden", when you're looking at the list.

Follow these steps to hide the duplicate labels in a column:
Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.
Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!
Conditional Formatting Examples
Color Scales | Data Bars | Icon Sets
Fix Conditional Formatting Extra Rules
Conditional Formatting Multiple Cells
Last updated: May 30, 2025 3:54 PM