Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Data Validation Problem

Status
Not open for further replies.

LeighAnne

Technical User
Mar 8, 2002
65
GB
I am having a problem creating a formula when using custom in data validation. I want the entry in the cell A9 to be restricted to a 6 or 7 digit number or the text "O/H".

I am using the following formula but it currently evaluates to an error:

=OR(A9="O/H",AND(A9>=100000,A9<=9999999)

Can anyone help?
 
you WILL kick yourself:

=OR(A9="O/H",AND(A9>=100000,A9<=9999999))

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Nooooooooooooooooooooooooooooo!

Self now seriously kicked!

Cheers Geoff!
 
LOL

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top