Extract certain words from strings of text in Excel cells
6,609
This will return the correct value:
=INDEX({"High","Medium","Low"},AGGREGATE(15,6,ROW($1:$3)/(ISNUMBER(SEARCH("*" & {"High";"Medium";"Low"} & "*",A1))),1))
It iterates the possible words and returns the one that does not return an error as a number in order to the INDEX.
Related videos on Youtube
Author by
forlorn
Updated on September 18, 2022Comments
-
forlorn over 1 year
I have a column of cells filled with a lot of text. I only need one word from each cell. If you look closely you will see that the latter part of each cell says either High, Medium, or Low.
I want to create a column next to this one that extracts this word (High, Medium, or Low) from the text string. My initial thought was to extract based on position, but the words are in varying positions.