search array of strings inside other string
I am trying to determine if any of the individual strings in an array/table of strings (i.e. Sheet2 A1:A4) is a substring in another cell (Sheet1 A1).
Sheet1 A 1 "Letter to Bob" Sheet2 A 1 Sam 2 Bill 3 Bob 4 Dick
Are any of the strings in Sheet2 A1:A4 inside the Sheet1 A1 string?? (In this example, the answer is Yes.. Bob is found in Sheet1 A1)
What would the formula to accomplish this look like??
Not sure what information you really want to have: Check
=IFNA(MATCH(1;NOT(ISNA(REGEX(Sheet1.$A$1;A1:A4)));0);"no match")
, which provides either the number (i.e. the index) of the first name inA1:A4
to appear inSheet1.A1
(here:3
) or "no match", if no name does appear inSheet1.A1
Thank you. I just need a boolean if one was found. Thank you... I will examine your example to better understand your solution.