Articles
The world-leading platform with 10K+ successful lessons.
How to Highlight Duplicates in Google Sheets
Learn to find duplicate data and format cells to make navigating your spreadsheet easier.
Ready to deepen your knowledge of Google Sheets?
To begin, you’ll need your tab open to your spreadsheet. If you’re not already working with your own data set and want to follow along with our examples, make a copy of this template to practice.
How to highlight duplicates in Google Sheets
1. Highlight the column you want to find duplicates in.
2. Click ‘Format’ in the top menu.
3. Click ‘Conditional formatting.’
4. In the ‘Format cells if’ box, click ‘Custom formula is.’
5. Use the COUNTIF formula to find duplicates.
Since we’re looking for duplicate directors, we want to adjust the formula to read the C column. Our formula should become =COUNTIF (C:C, C2)>1. You can see how it begins to highlight repeat directors.
How to count duplicates in multiple columns
Let’s say you want to check movie titles and directors, so columns B and C in this case. We’ve purposely added an error in the titles column, repeating Batman twice. Clear any previous conditional format rules, and repeat the steps above until you get to the box where you’ll input your custom formula.
There are now two ways to go about this:
1. Use ‘Apply to range.’
For our purposes, we’re looking at columns B and C, so our function should be =COUNTIF(B:B, B1)>1. That tells Sheets to start with B1 and go from there.
Make sure the syntax of your formula matches the first value. For example, if we want to look at columns C through F now, we’ll update “Apply to range” to “C1:F999” and then make sure the function reads =COUNTIF(C:C, C1)>1.
2. Use absolute values.
How to highlight multiple columns using different colors
In that case, you’d want to do a pivot table, which can help you see and better understand the relationship between data.