View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MichaelRobert MichaelRobert is offline
external usenet poster
 
Posts: 64
Default Can I use 'CONTAINS' in an IF Logical Test?

I want to use the IF function, but using a Logical Test on a given cell that
contains text, like 'Red; Green; Blue'. The cell may contain all, none, or
any of these words. If the cell contains Red, I want to Return Yes

My Function would look something like

=IF (Q2 CONTAINS "RED", "Yes", "No")

However, I only see IF working on numbers and not text.

Any ideas?

Thanks.

Mike