View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default If Statement and a List

Try this:

A1:A100 = names
G1:G6 = special category names

=IF(SUMPRODUCT(--(ISNUMBER(MATCH(A1:A100,G1:G6,0)))),"Yes","No")

Biff

"mikesaysgobears" wrote in
message ...
I have a column with 100 names in it. Of those names, 6 are part of a
special category. The column with 100 names gets updated automatically
via
macro, while the 6 names category rarely changes. If they do change, I
will
manually update the list.

What I want to do is write an IF function that says, if one of the 100
names
appears in the special list of six, I want the function to return "Yes",
if
not, "No".

Any suggestions?