Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
When a duplicate-detection formula returns no matches, the values look identical on screen but differ in the data the formula actually evaluates. Common culprits are leading or trailing spaces, inconsistent case sensitivity expectations, mixed data types (number vs. text), or a range reference that does not cover the full list.
=COUNTIF(A2:A100,A2)>1=COUNTIF(A:A,TRIM(A2))>1Expanded range to full column so new rows are included, and added TRIM so leading/trailing spaces do not hide true duplicates.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Stop hunting errors by hand.
Upload your spreadsheet and the Auditor flags every Dupes and broken formula at once — or paste this one formula and get the fix explained.
The built-in Duplicate Values rule in Excel uses a different internal comparison than COUNTIF — it compares displayed text, not stored values. Use a COUNTIF-based CF rule for consistent, formula-controlled detection.
COUNTIF and COUNTIFS are case-insensitive, so 'apple' and 'Apple' are treated as duplicates. If you need case-sensitive duplicate detection, use EXACT() combined with SUMPRODUCT: =SUMPRODUCT((EXACT(A:A,A2))*1)>1.
Use COUNTIF with the second range as the lookup: =COUNTIF(Sheet2!A:A,A2)>0. Apply this as a Conditional Formatting formula rule on the first column.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: