capitalising names

G

Graham Warren

I have a list of students names (about 300) all in lower case: ie harriett,
alan, michael. Is there a (quick) way of capitalising the first letter so
that it reads Harriett, Alan, Michael? I really don't want to have to
re-type the whole lot.

Many thanks.
 
F

Frank Kabel

Hi
use the following macro:
Sub ConvertToProper()
Dim Rng As Range
For Each Rng In Selection.Cells
If Rng.HasFormula = False Then
Rng.Value = application.worksheetfunction. _
proper(Rng.Value)
End If
Next Rng
End Sub
 
G

Guest

The only way I can think of is to do a find and replace
for each letter that a first name begins with. For
example: you would find all h* and replace with H

This would make all the first names that start with h to
turn to H, but you'd have to do it for each letter?
 
D

Dave R.

You can see the other solutions. Yours could/would change, eventually, every
letter of every name to upper case.
 
E

Eaon Whatmough

Assuming your list is in column A, choose an empty
column, say column C. In cell C1 type =Proper(a1)then
drag this down to extent of your list i.e. 300 rows. This
will capitalize all your names.

Then select all cells in column C, right click, copy,
goto A1 choose Paste Special, Values, this will copy all
your capilazed names back into column A. Now delete
column C, job done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top