Welcome to the forum.
Assuming your table represents columns A and B, put this in C2 and copy down:
Formula:
=TRIM(IF(COUNT(SEARCH({"Raspberries","Blueberries","Blackberries"},A4)),"Berries","") &" "& IF(COUNT(SEARCH({"Star Fruit","Banana"},A4)),"Tropical Fruit","") &" "& IF(COUNT(SEARCH({"Apple","Orange"},A4)),"Everyday Fruit",""))
The only problem is that this doesn't put a comma between your categories. If you want the comma, you can replace the &" "& with &", "& but then you'll get results such as ', Tropical Fruit,' or 'Berries, ,' or 'Berries, , Everyday Fruit' - it's up to you which you prefer.
Hope that helps.
Bookmarks