My title is probably a bit confusing and I need to explain it more. I am currently trying to find if a list of keywords appear at all in a cell's text. For example i want to know if the keywords apple and toothbrush ever appear in the query "I have apples for breakfast everyday." but look at each value in the list individually. Now I've already solved this part with a =SUMPRODUCT(--ISNUMBER(SEARCH(B$1:B$4,A1)))>0 formula. However, it needs to go a step further and I'm having trouble getting anything to work and am even wondering if this is possible.
So the issue is that each cell that I want to look up specific keywords in belongs to a specific group that has it's own list. For example the query "I have apples for breakfast everyday" would belong to the "Apple" group. The "Apple" group then has it's own list of keywords I need to look up within that cell like the term "apple" and "toothbrush." I also have another group called "Strawberry" with it's own set of keywords that I want to look up like "trees" and "grass." A visual aid is below.
Excel.PNG
To reiterate I need to be able to match the criteria of column C to column A. Then if those match then I need it to look up all the values in column D to look at a single cell in column B. So for example if the query group name Apple matches with the keyword group name Apple then it will search the cell B1 for all the keywords in column D that are in the Apple group name.
Please let me know if this is possible, if so, how or if you have any questions.
Thanks
Bookmarks