Validation of partial data in a cell.

C

Chris

I would like to know how I can perform an IF statement on a cell when looking
at just the first few characters in that cell. Any suggestions?

i.e. Cell A1 = "Test"

If(A1={first two characters},1,0)

Thanks in advance, Chris.
 
D

Dave Peterson

=if(left(a1,2)="te",1,0)
or if you're looking to return 0 or 1:
=--(left(a1,2)="te")
the -- stuff changes the true/false to 1/0.
 

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