View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
mbrockhaus
 
Posts: n/a
Default Can I use "In" in an "If" statement?

I want to determine if a value in column A is in a list of values, using an
if statement. Do I need to list each condition separately? For example, is
there a better way to write the following statement?

=IF(OR($A2<"Benchmark",$A2<"Benchmark Folder",$A2<"Physical
Name",$A2="Label Part"), "y", "n")