Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Find category based on columns of filters used as search filters (including sub-words)

$
0
0

I want to create columns of category filters, and then determine for each cell which column it fits with. Consider this table:

ABCDE
1TextCategorySodaCoffeeTea
2I'd like a pepsi with my food.pepsicappuccinomatcha
3The matcha is not my favorite.fantaespressotea
4Do you want a cappuccino?macchiatomint
5I want steak.

When it does searches for which column matches, it fills in Column B like this. Notice that it finds "tea" inside "steak" too:

B
1Category
2Soda
3Tea
4Coffee
5Tea

I tried using SEARCH and REGEXMATCH but couldn't figure it out.

Note that this is different than this question since that's asking for if the entire value of Column A is in another column, whereas I'm asking for just a portion to match.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>