Rather than True or False, if you used actual numbers
you might also spot some duplicates
C2: =IF(ISBLANK(A2),"",COUNTIF(B:B,A2))
D2: =IF(ISBLANK(B2),"",COUNTIF(A:A,B2))
But if you want true or false then
C2: =IF(ISBLANK(A2),"",COUNTIF(B:B,A2)>0)
D2: =IF(ISBLANK(B2),"",COUNTIF(A:A,B2)>0)
use the fill handle to fill down
http://www.mvps.org/dmcritchie/excel/fillhand.htm
--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
<(E-Mail Removed)> wrote in message news:34241a6f-e2be-45c5-9df3-(E-Mail Removed)...
> Let me set up the problem. I have two columns of data (names of
> people) in Excel. I need to see if the names in Column A are the same
> in Column B. However, the catch is that the order of the names in both
> columns can be different. Also, the maximum number of names in each
> column is 10, but there is no minimum, therefore the two lists may
> have a different number of names.
>
> The ultimate goal of this exercise is to see whether the names in
> Column A and B are exactly the same (the order doesn't matter) and
> obtain a simple TRUE or FALSE result.
>
> I've been testing various IF statements (using a For...Next loop to go
> down the list) but have had no luck. If anyone can help me understand
> the logic to go about solving this, I would really appreciate it.
> Thanks.