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 fu...
- Apr 04, 2020
Abiola1
Apr 04, 2020MVP
=IF(ISTEXT(FIND("yel",A1)),0,"Y")
- Riny_van_EekelenApr 04, 2020Platinum 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")
- Abiola1Apr 04, 2020MVPActually meant
=IF(ISERR(FIND("yel",A1)),0,"Y")