The fastest way to spot duplicates in Google Sheets
Google Sheets has a built-in tool called conditional formatting that highlights duplicate values automatically. Open your spreadsheet, select the column or range where you want to find duplicates, then go to Format > Conditional formatting > Format rules. Choose "Custom formula is" and paste this formula: =COUNTIF($A$1:$A, $A1)>1 (replace the column letter with yours). Pick a highlight color and click Done. Every duplicate value in that range will light up instantly.
If you want to see which rows are exact duplicates of each other — meaning every cell in the row matches another row — that takes a different approach. You'll use a helper column with a formula to flag rows that repeat, then sort or filter by that column. This matters when you're cleaning data and need to know which entire records are copies, not just which individual values appear more than once.
Key Takeaways
- Conditional formatting with the COUNTIF formula highlights any value that appears more than once in your selected range.
- A helper column with COUNTIF can flag which rows are complete duplicates of other rows in your dataset.
- The Remove duplicates feature deletes duplicate rows permanently, so make a copy of your sheet first if you might need the original data.
- Sorting your data before looking for duplicates makes patterns easier to spot and helps you catch near-duplicates like "John Smith" and "john smith".
Using conditional formatting to highlight duplicates
Conditional formatting is the simplest method when you want to see which values repeat without changing your data. Select the column or range you're checking — click the column header to select the entire column, or drag to select just the cells you need. Then open the Format menu, click Conditional formatting, and select "Custom formula is" from the dropdown.
In the formula box, type =COUNTIF($A$1:$A, $A1)>1, but replace the A's with your actual column letter. The dollar signs lock the range so the formula checks the whole column, while the single dollar sign on the row number lets it shift down as you go. Pick your highlight color — red or yellow stands out well — and click Done. Every cell containing a value that appears elsewhere in that column will now be highlighted.
This method works for single columns or for a rectangular range. If you select cells A1:C50, the formula checks whether each individual cell's value repeats anywhere in that range. It does not check whether entire rows match; it flags individual duplicate values.
Finding rows that are complete duplicates of each other
When you need to know which entire rows are identical copies, add a helper column with a different formula. Click on an empty column to the right of your data — say column D if your data ends in column C. In cell D1, type this formula: =COUNTIFS($A$1:$A, $A1, $B$1:$B, $B1, $C$1:$C, $C1)>1. Adjust the column letters to match your actual data range.
This formula counts how many rows have the exact same values across all your columns. Copy the formula down to every row with data. Cells in column D will show TRUE for rows that match at least one other row, and FALSE for unique rows. You can then sort or filter by column D to group all the duplicates together, making it easy to review and delete them.
The COUNTIFS approach is slower on very large sheets because it checks multiple columns at once, but it's the clearest way to see which records are actually identical. If your data has hundreds of thousands of rows, you may notice a delay while the formula calculates.
Removing duplicates permanently with the built-in tool
Google Sheets has a one-click remove duplicates feature, but it deletes rows without letting you review them first. Before using it, make a copy of your sheet by right-clicking the sheet tab at the bottom and selecting Duplicate. This way you keep the original if you need to check what was deleted.
On your copy, select all your data including headers. Go to Data > Remove duplicates. A dialog will ask which columns to check — leave all of them selected if you want to remove rows that are completely identical, or uncheck columns if you only care about duplicates in certain fields. Click Remove duplicates. The tool will delete every row that matches a previous row and show you how many rows were removed.
This feature removes the second and later occurrences of a duplicate, keeping the first one. If you have 100 rows and 20 are exact duplicates of other rows, you'll end up with 80 rows. The order matters: whichever duplicate appears first in your sheet is the one that stays.
Catching near-duplicates that don't match exactly
Sometimes duplicates hide because of small differences: extra spaces, different capitalization, or slightly different spellings. Before you search for duplicates, clean your data first. Select your data range and go to Data > Text to columns. This removes leading and trailing spaces that you might not see. Then use Find and replace (Ctrl+H or Cmd+H) to standardize capitalization — search for "john smith" and replace with "John Smith" across the whole sheet.
After cleaning, run your duplicate check. You'll catch far more matches because "John Smith" and "john smith" are now identical. This step takes time on large datasets, but it prevents you from missing duplicates that are functionally the same but formatted differently.
If you have names or addresses that might be spelled slightly differently — like "Catherine" versus "Katherine" — those won't be caught by any automated method. You'll need to scan the highlighted duplicates manually or use a more advanced tool outside of Sheets.
Sorting before you search makes duplicates obvious
A simple sort can make duplicate-hunting much faster. Select all your data including headers, then go to Data > Sort range. Choose the column you want to check for duplicates and click Sort. Identical values now sit next to each other, so you can scroll through and spot repeats visually without running any formulas.
This is especially useful when you're not sure whether your data has many duplicates or just a few. A quick sort takes seconds and gives you a sense of the problem. If you see the same customer name or email appearing three rows apart, you know duplicates exist. If everything looks unique, you can skip the more complex steps.
Sorting also helps you catch near-duplicates. When similar names are next to each other, you might notice "Jon Smith" and "John Smith" sitting side by side, even though an automated check wouldn't flag them as duplicates.
Frequently Asked Questions
Can I find duplicates across multiple sheets in one spreadsheet?
Not with a single built-in tool. You would need to copy all the data from each sheet into one temporary sheet, then run your duplicate check. Alternatively, use a formula that references another sheet — for example, =COUNTIF(Sheet2!$A:$A, $A1)>0 to see if a value from Sheet1 appears anywhere in Sheet2.
What if I want to keep duplicates but just mark them somehow?
Use conditional formatting or a helper column with a formula instead of the Remove duplicates feature. Both methods highlight or flag duplicates without deleting anything. You can then manually review and decide which rows to keep.
Does the COUNTIF formula work if my data has blank cells?
Yes, but blank cells will be flagged as duplicates if there are multiple blank cells in your range. If that's a problem, use a formula like =IF(A1="","",COUNTIF($A$1:$A,A1)>1) to skip blank cells.
How do I find duplicates in a column that has formulas, not just values?
The COUNTIF formula works on both values and formula results. If column A contains formulas that produce numbers, COUNTIF will still find duplicates based on what those formulas display. The formula doesn't care whether the cell contains a raw value or a calculated result.
Can I undo the Remove duplicates action if I delete the wrong rows?
Yes, use Ctrl+Z (or Cmd+Z on Mac) immediately after removing duplicates to undo. But if you close the sheet and reopen it, the undo history is gone. This is why making a copy of your sheet before using Remove duplicates is important.