string matching - excel partial match in reverse -
i have 2 columns. 1 has values like:
0008347_abcd 2008756_abgr 0008746_gss1 .......
and second column 4 digit numbers of above column entries partially match i.e.
8347 8746 ...
i want find of first column entries have partially matching entry in second column. can return (true false, 0 1), want find them. in above example flag first , third values. there might multiple entries in column 1 match 1 entry in column 2 , flag them all.
the first column has 3346 entries , second 334. can me in excel?
this give 1s , 0s:
=sumproduct(1*(isnumber(search($c$1:$c$2,a1))))
for true/false:
=sumproduct(1*(isnumber(search($c$1:$c$2,a1))))>0
Comments
Post a Comment