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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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