Check whether a substring is contained within a string (no error if not)
In Numbers 10.2 I can't seem to find a way to check whether a substring (a single letter, actually) is present within a cell. The FIND and SEARCH functions both return the index of a substring within a string, but return an error if the substring is not found. This won't do for my purposes because my broader requirement is for something like:
if the substring is found in a cell, do some calculation, else do some other calculation, e.g.
if (FIND("X", cell_reference ) > 0, some calculation, 0)
The else case will not work with FIND and SEARCH due to the error returned when the substring is not found. FIND and SEARCH should probably return 0 in those cases, but imagining how things should work is not exactly helpful to me right now.
Can anyone suggest another way to check if a substring is found within a string without failing when it isn't?