I believe you want to use the PROPER function.
If A1 contains "This is a test" then PROPER(A1) will return "This Is A Test"
This is a discussion on Make the First letter Capital within the Excel Questions forums, part of the Question Forums category; This is probably a simple question, but I have searched the archives and cannot find the answer... How can I ...
This is probably a simple question, but I have searched the archives and cannot find the answer... How can I make the first letter of every work a capital letter?
Thanks for any help!
I believe you want to use the PROPER function.
If A1 contains "This is a test" then PROPER(A1) will return "This Is A Test"
In addition, you could use ASAP-utilities, a free download from:
http://asap-utilities.com
[ This Message was edited by: Aladin Akyurek on 2002-05-20 13:03 ]
Thanks!
Can I apply proper to an entire worksheet? Or do I have to put it in each cell?
You could try putting this in the worksheet's code module :-On 2002-05-20 13:08, Yadlik wrote:
Can I apply proper to an entire worksheet? Or do I have to put it in each cell?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
For Each cell In Target
If cell.HasFormula = False Then
cell.Value = StrConv(cell.Value, vbProperCase)
End If
Next cell
End Sub
[ This Message was edited by: ldry on 2002-05-20 17:21 ]
Try something like this:
=SUBSTITUTE(PROPER(SUBSTITUTE(A1,"'","Q")),"q","'")
“The early bird gets the worm, but the second mouse gets the cheese.”
Put Yourself on the Excel Map:
http://www.mapservices.org/myguestmap/map/MrExcel
Instructions for Map:
http://www.mrexcel.com/map.html
Hello,
First time poster here.
I am looking to also get a capital for the first word and need to know a command.
I get XLS data and the words are in all capital. I use the =lower(**) command to get them all in lowercase. but what I want is to also have the first letter in the word to be in capital. What else do i need to achieve this.
Thanks in advance.
Andrew
Bookmarks