Text Separation

compman

New Member
Joined
Aug 26, 2002
Messages
9
How do I get one name in a cell when I have both last and first name in one cell separated by a comma?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
text to columns as mentioned

or use for forename

=left(a1,find(" ",a1)-1)

and surname

=mid(a1,find(" ",a1)+1,len(a1)-find(" ",a1))
 
Upvote 0
Perhaps I'm being to literal, but I believe the OP asked, "How do I get one name in a cell...". I don't believe he's asking how to parse into multiple cells. I'm guessing that he wants to rearrange...

Powers, Austin

...to...

Austin Powers

Perhaps compman will provide an example so we won't have to guess the intent of his inquiry.
 
Upvote 0
Regardless the code remains effective - just insert an & to merge both names.

not rocket science.
 
Upvote 0
=MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1))&LEFT(A1,FIND(" ",A1)-1)

produces "AustinPowers,".
 
Upvote 0
not quite sure whether you're trying to be anally retentive but I am sure as an MVP you're quite capable of entering &" "& within the formula.
 
Upvote 0

Forum statistics

Threads
1,221,711
Messages
6,161,450
Members
451,707
Latest member
PedroMoss2268

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