View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Student Student is offline
external usenet poster
 
Posts: 29
Default Search for value in a range

Is there a function which can search for a value in a range and return a
"true" or "false" if it finds it.

eg. =if(A2=B2:B30,12,0) So if the value in cell A2 is found in the range
B2:B30 then 12, if not then 0.

Obviously this particular formula doesn't work otherwise I wouldn't be
asking. How can I change it so it does what I'm try to make it do.