Glad it was what you wanted.Wow, a lot more complicated than I had imagined. You were correct to assume the letters should be in caps. I tested it out and it works perfectly. Thanks so much
Peter, am I mistaken or is your formula returning TRUE for situations where one of the three first characters is non-alphanumeric? For example 1-2345 or 12?45 or -1234 and so on.I have assumed that any letters must be upper case. If so, try this for your custom DV formula.
=AND(LEN(A1)=5,OR(MAX(ABS(77.5-CODE(MID(A1,ROW(INDIRECT("1:3")),1))))<13,ISNUMBER(-MID(A1,ROW(INDIRECT("1:3")),1))),ISNUMBER(-MID(A1,ROW(INDIRECT("4:5")),1)))
Thanks RickPeter, am I mistaken or is your formula returning TRUE for situations where one of the three first characters is non-alphanumeric? For example 1-2345 or 12?45 or -1234 and so on.
Also correct, but I think only in that you have omitted the 5-character test.(I'm sure I'll end up having to eat my words on that)...
I forgot to include that??? Really??? I am so embarrassed!...but I think only in that you have omitted the 5-character test.
I like this variation.So, with a variation to shorten it up even with that additional test, maybe this ..
=(LEN(A1)=5)*(COUNT(FIND(MID(A1,ROW(INDIRECT("1:5")),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",IF(ROW(INDIRECT("1:5"))<4,1,27)))=5)