Help writing an IF statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to write an IF statement that would put an asterick in a
specific column of the same row where any text residing in Column A matches
specific text.

Example:

Column A of Row 125 contains the text "top rated auto insurance". I would
like for the IF statement to test for the word "insurance" and place an
asterick in Cell I125.

Thanks!
 
In I125 put

=IF(ISERROR(SEARCH("insurance",A125,1)),"","*")

copy throughout column I as needed.
 
JMB,

Is it possible to add additional words to a statement of this nature?

Examples:

coverage
homeowners
annuity
blue cross
group

Thanks!

cynichromantique
 
So if A125 contains any of those words, return an "*"?

IF(SUMPRODUCT(--ISNUMBER(SEARCH({"insurance","coverage","homeowners","annuity","blue cross","group"},A125,1))),"*","")
 
Perhaps just

=IF(COUNT(SEARCH({"insurance","coverage","homeowners","annuity","blu
cross","group"},A125)),"*",""
 

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

Similar Threads

if statements 6
Auto Populate a Cell 2
If,Then Statement 1
Multiple ifs 4
Creating a dynamic IF statement 2
IF formula help? 5
IF statement 1
IF Statement using several columns 3

Back
Top