Forum Discussion
giuliost
Jan 05, 2022Copper Contributor
Help! If contains formula multiple options.
Hi, I need to do a formula to return different words like this: IF contains the word "Apple" then return "Fruit", or IF contains "plate" return "Restaurants", or IF contains the word "Gym" return the...
- Jan 05, 2022
The attached version will work in older versions of Excel too, but it will return only one category.
SergeiBaklan
Jan 05, 2022MVP
For such layout
formula could be
=INDEX(
Dict[category],
SUM( ISNUMBER(SEARCH(Dict[word], [@Phrase]) ) *
SEQUENCE( ROWS(Dict[word] ) ) ) )