Mike Welch
Board Regular
- Joined
- May 26, 2010
- Messages
- 64
- Platform
- Windows
- MacOS
I'm looking for the word "and" in a text string, A1, and want to know where it occurs. I'm using
=SEARCH("and",A1)
If it's there I get a number indicating where it's located, e.g.: 55 If it's not there I get #VALUE! - I'd rather have nothing at all. Any ideas?
Also, what if I just wanted a Yes/No response to finding the word "and"? I tried =IF(SEARCH("and",A1),"yes", "no") but that failed.
Mike Win XP Pro SP3 / Excel 2003 SP3
=SEARCH("and",A1)
If it's there I get a number indicating where it's located, e.g.: 55 If it's not there I get #VALUE! - I'd rather have nothing at all. Any ideas?
Also, what if I just wanted a Yes/No response to finding the word "and"? I tried =IF(SEARCH("and",A1),"yes", "no") but that failed.
Mike Win XP Pro SP3 / Excel 2003 SP3