Contents

L

lightbulb

How do I set up a formula so that if a cell contains certain txt, then the
cell I'm in will display certain text?

For Example, I'm entering the formula in C5, if B5 contains the word
"Assembly" anywhere in it, then I want C5 to say Assembly, otherwise I want
it to copy B5.

Any help?
 
D

Dave Peterson

=if(countif(b5,"*"&"assembly"&"*")>0,"Assembly",b5)
or
=if(isnumber(search("assembly",b5)),"Assembly",b5)

=search() ignores upper/lower case.

Use =Find() if case is important.

(=countif() ignores case, too.)
 

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

Top