Vlookup Help!!

K

kasidickson

I am trying to create a column that reads from a cell with a long
string of text. For example: PPC: Intro to World Studies 2003 TRP
Assembly. I've tried using if statements and vlookups to extract "TRP"
from the sentence, I did this using:
=if(isna(match("*TRP*",F2,0),"Medium","Other").

How can I create a fromula that allows me to use multiple conditions?
For example, if the cell contains "Cat", "Dog", "Bird," = animal?

Thanks
 
D

Dave Peterson

One way:
=IF(SUM(COUNTIF(F2,{"*cat*","*dog*","*bird*"}))=0,"Medium","Other")
or
=IF(SUM(COUNTIF(F2,"*"&{"cat","dog","bird"}&"*"))=0,"Medium","Other")
 
K

kasidickson

Thank you , thank you!

Cheers!


Dave said:
One way:
=IF(SUM(COUNTIF(F2,{"*cat*","*dog*","*bird*"}))=0,"Medium","Other")
or
=IF(SUM(COUNTIF(F2,"*"&{"cat","dog","bird"}&"*"))=0,"Medium","Other")
 
Top