A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Break up a name



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2010, 02:07 PM posted to microsoft.public.excel.misc
Jim
external usenet poster
 
Posts: 1,404
Default Break up a name

Hello,

I ahve a list of names, with middle initials, that I need to break up. For
example the names are formatted like the following:

Bayer, Daniel E.

I need help with three results: the fist is the first name only; the second
is the last name only. And the third, I know I can merge the results for the
first and last name, but if there is a formula that will bring out the first
and last together I would love to learn what that formula is.

Thanks for the help.
Jim
  #2  
Old June 3rd, 2010, 02:14 PM posted to microsoft.public.excel.misc
Bob I
external usenet poster
 
Posts: 10,698
Default Break up a name

Text to columns, separate on the comma. then text to columns separate on
space.

Jim wrote:

Hello,

I ahve a list of names, with middle initials, that I need to break up. For
example the names are formatted like the following:

Bayer, Daniel E.

I need help with three results: the fist is the first name only; the second
is the last name only. And the third, I know I can merge the results for the
first and last name, but if there is a formula that will bring out the first
and last together I would love to learn what that formula is.

Thanks for the help.
Jim


  #3  
Old June 3rd, 2010, 02:47 PM posted to microsoft.public.excel.misc
Vicar
external usenet poster
 
Posts: 3
Default Break up a name

Assuming formatting is exactly as shown, & in cell A1:
Firstname: =MID(A1,FIND(",",A1)+2,FIND(" ",A1,FIND(" ",A1)+1)-FIND(",",A1)-2)
Lastname: =LEFT(A1,FIND(",",A1)-1)
Firstnamespacelastname: =MID(A1,FIND(",",A1)+2,FIND(" ",A1,FIND("
",A1)+1)-FIND(",",A1)-1)&LEFT(A1,FIND(",",A1)-1)




"Jim" wrote:

Hello,

I ahve a list of names, with middle initials, that I need to break up. For
example the names are formatted like the following:

Bayer, Daniel E.

I need help with three results: the fist is the first name only; the second
is the last name only. And the third, I know I can merge the results for the
first and last name, but if there is a formula that will bring out the first
and last together I would love to learn what that formula is.

Thanks for the help.
Jim

  #4  
Old June 3rd, 2010, 09:26 PM posted to microsoft.public.excel.misc
Jim
external usenet poster
 
Posts: 1,404
Default Break up a name

Vicar,

Perfect, thanks for taking the time.

Jim



"Vicar" wrote:

Assuming formatting is exactly as shown, & in cell A1:
Firstname: =MID(A1,FIND(",",A1)+2,FIND(" ",A1,FIND(" ",A1)+1)-FIND(",",A1)-2)
Lastname: =LEFT(A1,FIND(",",A1)-1)
Firstnamespacelastname: =MID(A1,FIND(",",A1)+2,FIND(" ",A1,FIND("
",A1)+1)-FIND(",",A1)-1)&LEFT(A1,FIND(",",A1)-1)




"Jim" wrote:

Hello,

I ahve a list of names, with middle initials, that I need to break up. For
example the names are formatted like the following:

Bayer, Daniel E.

I need help with three results: the fist is the first name only; the second
is the last name only. And the third, I know I can merge the results for the
first and last name, but if there is a formula that will bring out the first
and last together I would love to learn what that formula is.

Thanks for the help.
Jim

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.