Format Name

D

Dax Arroway

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.
 
M

Mike H

maybe this in b1 and dragged down

=MID(A1,FIND(",",A1,1)+2,LEN(A1))&" "&LOWER(LEFT(A1,FIND(",",A1,1)-1))

Mike
 
J

JE McGimpsey

One way:

=PROPER(TRIM(MID(A1,FIND(",",A1)+1,255) & " " &
LEFT(A1,FIND(",",A1)-1)))
 
D

Dax Arroway

Thanks Mike but the first letter of the last name also goes lower case. How
do I get the first letter to remain capitalized?
 
M

Mike H

It's all to do with spaces, see your other reponse where spaces are trimmed
out.

Mike
 
D

Dax Arroway

PERFECT! Thanks so much! You guys rock. I'd have never figured that out on
my own.
 
R

Rick Rothstein \(MVP - VB\)

If you come back to this thread, here is a shorter alternative method...

=PROPER(MID(A7&" "&A7,FIND(" ",A7)+1,LEN(A7)-1))

Rick
 

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