Convert proper name format.

Doug24

New Member
Joined
Jul 13, 2015
Messages
13
I would like to change names formatted like this:

John Smith

to this:

Smith J

Thanks for any help,
Doug
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If the format is also exactly two words separated by a single space, then you could use this formula (for an entry in cell A1):
Code:
=RIGHT(A1,LEN(A1)-FIND(" ",A1)) & " " & LEFT(A1,1)

If you can have more words, then it gets real tricky, because how can you tell how many names go with first name and how many go with last?
For example, you could have a two first name, like:
Billy Ray Cyrus
oe you could have a two word last name, like:
Martin Van Buren

So, you really cannot develop a "hard-and-fast" rule that will handle all these possibilities perfectly.
 
Upvote 0
Thanks Joe. That's exactly what I need. I do see what you're saying about more than two word names.
I'm lucky that any double word last names are entered without the space so Van Buren is entered as
VanBuren and I don't have any double word first names.

Thanks again for your help.
Doug

If you can have more words, then it gets real tricky, because how can you tell how many names go with first name and how many go with last?
For example, you could have a two first name, like:
Billy Ray Cyrus
oe you could have a two word last name, like:
Martin Van Buren

So, you really cannot develop a "hard-and-fast" rule that will handle all these possibilities perfectly.
 
Last edited by a moderator:
Upvote 0
You are welcome!

I'm lucky that any double word last names are entered without the space so Van Buren is entered as
VanBuren and I don't have any double word first names.
Well, that certainly makes things easier! Its nice when things work out like that.
Many times, we are trying to deal with a lot of messy data.
 
Upvote 0
Hi,

Here's another formula to consider:


Book1
AB
1John SmithSmith J
Sheet182
Cell Formulas
RangeFormula
B1=MID(A1,FIND(" ",A1)+1,255)&" "&LEFT(A1,1)
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,107
Members
452,544
Latest member
aush

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