Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 149
Default Another Method for Parsing Names

It works for all variables except for names with more than one middle
initial.


Jr., Sr., III, Esq., Phd, MBA, CEO....





"Jim Berglund" wrote in message
...
Having bothered others with ways of parsing names, I thought I'd at lease
contribute a simple solution for doing the complete job...

Assume you have names of the following types in column C

Mrs Dorothy Hannity

Dr P R Rogers

Dana Delany

Mr Bradley K Pitts

Type the following formulas into the specified cells:

O1=FIND(" ",C1)
Determines the location/existence of the blank following the Salutaton
or First Name

P1=FIND(" ",C1,FIND(" ",C1)+1)
Determines the location/existence of the blank following the First
Name or Middle Initial(MI)

Q1=FIND(" ",R1)
Determines the location/existence of the blank following the Middle
Initial in the next, adjacent cell

R1=IF(ISERROR(P1),RIGHT(C1,LEN(C1)-O1),RIGHT(C1,LEN(C1)-P1))
Defines the Last Name or MI/LN if there is a MI

S1=LEFT(C1,O1-1)
Creates the Salutation column

T1=IF(ISERROR(S1)," ",MID(C1,O1+1,P1-O1))
Creates the First Name column

U1=IF(FIND(" ",R1)=2,LEFT(R1,1),"")
Creates the MI column

V1=IF(U1<"",MID(R1,FIND(" ",R1)+1,99),R1)
Creates the Last Name column


Fill the entries down and then copy the resulting values into another set
of columns.

It works for all variables except for names with more than one middle
initial.



  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 86
Default Another Method for Parsing Names

Having bothered others with ways of parsing names, I thought I'd at lease
contribute a simple solution for doing the complete job...

Assume you have names of the following types in column C

Mrs Dorothy Hannity

Dr P R Rogers

Dana Delany

Mr Bradley K Pitts

Type the following formulas into the specified cells:

O1=FIND(" ",C1)
Determines the location/existence of the blank following the Salutaton
or First Name

P1=FIND(" ",C1,FIND(" ",C1)+1)
Determines the location/existence of the blank following the First Name
or Middle Initial(MI)

Q1=FIND(" ",R1)
Determines the location/existence of the blank following the Middle
Initial in the next, adjacent cell

R1=IF(ISERROR(P1),RIGHT(C1,LEN(C1)-O1),RIGHT(C1,LEN(C1)-P1))
Defines the Last Name or MI/LN if there is a MI

S1=LEFT(C1,O1-1)
Creates the Salutation column

T1=IF(ISERROR(S1)," ",MID(C1,O1+1,P1-O1))
Creates the First Name column

U1=IF(FIND(" ",R1)=2,LEFT(R1,1),"")
Creates the MI column

V1=IF(U1<"",MID(R1,FIND(" ",R1)+1,99),R1)
Creates the Last Name column


Fill the entries down and then copy the resulting values into another set of
columns.

It works for all variables except for names with more than one middle
initial.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing names from one column into 3. Kevin Porter Excel Programming 5 August 25th 07 12:54 PM
parsing full names in to 3 columns me[_10_] Excel Programming 9 March 11th 06 09:57 PM
Formulas for Parsing Full names jonefer Excel Worksheet Functions 3 February 14th 06 06:28 AM
TypeLib Information Problem? Pass a Function's parameter names as string for parsing? Ali G Excel Programming 1 December 3rd 04 07:02 PM
Parsing Full Names of varying lenths and parts Dan Excel Programming 1 October 24th 03 06:26 PM


All times are GMT +1. The time now is 10:11 AM.

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

About Us

"It's about Microsoft Excel"