Find duplicates in Excel
Duplicate order IDs, repeated emails, double-booked slots — every spreadsheet gets them. Walk the real Excel / Google Sheets menus above a live spreadsheet engine, then copy the exact menu path or formula.
Highlight duplicates in Excel
Select the range → Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values, and pick a fill. Excel colors every copy — the first occurrence included. To light up only the extras, use a COUNTIF helper column with a filter instead.
Highlight duplicates in Google Sheets
Select the range → Format → Conditional formatting → Custom formula is, and enter =COUNTIF($A$2:$A$9,A2)>1 (adjust the range; the $ keeps it fixed), then pick a color. The formula reads: this value appears more than once in the range.
Three gotchas you must know
Highlighting is not removing
Conditional formatting only changes looks — not one cell of data moves. To actually delete copies, use Data → Remove Duplicates (Excel) or Data → Data cleanup → Remove duplicates (Sheets). It keeps the first occurrence, drops the rest, and cannot be undone — back up first.
Every copy lights up
Excel's Duplicate Values rule marks the original occurrence too — a classic source of "everything is a duplicate!" panic. Reading it is simple: if a value appears N times, N cells glow, and one of them is the original.
COUNTIF works everywhere
The helper-column pattern =COUNTIF($A$2:$A$9,A2)>1 works in Excel, Sheets, sorting, filtering, and advanced rules alike. And when you need fine rules like "first occurrence in each group isn't a duplicate", formulas are the only way.
How to remove duplicates in Google Sheets (and find them first)
Google Sheets removes duplicate rows from : pick the columns to compare, tick “Data has header row” if the first row is labels, and Sheets keeps the first occurrence and deletes the extra copies. Because this edits the data for real, highlight duplicates first (the section above) to preview what will go.
- Find duplicates without deleting: the
COUNTIFconditional-formatting rule above colors every copy — the safest way to check duplicates before acting on them. - Excel route for comparison: (same keep-first behavior).
- Want to keep the rows but see how often each value repeats? Add a
COUNTIFhelper column instead — the practice exercise linked below grades exactly that.
Related cell tools
FAQ
How do I highlight duplicates in Google Sheets?
Select the range, then . Under Format rules choose Custom formula is, enter =COUNTIF($A$2:$A$9,A2)>1 (adjust the range to yours), and pick a fill color. Every value that appears more than once gets the color.
How do I highlight duplicates in Excel?
Select the range, then , and pick the red fill. Excel marks every copy — the original occurrence included.
Does highlighting duplicates delete anything?
No. Conditional formatting only changes how cells look — the data stays untouched. To actually delete extra copies, use (Excel) or (Google Sheets), which keeps the first occurrence and drops the rest.
How do I count duplicates instead of highlighting them?
Add a helper column with =COUNTIF($A$2:$A$9,A2) and fill down — values of 2 or more are duplicates. Filter on that column to review or delete them row by row.