upper/lower formula

elena13c

New Member
Joined
Feb 28, 2018
Messages
2
Hello,

I have a huge excel where the first and last names in a cell are like this : JAMES SMITH.

Could you help me please with a formula so I can have James SMITH?

Thank you in advance
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
this is not the fastest way to do it and it will only work when names are like James Smith or John Doe.
Code:
Sub Elena()
For Each cl In Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row)
cl.Value = Left(cl, 1) & LCase(Mid(cl, 2, InStr(cl, " ") - 2)) & " " & Right(cl, Len(cl) - InStr(cl, " "))
Next
End Sub
 
Last edited:
Upvote 0
Sorry, I misread the OP.

Try again

=PROPER(LEFT(A1,FIND(" ",A1)))&MID(A1,FIND(" ",A1)+1,100)

:-)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top