Hello Lilly,
This macro is a User Defined Function. It works like a regular Worksheet function. It determines the length of columns A to C on the specified worksheet. The category search columns can not be on the same worksheet as the search term.
Copy this code. After you have inserted a Standard VBA Module into your Workbook, paste the code into it.
Example:
Sheet2 "B1" = "London"
Sheet2 "C1" Formula: =FindCategory(B1, 'Sheet1'!A:C)
C1 will display what categories matched.
Sincerely,
Leith Ross
Bookmarks