Excel formula builder

Duplicate Checker Formula Builder

Create a formula that flags duplicate IDs, SKUs, emails, or names while ignoring blank rows.

Builder inputs

Use the full range to check and the current row cell where the formula starts.

Formula is valid and ready to copy.

Excel and Google Sheets formula
=IF(A2="", "", IF(COUNTIF($A$2:$A$100, A2)>1, "Duplicate", ""))
Explanation
COUNTIF checks the current value against the chosen range. The blank guard prevents empty rows from being marked as duplicates.

How this formula works

  • COUNTIF returns how many times the current value appears in the chosen range.
  • The default formula ignores blanks before running the duplicate check.
  • Use the after-first mode when you want to keep the first occurrence unmarked.

Sample data

SKUItemCategoryPrice
A-100KeyboardHardware49
A-101MouseHardware25
B-200Desk MatOffice18
B-201NotebookOffice7

Common mistakes

  • Use absolute references for the full check range before filling the formula down.
  • Leading or trailing spaces can hide duplicates that look identical.
  • Choose after-first mode if the first item should remain clean.

Related formulas

FAQ

Are these formulas generated with AI?

No. The builder uses deterministic TypeScript functions in the browser and does not call any AI API.

Do I need to upload my spreadsheet?

No. Enter ranges and criteria manually. The site does not upload, store, or process spreadsheet files.

Can I copy the generated formula?

Yes. Each output includes a copy button so you can paste the formula into Excel or Google Sheets.