Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jhg1226
 
Posts: n/a
Default If the user inputs lower case y/n answer How do I convert automat.

In Excel I have a column which asks for a Y or N response. If the user
inputs y or n in lower case Can I have Excel convert it to Upper Case?
  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Use Data Validation to force user to input uppercase
But, Excel is not case sensitive so =IF(A1="Y", Dothis, Dothat) will give
DoThis for A1 = Y or y
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"jhg1226" wrote in message
...
In Excel I have a column which asks for a Y or N response. If the user
inputs y or n in lower case Can I have Excel convert it to Upper Case?



  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

Right-click the sheet tab, go to View Code, and insert
the code below:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Column = 1 Then '1 = col. A, 2 = col. B, etc.
If .Count = 1 Then
If .Value = "y" Or .Value = "n" And _
.Value = LCase(.Value) Then
Application.EnableEvents = False
.Value = UCase(.Value)
Application.EnableEvents = True
End If
End If
End If
End With
End Sub

----
Press ALT+Q to return to XL. The code is set to evaluate
entries in col. A (1). Change if necessary.

HTH
Jason
Atlanta, GA

-----Original Message-----
In Excel I have a column which asks for a Y or N

response. If the user
inputs y or n in lower case Can I have Excel convert it

to Upper Case?
.

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
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 07:21 AM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM


All times are GMT +1. The time now is 02:53 PM.

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"