Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jhicsupt
 
Posts: n/a
Default 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   Report Post  
Ragdyer
 
Posts: n/a
Default

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   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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   Report Post  
jhicsupt
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data validation screen size Brad Excel Discussion (Misc queries) 2 July 13th 05 09:18 PM
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Using Validation List from Another Workbook with Dependent Data Mike R. Excel Worksheet Functions 5 January 8th 05 07:06 PM


All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"