• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

cells validation

akika

New Member
hello,
Which validation can i use for a cell to accepts as input format "M <space> 123456"
e.g M 123456
should always start with M followed by space and 5 to 6 numbers

in custom validation ive tried .. wht else should i include to meet the criteria??
=EXACT(LEFT(A3,1),"M ")
 
Hi, "M " is 2 positions, and you only check for 1 in your formula LEFT(A3,1)

perhaps this might work
=AND(LEN(E3)<9,LEFT(E3,2)="M ",ISNUMBER(VALUE(MID(E3,3,6))))
 
Back
Top