I'm not on my usual machine so don't have any existing code to hand but something like the below should work, and offer flexibility -- obviously it would account for 1 to n matches (unlike the formula)...
Place in standard module,and then called via worksheet as:
=CONCAT_CRIT($A2,$D$2:$D$8)
Can also be used to find all search terms across all cells, in single cell, e.g.
=CONCAT_CRIT($A$2:$A$9,$B$2:$B$8)
And has optional variables should you want to modify delimiter, alternative return (for 0 finds) and/or handle duplicity of terms if doing multiple searches where duplicate terms a possibility, e.g.
=CONCAT_CRIT($A$2:$A$9,$B$2:$B$8,"^&",,FALSE)
would give a very different answer to previous despite ranges being same...
default behaviour: Options,Equity,Fund,Revenue,Legal,Compliance
modified behaviour: Options^&Equity^&Fund^&Revenue^&Legal^&Legal^&Compliance^&Equity^&Fund
Bookmarks