dparteka
Member
I'm using the formula below in a data validation and it works fine. It allows only numeric value entries with the one exception of an upper case "N/A". I've been trying to expand on this to also include the use of hyphens. So, legitimate entries would be an uppercase N/A or any number combination with or without a hyphen(s). Thank you for looking and I appreciate the help.
Some examples:
N/A
123456
12345678
1-123456
123-45678
123456-8
123-456-789-1
Current data validation formula being used:
=OR(AND(EXACT(W2, UPPER(W2)), W2 = "N/A", ISTEXT(W2)), ISNUMBER(W2))
Some examples:
N/A
123456
12345678
1-123456
123-45678
123456-8
123-456-789-1
Current data validation formula being used:
=OR(AND(EXACT(W2, UPPER(W2)), W2 = "N/A", ISTEXT(W2)), ISNUMBER(W2))