Hi, I have a list of data in column G containing multiple values seperated by commas.
I want to reference a list in column B and then if a value in that list is located in the cell in Column G, I want it to return that value.
For example, my list is made up of the following values, red, red ball, red pen, make, shift, computer.
I then want it to look at my cell in column G and return only 1 value based on the most appropriate match.
If the cell in column G, contains the values red ball, walk, show, tent, invade. I just want it to return 'red ball', rather than both 'red' and red ball.
I have tried multiple formulas but no luck yet.
=TEXTJOIN(", ",TRUE,IF(COUNTIF(G2,"*"&$B$2:$B$10&"*"),$B$2:$B$10,"")) - This will return all values seperated by a comma
=IF(OR(INDEX(COUNTIF(G2,"*"&($B$2:$B$10)&"*"),)),$B$2:$B$10,"") - This doesnt seem to work because it doesnt know which value to return.
Any help would be much appreciated.
Bookmarks