Searching a cell for a certain character.

M

Matt

I would like to be able to search a cell for a certain "character" and if it
contains that character, I would like another cell to say one thing and if it
does not contain the Character I am looking for, the cell will say something
else.

I hope this says enough.
 
P

Peo Sjoblom

One way

=IF(ISNUMBER(FIND("Z",A1)),"one thing","something else")


Regards,

Peo Sjoblom
 
R

Ron de Bruin

Try this for the character r in D1

=IF(COUNTIF(D1,"*r*")=0,"not exist","exist")
 
D

Dave R.

The two most apparent options involve FIND or SEARCH.

FIND is case sensitive and SEARCH is not.

Here is sample formula
=IF(ISNUMBER(FIND("p",A1)),"say one thing","say something else")
 

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