Is it in the list?

D

davebonallack

Hi all. Is there a function that will tell me if the content of one
cell, appears somewhere in a list of other cells?
Example: Sheet has 91 names in cells A10:A100
Operator enters a name in Cell A1. If the entered name appears in the
list in cells A10:A100, then do A. If the name does not appear in the
list in cells A10:A100, then do B.
Thanks.
Dave.
 
D

davebonallack

One way

=IF(A1="","",IF(ISNUMBER(MATCH(A1,A10:A100,0)),"<do A>","<do B>"))
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik





- Show quoted text -

Thanks, works a treat.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top