|  

» Checking for Duplicate Values within a Range

Problem:

Columns A & B contain two lists of values.
We want to create a formula that will check whether there is any duplication of values within either list (blank cells are to be ignored).

Solution:

Use the IF, COUNTA, SUMPRODUCT, and COUNTIF functions as shown in the following formula:
=IF(COUNTA(A2:A7)=SUMPRODUCT((A2:A7<>" ")/COUNTIF(A2:A7,A2:A7&"")),"No Duplicates","Duplicates")
The formula will return "Duplicates" if the list contains duplicate values, otherwise it will return "No Duplicates".

Rate This Tip
12 34 5
Rating: 2.71     Views: 20352
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments