Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

How do I seperate a full name field out into three seperate columns?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rod - 31 Oct 2006 18:23 GMT
The name field is in the following format:   Abbott, Susan H.

I would like to break it out into three seperate columns like below.

Last Name    First Name    Middle Initial
Abbott          Susan           H.
Gary Brown - 31 Oct 2006 18:58 GMT
Assume:
Full name (Abbott, Susan H.) is in cell A2,
First Name formula is in cell B2.
Last Name formula is in cell C2.
Middle formula Initial is in cell D2.

B2 =LEFT(A2,FIND("~",SUBSTITUTE($A2," ","~",1))-2)

C2 =IF(LEN(A2)-LEN(SUBSTITUTE(A2,"
",""))>=2,MID($A2,FIND("~",SUBSTITUTE($A2," ","~",1))+1,  
FIND("~",SUBSTITUTE($A2," ","~",2))-FIND("~",SUBSTITUTE($A2,"
","~",1))-1),RIGHT($A2,LEN($A2)-FIND("~",SUBSTITUTE($A2," ","~",1))))

D2 =IF(LEN(A2)-LEN(SUBSTITUTE(A2," ",""))>=2,RIGHT($A2,LEN($A2) -
FIND("~",SUBSTITUTE($A2," ","~",2))),"")

Watch the wrapping in this post.
Signature

HTH,
Gary Brown
gary.DeleteThis2SendMeAnEmail.Brown@kinneson.com
If this post was helpful to you, please select ''YES'' at the bottom of the
post.

> The name field is in the following format:   Abbott, Susan H.
>
> I would like to break it out into three seperate columns like below.
>
> Last Name    First Name    Middle Initial
> Abbott          Susan           H.
Bob Phillips - 31 Oct 2006 19:59 GMT
=LEFT(A1,FIND(",",A1)-1)

=SUBSTITUTE(SUBSTITUTE(A1," "&D1,""),B1&", ","")

=MID(A1,FIND("~",SUBSTITUTE(A1," ",",~",LEN(A1)-LEN(SUBSTITUTE(A1,"
","")))),99)

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> The name field is in the following format:   Abbott, Susan H.
>
> I would like to break it out into three seperate columns like below.
>
> Last Name    First Name    Middle Initial
> Abbott          Susan           H.
jahaglund@hotmail.com - 31 Oct 2006 21:06 GMT
I tried the following with good success:
With full name in A2
B2 =MID(A2,1,FIND(", ",A2,1)-1) for last name
C2 =MID(A2,FIND(" ",A2,1),FIND(" ",A2,1)-2) for first name
D2 =RIGHT(A2,2) for middle initial - could be a problem if there is no
middle initial

> The name field is in the following format:   Abbott, Susan H.
>
> I would like to break it out into three seperate columns like below.
>
> Last Name    First Name    Middle Initial
> Abbott          Susan           H.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.