E3
=if(columns($e3:e3)>sumproduct(countif($b3,"*"&$k$6:$k$9&"*")),"",index($k$6:$k$9,match(small(index(search($k$6:$k$9,$b3&""&$k$6:$k$9),0),columns($e3:e3)),index(search($k$6:$k$9,$b3&""&$k$6:$k$9),0),0)))
try this and copy across