Hey,
I am having trouble with a formula using multiple IF statements with OR and FIND.
Essentially, what I want to do is assign certain statuses to a single text-based column called “phrases”.
The column contains a variety of food types that are embedded in sentences.
I want the following functions in one formula column:
-If a cell in the “phrases” column contains the word “strawberry”, “grape”, “apple” or “raspberry”, then assign that record “fruit”.
-If a cell in the “phrases” column contains the word “avocado” or “squash”, then assign that record “vegetables”.
-If a cell in the “phrases” column contains the word “rice”, or “quinoa”, then assign that record “grain”.
-If a cell in the “phrases” column contains the word “milk” or “yogurt”, then assign that record “dairy”.
-If a cell in the “phrases” column contains the word “butter”, “olive oil”, or “fat”, then assign that record “oil”.
-If a cell in the “phrases” column contains the word “chickpeas” or “lentils”, then assign that record “peas”.
-If NONE of the conditions are met just leave the cell blank
I have success with the first one (fruits) using the following formula:
IF(
OR(
FIND(
“Strawberry”, {Phrases}
),
FIND(
“Grape”, {Phrases}
),
FIND(
“Apple”, {Phrases}
),
FIND(
“Rasberry”, {Phrases}
)
), “Fruit”,"")
However, I have no idea what the proper format is to add the rest of the conditions (the remaining IF statements with the OR and FIND) to this formula. Any help would be much appreciated- thanks!