ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If cell contains any of the following letters, then.. (https://www.excelbanter.com/excel-programming/373387-if-cell-contains-any-following-letters-then.html)

Darin Kramer

If cell contains any of the following letters, then..
 

Hi there,

I need an if formulae in a2 that says if cell a1 contains the word
"procedure" then put "x", if not put a "y".

ie an x would be the result if cell a1 stated:
"this is the procedure", or
"procedure is this", or
"this is the only procedure required"

Any ideas...?

Thanks

D


*** Sent via Developersdex http://www.developersdex.com ***

Bob Phillips

If cell contains any of the following letters, then..
 
=IF(ISNUMBER(SEARCH("procedure",A1)),"x","y")


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Darin Kramer" wrote in message
...

Hi there,

I need an if formulae in a2 that says if cell a1 contains the word
"procedure" then put "x", if not put a "y".

ie an x would be the result if cell a1 stated:
"this is the procedure", or
"procedure is this", or
"this is the only procedure required"

Any ideas...?

Thanks

D


*** Sent via Developersdex http://www.developersdex.com ***




Darin Kramer

If cell contains any of the following letters, then..
 


Brilliant!

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 07:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com