Try these array formulas, in F2
Formula:
=IFERROR(INDEX($A$2:$A$21,MATCH(TRUE,ISERROR(MATCH($A$2:$A$21,$F$1:$F1,0)),0)),"")
and G2
Formula:
=IF(F2="","",INDEX($K$1:$K$4,MATCH(MAX(COUNTIFS($A$2:$A$21,F2,$C$2:$C$21,"*"&$K$1:$K$4&"*")),COUNTIFS($A$2:$A$21,F2,$C$2:$C$21,"*"&$K$1:$K$4&"*"),0)))
With a list of the words to search for in $K$1:$K$4. Note that if you copy and paste the words from your sample, there is a stray space at the end of 'Availability ' which needs to be removed of the second formula will fail.
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Bookmarks