Count within Cell

B

Bob Phillips

You could use data validation with a formula of

=AND(LEN(E1)=15,OR(AND(LEFT(E1,3)="LMN",MID(E1,4,5)="00000",ISNUMBER(--RIGHT(E1,7)),LEN(RIGHT(E1,7))=LEN(SUBSTITUTE(RIGHT(E1,7),"0",""))),
AND(LEFT(E1,3)="KLM",MID(E1,4,7)="0000000",ISNUMBER(--RIGHT(E1,5)),LEN(RIGHT(E1,5))=LEN(SUBSTITUTE(RIGHT(E1,5),"0","")))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

 

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