# Highlight duplicate values

In the previous post, we talked that how to highlight duplicate rows based on a certain number in excel. And this post will teach you how to** highlight duplicate values** in the range of cells in excel. Normally, you may be need to identify duplicate values with a range of cells in Excel. And there is one of the fasted way that is using conditional formatting feature in Microsoft Excel.

## Highlight duplicate values

You can easily identify duplicate values in a list, just do the following:

**1#** Select the range of cells that you want to check (or you can click one single cell firstly, then press shortcut CTRL +A)

**2#** On **HOME** Tab, click **Conditional Formatting** command in the** styles** group.

**3#** click **Highlight Cells Rules**, then select **Duplicate Values** from the drop-down menu list.

**4#** select formatting styles, then click **OK **button to identify the duplicate values.

**5# **you will see that the duplicate values in the range will now be highlighted.

## Highlight triplicate values

The above way will identify the duplicate values including duplicates, triplicates, or quadruplicates. If you only want to highlight triplicate values in your data, how to do it? At this time, you may be need to create your own formula to apply the conditional formatting.

Assuming that you want to highlight triplicate values in the range of cells A2:C4, then you can use the following formula based on the COUNTIF function:

=COUNTIF($A$2:$C$6,A2)=3

This formula will check if the value of Cell A2 have three duplicates in the range A2:C4. If returns TRUE, then excel conditional formatting will highlight the color of cells.

Let’s see the below steps:

**1#** select the range of cells in your table

**2#** on the **HOME** tab, click the **Conditional Formatting** command under **Styles** group. Then select **New Rules…** from the drop-down menu list.

**3#** the New Formatting Rule window will appear.

4# select the **Use a formula to determine which cells to format **option under **Select a Rule Type:** box, and then enter the above formula in the **Format values where this formula is true**

**5#** click the **Format… **button, then the **Format Cells** window will appear.

**6#** in the “**Format Cells**” window, switch to the** Fill** tab, choose the background color, and then click **OK** button. You can also switch to other tabs to tweak the settings as you want.

**7#** back in the **New Formatting Rule** window, you can see a preview of your rows background color. Then click **OK** button.

**8#** let’s see the result:

If you want to highlight the duplicate values that is equal to the value of A2 in range A2:C7, and the duplicate values are more than 3 times, you can use the following formula as the conditional formatting rule.

=COUNTIF($A$2:$C$7,A2)>3

### Related Functions

- Excel COUNTIF function

The Excel COUNTIF function will count the number of cells in a range that meet a given criteria. This function can be used to count the different kinds of cells with number, date, text values, blank, non-blanks, or containing specific characters.etc.= COUNTIF (range, criteria)…

### Related Posts

- Highlight Rows

You will learn that how to**change the color of the entire rows**if the value of cells in a specified column meets your conditions, such as, if the value of cells is equal to or greater than a certain number or text values, then excel should be highlight entire rows or change a row color as you need.… - Find Duplicate Rows

If you want to check the entire row that duplicated or not, if True, then returns “duplicates” value, otherwise, returns “no duplicates”. You can create a formula based on the IF function and the SUMPRODUCT function..… - Highlight Duplicate Rows

this post will talk that how to highlight entire rows that are duplicates in excel 2016, 2013 or lower version. Or how to change the background color of duplicate rows..… - Combine Duplicate Rows and Sum the Values

This post will teach you how to**combine duplicate rows and sum the corresponding values**or calculate numbers in specific column in excel. And how to merge duplicate rows and then sum the values with VBA macro in Excel..…