I have a few items for lookup defined in a range, e.g.
Col A is the name and B is the Category.
In another sheet, I have column A with free form text which may have a mention of the words listed above. The text cannot have more than one of the above words.
E.g.
I want to set the value of column B as the Category of the word from the first range, e.g. Essentially I want to identify the word from first range that matches the text in the second range and use the index of the matched word to get a value for the Category.
How to do it?
Col A is the name and B is the Category.
Biscuit | Snack |
Sandwich | Snack |
Milk | Beverage |
Potato | Vegetable |
In another sheet, I have column A with free form text which may have a mention of the words listed above. The text cannot have more than one of the above words.
E.g.
I like Biscuits | |
Need to buy Milk | |
Milk is healthy |
I want to set the value of column B as the Category of the word from the first range, e.g. Essentially I want to identify the word from first range that matches the text in the second range and use the index of the matched word to get a value for the Category.
I like Biscuits | Snack |
Need to buy Milk | Beverage |
Milk is health | Beverage |
How to do it?