I have a table (Table1) with "Keywords" down one column, and their corresponding "Category" in the next column, for example:
Keyword Category
EE Telecommunications
Water Utilities
Amazon Internet Transaction
On a separate worksheet, I have another table (Table2) of transactions. I want to check if any of the Keywords from Table1 are in the description of each transaction in Table2, and if so, return the corresponding Category (from Table1). If multiple matches are found, I just need a value returned to indicate so (so either the name of the only category matched, blank for no matches found, or another value (e.g 'Multiple') if more than one matches were found).
I have tried INDEX/MATCH
and SEARCH
combinations, and I've been researching for hours. I'm pretty sure I need to use an {array}
formula, but I just cannot get it right.
I've also tried VBA to run through each row in Table2 to check against each row in Table1 which does work, but takes a very, very long time with lots of transactions.
Table2 needs to look something like this:
Description Category
PAYPAL PAYMENT Internet Transaction
AVIVA Insurance
BD270 MKN
Anglian Water Utilties
ATM 32334 <multiple matches>