Skip to content
Highlight-duplicates-in-google-sheets-SS12

How to Highlight Duplicates in Google Sheets

In this blog, we will show you how to highlight duplicates in google sheets. It will make your spreadsheet more advance and easy to follow. You can use the below formula to highlight duplicates in google sheets. The formulas that we will give you about google sheets conditional formatting duplicates and after this blog you will be able to highlight duplicate cells easily. Also, you can find the answer for how do I filter duplicates in Google Sheets. Moreover, there are answers for the people who look as ” how do I find duplicates in google sheets ”

How to Highlight Duplicates in Google Sheets

Firstly, Let’s check the example below to highlight duplicates:

Highlight-duplicates-in-google-sheets -Blog-SS1

Secondly, we can highlight duplicate cells in the code column.

1- Select the Code

Moreover, select the code column (B2:B19) and go to Format ->Conditional Formatting

Highlight-duplicates-in-google-sheets -Blog-SS2

Now you will see Conditional Format Rules on the right side of the screen. Be sure that the “apply to range” section is correct.

2- Go to Format rules

Go to Format rules and select “Custom Formula is”.

Highlight-duplicates-in-google-sheets -Blog-SS3

 

3- Use the Formula

Use the below formula to highlight duplicates in google sheets

=COUNTIF($B$2:$B$19,B2)>1

Highlight-duplicates-in-google-sheets-Blog-SS4

Formatting style can be changed in the Formatting Style section in Conditional Formatting Rules.

Highlight-duplicates-in-google-sheets -Blog-SS5

For example, you can see the changed formatting style with bold, blue font color and yellow fill color.

Highlight-duplicates-in-google-sheets-Blog-SS6

Google Sheets highlight duplicates in two columns

If we want to highlight duplicates in multiple columns, we can use the method below.

Then ,select the range to find duplicates and go to Formatting -> Conditional Formatting

Highlight-duplicates-in-google-sheets -Blog-SS7

As well as, we use the ARRAYFORMULA in the COUNTIF formula.

=COUNTIF(ARRAYFORMULA($A$2:$A$19&$B$2:$B$19),$A2&$B2)>1

Highlight-duplicates-in-google-sheets -Blog-SS8

As a matter of fact, you can extend the number of columns using the “&” expression to find duplicates. The most important part is the number of rows for each column should be the same.

How do I filter duplicates in Google Sheets?

Using the “Unique” function we can filter duplicates in Google Sheets. Let’s filter the category column by removing duplicates using the formula below:

=UNIQUE(D2:D19)

spreadsheet-tips-Blog-SS9

Furthermore, let’s highlight duplicates in Google Sheets in the same category with the same color for each part.

Then, we will select the Category column and again go to Formatting -> Conditional formatting select “custom formula is” in the “Format cells if…” section.

Likewise, using the formula below we can differentiate each category differently.

=D2=$F$2 for “Accessories & Supplies”
=D2=$F$3 for “Camera & Photo”
=D2=$F$4 for “Computers & Accessories”

spreadsheet-tips-Blog-SS10

Lastly, we can easily highlight the same category with the same color.

spreadsheet-tips-Blog-SS11

If you like our blog ,you can check for more google sheets tips here!

Also, you can watch our Google Sheets tips videos here!

Search