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.

enter image description here

Share:
6,609

Related videos on Youtube

forlorn
Author by

forlorn

Updated on September 18, 2022

Comments

  • forlorn
    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.

    enter image description here

    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.