Hi,
I would like to implement a container number in the app sheet. Is it possible to validate based on the first 4 characters are alphabets and the next 7 characters numbers and shows that entry is invalid if it does not meet the requirement?
Solved! Go to Solution.
Unfortunately the expression will need to be much more complicated. So youโll need to use an expression like the below. I have tested it and it works well.
AND(
LEN([_THIS]) = 11,
AND(NUMBER(MID([_THIS],1,1))=0, MID([_THIS],1,1) <> "0"),
AND(NUMBER(MID([_THIS],2,1))=0, MID([_THIS],2,1) <> "0"),
AND(NUMBER(MID([_THIS],3,1))=0, MID([_THIS],3,1) <> "0"),
AND(NUMBER(MID([_THIS],4,1))=0, MID([_THIS],4,1) <> "0"),
OR(NUMBER(RIGHT([_THIS],7)) > 0, RIGHT([_THIS],7) = "0000000")
)
I would also recommend including a custom error message for when the format is invalid. An example might be:
"Correct format is 'xxx0000000' - 11 characters with 4 letters followed by 7 numbers"
Customer Message Goes Here:
Message Shows like this
User | Count |
---|---|
17 | |
14 | |
10 | |
7 | |
4 |