welcome to the forum, cool_anu4u. can't you post your sample excel file without confidential data & let us do the pattern analyzing? otherwise, you would keep coming up with problems. for SUMPRODUCT, you can add the red portion:
=SUMPRODUCT(--ISNUMBER(SEARCH(" "&$A$2:$A$100&" "," "&B2&" ")))>0
or you can use:
=ISNUMBER(LOOKUP(2^15,SEARCH(" "&$A$2:$A$100&" "," "&B2&" ")))
so if "Dog" is under column A & you have these in column B:
Junior-Dog
Junior is a Dog.
both are supposed to read TRUE? if so, you can either range up those in column A which are not blanks like this:
Formula:
=ISNUMBER(LOOKUP(2^15,SEARCH(" "&$A$2:$A$6&" "," "&SUBSTITUTE(SUBSTITUTE(B2,".",""),"-"," ")&" ")))
or do a dynamic range:
Formula:
=ISNUMBER(LOOKUP(2^15,SEARCH(" "&$A$2:INDEX(A:A,COUNTA(A:A))&" "," "&SUBSTITUTE(SUBSTITUTE(B2,".",""),"-"," ")&" ")))
A2 is where i start. COUNTA counts the number of filled cells in column A. say you start in A4 & there is a header in A3 & nothing in A1:A2, then it's COUNTA(A:A)+2
Bookmarks