How to Highlight Duplicates in Google Sheets

How to Highlight Duplicates in Google Sheets

Google Sheets, a cost-free and web-based spreadsheet application, provides users with the ability to generate, modify, and distribute spreadsheets via the internet.

 

Highlighting duplicates in Google Sheets is a useful feature that can help you quickly identify and remove duplicate data from your spreadsheets.

 

Why Highlighting Duplicates in Google Sheets is Useful

Duplicate data can cause errors in your calculations and analysis and make it difficult to work with your data effectively. By highlighting duplicates, you can easily spot and remove them, ensuring that your data is accurate and easy to work with. This can save you time and effort and help you make better decisions based on your data.

 

Step-by-Step Guide: How to Highlight Duplicates in Google Sheets

 

Highlighting Duplicates in Single Column

 

All the Duplicates in a Single Column

Here, you’ll learn how to highlight all duplicate values in a column.

How to Highlight Duplicates in Google Sheets

 

Step 1: Select the Cell Range

First select the cell range where you suspect duplicate values exist. You can do this by selecting the cell range as shown in screenshot from A2 to A11.

How to Highlight Duplicates in Google Sheets

Step 2: Apply Conditional Formatting

  • Next, navigate to the “Format” menu and select “Conditional formatting”.
  • In the conditional formatting dialog box, choose the option “Format cells if”.
  • Then select  “Custom formula is.” option.

 

Select Format -> Conditional FormattingSelect Format Cells If OptionSelect Custom Formula Option

 

Step 3: Enter the Custom Formula

In the input box, enter the below formula:

=countif($A$2:$A,A2)>1

This formula checks if the value in the selected cells appears more than once.

Enter the Custom Formula

 

Step 4: Choose Formatting Style

Specify the formatting style you prefer for highlighting duplicate values. It could be a different text color, background color, etc. For now we’re changing cell background color to Light Yellow.

Choose Formatting Style

 

Step 5: Apply Formatting to See the Result

Click “Done” to apply the formatting. Google Sheets will now highlight any duplicate values within the selected cell range based on the chosen formatting style.

How to Highlight Duplicates in Google SheetsAfter Highlighting Duplicates in a Single Column

 

All the Duplicates in a Single Column (Except for the First Instance)

Here you’ll learn how to highlight all duplicate values in a column except for the first instance.

Before and After Highlighting Duplicates in a Single Column except for the first instance.

In most cases you don’t want to highlight the first duplicate value because you consider it as a Unique Value.

So to acheive this, follow all the same steps above, and only modify the custom formula in Step 03:

=countif($A$2:$A2,A2)>1

This method is very useful when you want to delete only duplicate values, you only need to select rows that contains highlighed cells and delete them.

 

Highlighting Duplicates in Multiple Columns

 

All the Duplicates in Multiple Column

Here you’ll learn how to highlight duplicates in multiple columns or entire row, but this only highlights when values in both columns should match.

Before and After Screenshot of Highlighting Duplicates in Multiple Columns

 

Step 1: Select the Cell Range

First select the cell range where you suspect duplicate values exist. You can do this by selecting the cell range as shown in screenshot from A2 to B11.

Select the Cell Range for Multiple Columns

 

Step 2: Apply Conditional Formatting

  • Next, navigate to the “Format” menu and select “Conditional formatting”.
  • In the conditional formatting dialog box, choose the option “Format cells if”.
  • Then select  “Custom formula is.” option.

 

How to Highlight Duplicates in Google SheetsHow to Highlight Duplicates in Google SheetsSelect Custom Formula Option

 

Step 3: Enter the Custom Formula

In the input box, enter the below formula:

=COUNTIFS($A$2:$A, $A2:$A, $B$2:$B, $B2:$B)>1

Here we are using “COUNTIFS” function, because we are dealing with multiple columns.

This formula will highlight the entire row or both cells if the values in both columns should match.

How to Highlight Duplicates in Google Sheets

 

Step 4: Choose Formatting Style

Specify the formatting style you prefer for highlighting duplicate values. It could be a different text color, background color, etc. For now we’re changing cell background color to Light Yellow.

How to Highlight Duplicates in Google Sheets

 

Step 5: Apply Formatting to See the Result

Click “Done” to apply the formatting. Google Sheets will now highlight the entire row where the values in both columns match.

Click done to Apply FormattingAfter Highlighting Duplicate in Multiple Column Result

 

All the Duplicates in Multiple Column (Except for the First Instance)

Here you’ll learn how to highlight duplicates in multiple columns or entire row except for the first instance.

Before and After Screenshot of Highlighting Duplicates in Multiple Columns Except First Instance

In most cases you don’t want to highlight the first instance of duplicates because you consider it as a Unique value or row.

So to acheive this, follow all the same steps above, and only modify the custom formula in Step 03:

=COUNTIFS($A$2:$A2, $A2, $B$2:$B2, $B2)>1

This method is very useful when you want to delete only multiple columns duplicates, you only need to select rows that contains highlighed cells and delete them.

 

Highlighting Duplicates Across All the Cells

Here you’ll learn how to highlight duplicates across all the cells.

Before and After Screenshot of Highlighting Duplicates Across All the Cells

 

Step 1: Select All The Cells

First select all the cells where you suspect duplicate values exist. You can do this by selecting the cell range as shown in screenshot from A1 to C10.

Select all the cells

 

Step 2: Apply Conditional Formatting

  • Next, navigate to the “Format” menu and select “Conditional formatting”.
  • In the conditional formatting dialog box, choose the option “Format cells if”.
  • Then select  “Custom formula is.” option.

How to Highlight Duplicates in Google SheetsHow to Highlight Duplicates in Google SheetsHow to Highlight Duplicates in Google Sheets

 

Step 3: Enter the Custom Formula

In the input box, enter the below formula:

=COUNTIF($A$1:G,Indirect(Address(Row(),Column(),)))>1

How to Highlight Duplicates in Google Sheets

 

Step 4: Choose Formatting Style

Specify the formatting style you prefer for highlighting duplicate values. It could be a different text color, background color, etc. For now we’re changing cell background color to Light Yellow.

How to Highlight Duplicates in Google Sheets

 

Step 5: Apply Formatting to See the Result

Click “Done” to apply the formatting. Google Sheets will now highlight all the cells where the duplicate values exists.

How to Highlight Duplicates in Google SheetsHow to Highlight Duplicates in Google Sheets

 

Conclusion

Detecting and dealing with duplicates in Google Sheets is a fundamental aspect of data management. By leveraging the built-in tools and techniques discussed in this article, you can efficiently identify and highlight duplicates.

 

Also Read: How to Merge Cells in Google Sheets

Humza Mehmood | Digital Content Creator | Masterlyhub

Humza Mehmood

I am a creative and big-picture thinker who is obsessed with crafting the details of user interfaces and experiences. I am always eager to learn new technologies and skills, and I am passionate about creating user-centric and accessible solutions.

Share Via

Facebook
Twitter
Pinterest

Trending