You are on page 1of 1

Comparing strings If any substring of A1 ("I have a stomache") matches any of the string in colums B ("stomache", headache", "cramps",

etc), put in C1 the value of A1 ("I have a stomache"). In this case, "stomacache is found within ("I have a stomache"), therefore C1="I have a stomache". =IF(COUNTIF(A:A,"*"&B1&"*")>0,INDEX(A:A,MATCH("*"&B1&"*",A:A,0)),"")

You might also like