Column A holds all the values that are used to find/search in entries within Column B.
For example... Excel will grab all the search data from column A, if it finds any of those entries anywhere in column B then it marks the cell where it found a match as Yes in column C.
Please note that in the example below A1 is (111) and B13 is (2211122). As (111) was found within that string then it has found what it is looking for and marked it as yes.
You can use folloiwng array formula:
=IF(SUM(IFERROR(FIND($A$1:$A$9,B1),0))>0,"Yes","No")
Just select C1
cell, enter this formula in formula bar, press CTRL+SHIFT+ENTER to evaluate it and then drag it down.
UPD:
If your substrings in column A
has spaces in the beggining or in the end, you can use next function:
=IF(SUM(IFERROR(FIND(TRIM($A$1:$A$9),B1),0))>0,"Yes","No")