Is there a way you could do this with 3 columns
and have it tell you which column it is in and not in?
Starts to get a bit longish ...
but here's one play which executes the logic checks & delivers the results
Data is assumed in cols A to C, from row1 down,
where data in col C is to be checked with that in cols A and B
Copy direct from below n then paste directly into D1's formula bar (it's all
meant in the same cell, broken down for easier clarity on the
checks/sequence):
=
IF(C1="","",
IF(AND(COUNTIF(A:A,C1),COUNTIF(B:B,C1)),"In A & B",
IF(AND(COUNTIF(A:A,C1),NOT(COUNTIF(B:B,C1))),"In A not B",
IF(AND(NOT(COUNTIF(A:A,C1)),COUNTIF(B:B,C1)),"In B not A",
"Not in A nor B"))))
With the formula confirmed in D1,
copy D1 down to the last row of data expected in col C
P/s: Do take a moment to press the Yes button below from where you're
reading/posting (ie in MS's newsgroup webpage). Do this rating for all
responses which help to answer your queries
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---