Ensuring Correct Vin Number is entered

R

Rocko

When completing a job sheet we are required to enter a 17 character serial
number. For example 6J6006636DD8X2456. This would be easy enough to deal with
using data validation, but the problem arises when further information is
added when there are multiple units being built. For example 2 units may be
entered as 6J6006636DD8X2456--2457 or 6J6006636DD8X2456 & 2457 depending on
who is processing the job sheet. I want to know how I can ensure that the
initial 17 character serial number length is always correct, regardless of
any additional information that is added. Any help would be greatly
appreciated.
 
J

Jacob Skaria

Try the below and feedback. I have tried in Col E

Select Colum E Data>Validation>Custom>
=LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LEFT(E1,17)," ",),"-",),"&",))=17

If this post helps click Yes
 
R

Rocko

Thank you Jacob. Works great.

Jacob Skaria said:
Try the below and feedback. I have tried in Col E

Select Colum E Data>Validation>Custom>
=LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LEFT(E1,17)," ",),"-",),"&",))=17

If this post helps click Yes
 

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