Some parameters without REGEXMATCH , since you might want to be insenstive and don't want to say blast or ablative to call YES . Using a comma as a separator, as in the OP, and currently ignoring the IF condition:
At first very similar to @ user1598086 answer:
=FIND("bla",A1)
Case sensitive, but returns #VALUE! not NO and the number, not YES (both of them, however, can be changed to NO / YES, respectively).
=SEARCH("bla",A1)
Case insensitive, therefore, treats Black and Black equally. Returned as above.
The first (for the last equivalent) indicates whether bla present after the first three characters in A1:
=FIND("bla",A1,4)
Returns a number for blazer, black , but #VALUE! for blazer, blue .
Find bla only when the full word itself (i.e. between spaces - not at the beginning or at the end of a sentence):
=SEARCH(" Bla ",A1)
Since the return in all of the above cases is either a number ("found", so YES preferred) or #VALUE! , we can use ISERROR to test #VALUE! in the IF formula, for example, using the first example above:
=if(iserror(FIND("bla",A1)),"NO","YES")
Longer than REGEXMATCH , but components are easily customizable.
pnuts Apr 23 '15 at 19:58 2015-04-23 19:58
source share