IF Statement???

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

Guest

I am looking for a way to populate a cell with a value if another cell has a
certain word in it. If "A1" has "newark pre-owned" in it I would like to
search for "pre-owned" only and insert my value in "B1."

Thanks in advance for your assistance.

Fish
 
Here's one way:

Enter this formula in B1:

=IF(COUNTIF(A1,"*pre-owned*"),your_value_here,"")

Replace your_value_here with your value. If your value is a number just
enter that number: 10. If your value is a TEXT string enclose it in quotes:
"Yes".

The "" at the end will leave the cell blank if pre-owned is not found in
cell a1.

Biff
 
Awesome, thank you very much. You have saved me hours of sorting through over
50,000 terms and pasting as needed. Thanks again.

Fish
 
You're welcome. Thanks for the feedback!

Biff

Fish said:
Awesome, thank you very much. You have saved me hours of sorting through
over
50,000 terms and pasting as needed. Thanks again.

Fish
 

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