View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default formula to see if cell contains one of two text values

Hi
one way:
=IF(OR(COUNTIF(A1,{"*textA*","*textB*"})),"yes","n o")

--
Regards
Frank Kabel
Frankfurt, Germany

"
schrieb im Newsbeitrag
...
I am interested in writing a formula that will check to
see if a cell contains one of two words, and then will
return a value.

So, for example:

=IF(ISNUMBER("textA" or "textB"),"yes","no")

I know this formula isnt exactly correct. Can you help?