DrPhilBurns
New Member
- Joined
- Sep 16, 2015
- Messages
- 5
[FONT="]I know how to write an IF statement that looks at a string of text, and will perform an action if the string CONTAINS a certain "word" using
[/FONT][FONT="]=IF(ISNUMBER(SEARCH("*word*",A1)),"word","")
[/FONT][FONT="]
[/FONT][FONT="]But
Is it possible to write an IF statement that looks at a string of text, and will perform an action if the string CONTAINS any one of a list of certain words?
e.g.
[/FONT][FONT="]I have a list of addressess which include the country. I want to do something based on whether the address is in Europe
using similar notation as above, I need something like:
[/FONT][FONT="] =IF(ISNUMBER(SEARCH("*
[/FONT][FONT="]=IF(ISNUMBER(SEARCH("*word*",A1)),"word","")
[/FONT][FONT="]
[/FONT][FONT="]But
Is it possible to write an IF statement that looks at a string of text, and will perform an action if the string CONTAINS any one of a list of certain words?
e.g.
[/FONT][FONT="]I have a list of addressess which include the country. I want to do something based on whether the address is in Europe
using similar notation as above, I need something like:
[/FONT][FONT="] =IF(ISNUMBER(SEARCH("*
- *",A1)),"europe","")
where LIST is a range of cells containing all the European countries "France, Germany, Denmark, ...."[/FONT]