Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Data Validation - Do not allow the letter "O"
Is there a way in data validation not to allow the letter "O" to be
contained? Also I need it to be no more than 5 characters and/or numbers. This is an employee number that is 5 characters, but never contains the letter "O". I do not want the user to mistakedly type in "O". I need it to prompt that they must use the number "0". Thanks in advance. |
#2
|
|||
|
|||
Try this:
Custom, and enter this formula: =AND(LEN(A1)=5,ISERR(SEARCH("o",A1))) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "jhicsupt" wrote in message ... Is there a way in data validation not to allow the letter "O" to be contained? Also I need it to be no more than 5 characters and/or numbers. This is an employee number that is 5 characters, but never contains the letter "O". I do not want the user to mistakedly type in "O". I need it to prompt that they must use the number "0". Thanks in advance. |
#3
|
|||
|
|||
One way, assume number is in B1, in validation use custom and
=AND(LEN(B1)5,ISERR(SEARCH("o",B1))) -- Regards, Peo Sjoblom (No private emails please) "jhicsupt" wrote in message ... Is there a way in data validation not to allow the letter "O" to be contained? Also I need it to be no more than 5 characters and/or numbers. This is an employee number that is 5 characters, but never contains the letter "O". I do not want the user to mistakedly type in "O". I need it to prompt that they must use the number "0". Thanks in advance. |
#4
|
|||
|
|||
Thanks - it worked perfectly!
"Peo Sjoblom" wrote: One way, assume number is in B1, in validation use custom and =AND(LEN(B1)5,ISERR(SEARCH("o",B1))) -- Regards, Peo Sjoblom (No private emails please) "jhicsupt" wrote in message ... Is there a way in data validation not to allow the letter "O" to be contained? Also I need it to be no more than 5 characters and/or numbers. This is an employee number that is 5 characters, but never contains the letter "O". I do not want the user to mistakedly type in "O". I need it to prompt that they must use the number "0". Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Data validation screen size | Excel Discussion (Misc queries) | |||
data validation lists | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
Pulling data from 1 sheet to another | Excel Worksheet Functions | |||
Using Validation List from Another Workbook with Dependent Data | Excel Worksheet Functions |