SOLVED

Data validation

Copper Contributor

Hi

 

Is it possible to create a custom data validation, so that one can only type in a value like "123456-7890"?

The point is that the ones typing information in the given cells can only type in 6 numbers followed by a dash and then followed by 4 numbers.

2 Replies
best response confirmed by PatrickCarlsen (Copper Contributor)
Solution
I don't think you can restrict it to numbers, but a rule like this can do the general format: =NOT(ISERROR(MATCH("??????-????",A1,0)))
Thanks a lot. That worked
1 best response

Accepted Solutions
best response confirmed by PatrickCarlsen (Copper Contributor)
Solution
I don't think you can restrict it to numbers, but a rule like this can do the general format: =NOT(ISERROR(MATCH("??????-????",A1,0)))

View solution in original post