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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel data validation to exclude lowercase characters 1

Status
Not open for further replies.

dgillz

Instructor
Mar 2, 2001
10,045
US
Is there a way to use data validation to exclude the possibility of inputting lower case character? Excel 2003. Any help appreciated.

Software Sales, Training, Implementation and Support for Macola, Synergy, and Crystal Reports. Check out our Macola tools:
 
You could use a nasty Custom validation formula:

Code:
=AND(MAX(CODE(MID(C1,ROW(OFFSET($1:$1,0,0,LEN(C1),1)),1)))<=90,MAX(CODE(MID(C1,ROW(OFFSET($1:$1,0,0,LEN(C1),1)),1)))>=65)

replacing C1 with whatever the active cell ref is when you set the Data Validation.

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Actually, thinking about it, this is much a simpler Custom validation formula:

Code:
=EXACT(C1,UPPER(C1))

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 



Glenn,

What beauty: Simplicity!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks Skip. :-D

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Glen,

Please explain that second formula. I used it on the following 3 cell values and they all returned FALSE:

3/31/2010
Don
4/44/2010

Software Sales, Training, Implementation and Support for Macola, Synergy, and Crystal Reports. Check out our Macola tools:
 
Correction, the returned valued were

TRUE
FALSE
TRUE

The TRUE on the last value is problematic.

Software Sales, Training, Implementation and Support for Macola, Synergy, and Crystal Reports. Check out our Macola tools:
 
Please ignore my last 2 posts, I am getting my threads mixed up before I have had coffee this morning.

Software Sales, Training, Implementation and Support for Macola, Synergy, and Crystal Reports. Check out our Macola tools:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top