View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default Need formula to locate and validate specific text from a string

On Tue, 6 Apr 2010 22:51:40 -0700 (PDT), vinstream wrote:

Hi,

I have the following sample data in column A.

germany (testing)
Germany (cold)
Germany
Austria (Testing)
Austria (cold)
Austria (working)
Austria (other)
China
China (alternate)


In column B, I want it to show that if the cell to the left has any of
the words 'testing' or 'cold' or 'working' it should show "yes" in
Column B else show "no".

Is this possible?



Regards,

Vinstream


Another approach:

=IF(OR(COUNTIF(A1,"*"&{"testing","cold","working"} &"*")),"yes","no")
--ron