Conditional formatting adds color to repeated values in Google Sheets without changing your data. Select the cells, open Format > Conditional formatting, and use a COUNTIF rule to color values that appear more than once.
This finds repeated values in a chosen column. A repeated email address, a duplicate record, and a name shared by different people aren't always the same problem, so choose a column that tells you whether two entries are actually the same.
In this guide
Highlight repeated values in one column
On a computer, open the spreadsheet and find the cells you want to check. This example uses A2:A100, with a heading in A1. Replace those addresses with the first and last data cells in your own list.
Select A2:A100. Choose Format > Conditional formatting. In the panel, check Apply to range shows A2:A100, then open Format cells if and choose Custom formula is.

Enter =COUNTIF($A$2:$A$100,A2)>1. Choose a fill color that stands out against your existing formatting, then click Done. Values that appear more than once in that range should turn the color you chose.
The rule highlights every occurrence, including the first. For example, if a practice list contains the same email address in A2 and A7, both cells get the color. It doesn't label one of them as the original or choose a row to remove.
Google explains the COUNTIF formatting rule in its help page. Match the formula's final reference to the first selected cell when adapting the starting row.
Keep blanks out of the highlighted results
Empty cells can match one another in a simple counting rule. If the selected range has unused rows, change the formula to =AND(LEN(A2)>0,COUNTIF($A$2:$A$100,A2)>1).
The first test, LEN(A2)>0, asks whether the cell contains any characters. AND means the cell must contain characters and have a repeated value to get the color. The result is a duplicate rule that leaves empty cells uncolored.
Keep the same Apply to range while making this change. If you add a second overlapping rule instead of editing the first, the original rule can keep coloring the blanks even though you've added the new formula.
Try the rule on a small section that you can check by eye. A range with one unique value, one repeated value, and an empty cell helps you see whether each test behaves correctly before applying it to hundreds of rows.
Check why the dollar signs matter
In $A$2:$A$100, the dollar signs keep the search range fixed. In the final A2, the missing dollar signs let the comparison move down the selected cells: A2 for the first row, A3 for the next, and so on.
A rule applied to A2:A100 but ending in A1 checks the wrong row. That can shift the colored cells away from the actual repeats. Read the range and the final reference together when the highlights look one row out of place.
The same pattern works in another column. For B2:B100, use =AND(LEN(B2)>0,COUNTIF($B$2:$B$100,B2)>1). Change both the fixed search range and the cell being tested, rather than replacing only one letter.
If the formula won't save, compare its commas with a working function in the file. Some files need semicolons. The parse error guide explains locale separators.
Color an entire row using its identifying column
To make repeated records easier to review, select the whole table area, such as A2:D100. Use =AND(LEN($A2)>0,COUNTIF($A$2:$A$100,$A2)>1) as the custom formula.
The $A2 reference keeps every cell in a row looking at column A while allowing the row number to change. A repeat in A7 can then color A7 through D7, so you can read the related details together.
The rule still checks only column A for repeats. Using a name as the key can color separate orders placed by that person. Use an order number or another suitable identifier when names aren't unique.
Don't delete a record just because it's colored. Read the rest of each marked row and decide whether it is an accidental duplicate or a valid second entry with a repeated value.
After reviewing matches, use the Sheets duplicate removal guide to choose comparison columns. Highlighting first keeps every record available to inspect.
Match two columns when one value is not enough
If you need both the ID in A and the order number in B to spot a duplicate, count that pair together. Select A2:D100, open the custom formatting rule, and use:
=AND(LEN($A2)>0,COUNTIFS($A$2:$A$100,$A2,$B$2:$B$100,$B2)>1)
Both fields must match another row before this rule colors the record. An ID repeated on a different order won't qualify just because the ID occurs twice. This is useful when a single-column check marks too many valid records.
COUNTIFS takes a search range and matching value for each field. Both search ranges must start at row 2 and finish at row 100.
Add another range-and-value pair for each extra field you need to compare. Selecting four columns for coloring doesn't automatically compare all four.
Show counts beside the data when color isn't enough
In an empty helper column, type =COUNTIF($A$2:$A$100,A2) on row 2 and copy it down through the data. A result of 1 means one occurrence within that range; 2 means the value appears twice.
You'll see a number beside each entry instead of having to rely on its color. Keep the column heading clear, such as Occurrences, so you can tell these counts apart from your original data.
For only later occurrences, use =COUNTIF($A$2:A2,A2)>1 in a helper cell on row 2 and copy down. Its range grows from the first data row to the current row, so the first occurrence returns FALSE and a later repeat returns TRUE.
That later-occurrence test follows the current row order. It doesn't identify the newest, oldest, or best record. Decide which record to keep based on what your data means. The first row you see isn't necessarily the right one to keep.
Check case, spaces, and phone limitations
COUNTIF ignores letter case, so uppercase and lowercase versions count as a match. It also recognizes wildcard characters. Take extra care when your actual text contains asterisks or question marks.
Extra spaces can make entries that look alike behave differently. Check the text inside the cells before deciding the rule is broken. Work on a copy before cleaning imported data if those spaces could carry meaning.
Android's Sheets app supports conditional formatting controls. On iPhone and iPad, the app can show the rules but can't edit them. Use a computer for the custom-rule procedure if the editing controls aren't available on your device.
If known repeats aren't colored, check the rule order and selected range. Ask the Docs Editors Help Community using a small table of made-up data and your exact formula. Keep customer or employee data out of the example.
The Short Version
Use COUNTIF conditional formatting to mark repeated values, adding a nonblank test for empty rows. Match the formula's starting reference to the selection. Review the marked records before removing anything.
Checked December 1, 2026.







