Extract First Name Last name

patneel

New Member
Joined
Jan 19, 2010
Messages
4
Hi,

I have data stored as Last Name, First name but I want to get it now First Name Last Name (no comma)

Example-
Data-
Ho, Joseph zu-sien

Required Result-
Joseph zu-sien Ho


Also the lenghth of each name would be different so can not use fixed number to get required result.


Appreciate any help..
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Is this really worth discussing for there can be 0 to N spaces around the parts of the names and/or nothing after the comma? The +1 bit after FIND within REPLACE won't work as you may guess.
Ah, okay, I see... I was thinking too narrowly there. Thanks!
 
Upvote 0
If there is always a space after the comma...

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

otherwise...

=TRIM(MID(A1&" "&A1,FIND(",",A1)+1,LEN(A1)))

As a result of an exchange I just had with Aladin, if you are considering using my formula approach, then you should use this version of the formula as it is far more robust than the other one that I posted...

=TRIM(MID(A1&" "&A1,FIND(",",A1)+1,LEN(A1)))
 
Upvote 0

Forum statistics

Threads
1,222,830
Messages
6,168,509
Members
452,194
Latest member
Lowie27

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