View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Chatnoir11 Chatnoir11 is offline
external usenet poster
 
Posts: 10
Default Embedding an OR statement in an IF statement efficiently

Hi. I am doing a simple IF statement with an OR in it.

If(OR(B2="A",B2="B",B2="C"), "X","Y") but I have many more of the OR
criteria, so it takes a long time to type, lots of room for typos.

Is there a more efficient way where I can say, basically if B2 equals
anything in this list, then "X", otherwise "Y"? I tried a dozen variations
but kept getting the "VALUE" error.

Thanks! I do these a lot, so I'd like to speed it up...