FormulaCraft

How to find duplicate values in Excel and Google Sheets

Topic:Duplicates & uniqueness
Excel & Google Sheets
=IF(COUNTIF($A$2:$A$6,A2)>1,"Duplicate","Unique")

Verified example

Computed by a real spreadsheet engine on the sample data below.

NameStatus
Alice
Bob
Alice
Carol
Bob

=IF(COUNTIF($A$2:$A$6,A2)>1,"Duplicate","Unique")Duplicate

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In a helper column (e.g., B2) enter =IF(COUNTIF($A$2:$A$6,A2)>1,"Duplicate","Unique") — lock the full range with $ signs.
  2. 2Copy the formula down through all data rows.
  3. 3Filter column B for 'Duplicate' to see every repeated value at a glance, or count duplicates with =COUNTIF(B2:B6,"Duplicate").

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

How is this different from the highlight-duplicates approach?

Conditional Formatting highlights cells visually; a formula column produces a value you can filter, sort, count, and reference in other formulas.

Can I find duplicates across two separate columns?

Yes — use COUNTIF across both columns: =IF(COUNTIF($A$2:$B$6,A2)>1,"Duplicate","Unique").

More on Duplicates & uniqueness

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: