G
Guest
I'm trying to check for duplicates excluding blank cells across a range A3:I3
I've looked at Chip Pearson's site and tried adapting the formula there
=IF(MAX(COUNTIF(INDIRECT("A2:A"&(MAX((A2:A500<>"")*ROW(A2:A500)))),INDIRECT("A2:A"&(MAX((A2:A500<>"")*ROW(A2:A500))))))>1,"Duplicates","No Duplicates")
to
=IF(MAX(COUNTIF(INDIRECT("A3:I"&(MAX((A3:I3<>"")*COLUMNS(A3:I3)))),INDIRECT("A3:I"&(MAX((A3:I3<>"")*COLUMNS(A3:I3))))))>1,"Duplicates","No
Duplicates") as an array
but it gives the answer Duplicates if any cell has a value, if they are all
blank the answer is #Ref!
I'm stuck now I'm afraid
I'd appreciate any help. Thanks.
I've looked at Chip Pearson's site and tried adapting the formula there
=IF(MAX(COUNTIF(INDIRECT("A2:A"&(MAX((A2:A500<>"")*ROW(A2:A500)))),INDIRECT("A2:A"&(MAX((A2:A500<>"")*ROW(A2:A500))))))>1,"Duplicates","No Duplicates")
to
=IF(MAX(COUNTIF(INDIRECT("A3:I"&(MAX((A3:I3<>"")*COLUMNS(A3:I3)))),INDIRECT("A3:I"&(MAX((A3:I3<>"")*COLUMNS(A3:I3))))))>1,"Duplicates","No
Duplicates") as an array
but it gives the answer Duplicates if any cell has a value, if they are all
blank the answer is #Ref!
I'm stuck now I'm afraid
I'd appreciate any help. Thanks.