I require a custom formula for in cell data validation of an 5 digit alphanumeric entry.
The valid format is ANNNN (1 x alpha & 4 x numeric).
Case of the aplha is not an issue.
Any help would be appreciated.
I require a custom formula for in cell data validation of an 5 digit alphanumeric entry.
The valid format is ANNNN (1 x alpha & 4 x numeric).
Case of the aplha is not an issue.
Any help would be appreciated.
Last edited by wotadude; 05-19-2009 at 04:23 PM.
The easiest way to develop a validation formula is to put candidate values in a column (say A), and a formula in col B that returns True if the corresponding entry is valid.
In the case, you need a formula with AND, LEN, LEFT, and RIGHT functions.
Then copy the final formula to data validation with references adjusted appropriately.
Entia non sunt multiplicanda sine necessitate
Greetings from the 'Naki.
To validate A1 use custom validation like
=AND(LEN(A1)=5,ISTEXT(LEFT(A1,1)),ISNUMBER(VALUE(RIGHT(A1,4))))
HTH
thanks but....
Teylyn - that was similar to what i tried too.
However it still returns true if the first alpha character is substitued for a number.
But with a bit more creativity i came up with -
=AND(LEN(A1)=5,ISERROR(VALUE(LEFT(A1,1))),ISNUMBER(VALUE(RIGHT(A1,4))))
Not pretty but seems to work.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks