The following routines are relatively simple demonstrations of using COUNTIF to test for duplicates. The testing has been done with two ranges on the same worksheet. The first maps the output using the address of the duplicated cell. The second creates two lists in columns A and B. The second is probably safer if the two ranges could overlap.
For the demonstration, I have used two different sized ranges, one containing cells in a column, the other containing cells in a row. I'm guessing that, under normal circumstances, you would be comparing columns ... and the columns could be the same column but in different sheets or even workbooks.
The demonstration is not meant to demonstrate that capability although it should work in just the same way as comparing local ranges.
Routine 1
Routine 2
Regards, TMS
Bookmarks