Search for duplicates won't work with multiple columns

leigh_ashlin

Board Regular
Joined
Feb 9, 2005
Messages
74
Hi, I have the following formula:

=IF(MAX(COUNTIF(Range1,Range1))>1,"Duplicates","No Duplicates")

This works great if I am looking for duplicates in a single column of data, but it doesn't work if I try it with 2 columns of data.

Does anybody know how I can modify this to search for duplicates from a 'column A' and a 'column B'? (this would be conducted after the duplicates have been removed from each of 'column A' and 'column B' individually)

Thanks - Leigh
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Leigh

Please try:

Code:
=IF((MAX(COUNTIF(range1,range1)+COUNTIF(range2,range1))>1)+
(MAX(COUNTIF(range1,range2)+COUNTIF(range2,range2))>1),"Duplicates","No Duplicates")
This is an array formula and so MUST be entered with CTRL+SHIFT+ENTER and not just ENTER.

Hope this helps
PGC
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,535
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top