I am having trouble assigning category Values in a table according to wildcards in another table. There seem to be no function in calc that would help me to solve this problem.
Example:
Data Table (bold values in the category column are inserted by a function)
| Sentence | Category |
|---|---|
| This is an BMW model | Car |
| This Phillips is for the kitchen | Kitchen applience |
| This is Synology device | NA |
Assignment Table
| Search Term | Category |
|---|---|
| BMW model | Car |
| Phillips | Kitchen applience |
| * | NA |
So what I want to achieve is similar to VLOOKUP but the search term (lookup value) and the text must be in the opposite tables.
Is this achievable with only calc functions or do I need a macro for that?
Any help, hints or links to existing solution is much appreciated!
UPDATE: Those tables are on a separate Sheets.