Forum Discussion
lucas_h
Apr 04, 2020Copper Contributor
Return value Y/N if text is within a cell.
Good morning Microsoft Tech Community,
I am fairly new to Excel and quite amazed at how powerful this tool can be. I figured there would be no better place to find an answer than here!
What function /formula would I use to acknowledge an "abbreviated" text is found within a cell
see below: (In this case I simply want to add a formula in B1 and drop down, a "Y" would signify "yel" is within the text and "0" would indicate it is not)
Any help is greatly appreciated!!
Lucas
6 Replies
- SergeiBaklanDiamond Contributor
- =IF(ISTEXT(FIND("yel",A1)),0,"Y")
- Riny_van_EekelenPlatinum Contributor
Abiola1 Not really! If found, it will return a number. If not, the result will be #VALUE!. Neither is a text, thus the result will always be "Y".
Perhaps you meant:
=IF(ISERROR(FIND("yel",A1)),0,"Y")
- Actually meant
=IF(ISERR(FIND("yel",A1)),0,"Y")
- Riny_van_EekelenPlatinum Contributor
- lucas_hCopper Contributor
Riny_van_Eekelen It worked! Greatly appreciate your help.