Vlookup Help!!

  • Thread starter Thread starter kasidickson
  • Start date Start date
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
 
One way:
=IF(SUM(COUNTIF(F2,{"*cat*","*dog*","*bird*"}))=0,"Medium","Other")
or
=IF(SUM(COUNTIF(F2,"*"&{"cat","dog","bird"}&"*"))=0,"Medium","Other")
 
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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top