View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Chilidog1000 Chilidog1000 is offline
external usenet poster
 
Posts: 2
Default Using the "IN" function in Excel

I'm trying to evaluate if a cell value resides in a list
of values. I'm trying to use the IN function similar to
how I use it in Access but it keeps erroring out. Can
anyone help me understand what I'm doing wrong? Here is
the sample code I'm using. Many Thanks!

If Cells(1, b).value in
("0309","0713","0728","0730","0741","1020","1022") , then
MsgBox "test"
End If