Using "*" and "#" in If statements

E

Eric

I am trying to write an if statement to return a TRUE for any cell with a
string of text starting with "B". Was thinking something like
if(B2="B"&***,B2,"") but I don't know the proper syntax for the B***.

Any thoughts are appreciated.

Thanks
 
D

Dave Peterson

=if(left(b2,1)="b","starts with B","doesn't start with B")
or
=if(countif(b2,"B*")>0,"starts with b","doesn't start with b")
 

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