+ Reply to Thread
Results 1 to 18 of 18

person name columns help!

  1. #1
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    person name columns help!

    I have the following name column:
    MR KEVIN SMITH
    MRS PATTY K SMITH
    MISS DANA KRAUS
    CLAUDIA SMITH
    TERRY W SCALIA
    MS LYDIA H BROWN

    I want to separate the salutation to a SALUTATION column,
    as well as FIRST NAME, MIDDLE NAME and LAST NAME column.

    THE YELLOW BOX CONTAIBOX.jpgNS THE EXAMPLE THAT I WANT.


    Cheers, V

    Please, no macros.
    Last edited by misc.v; 05-11-2017 at 04:52 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: person name columns help!

    Can put some example here how it should look like ??
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    05-28-2012
    Location
    Hinckley
    MS-Off Ver
    Excel 2003 / 2010 / 2013
    Posts
    7

    Re: person name columns help!

    Easy search for the spaces...

    =LEFT(B4,FIND(" ",B4,1)-1)

    This will extract the Salutation, I would also search to see if this is MR, MRS etc as some of the names you provided didn't have one.

  4. #4
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Not all carry salutations.

  5. #5
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by shukla.ankur281190 View Post
    can put some example here how it should look like ??
    just a quck little snapshot, of column corresponding with textScreenshot_3.jpg
    Last edited by misc.v; 05-11-2017 at 04:38 AM.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: person name columns help!

    Assume you have A2 with name

    Try

    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag towards the column SALUTATION, First, Mid & Last name same formula

  7. #7
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by shukla.ankur281190 View Post
    Assume you have A2 with name

    Try

    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag towards the column SALUTATION, First, Mid & Last name same formula
    This gives me all first words, but some are not salutations.

  8. #8
    Registered User
    Join Date
    05-28-2012
    Location
    Hinckley
    MS-Off Ver
    Excel 2003 / 2010 / 2013
    Posts
    7

    Re: person name columns help!

    Assuming you have names starting A2...

    Salutation starting B2
    =LEFT(A2,FIND(" ",A2,1)-1)

    First Name starting C2
    =MID(A2,FIND(" ",A2,1)+1,FIND(" ",A2,1)+1)

    Surname starting D2
    =MID(A2,FIND(" ",A2,FIND(" ",A2,1)+1)+1,50)

  9. #9
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by milenia View Post
    Assuming you have names starting A2...

    Salutation starting B2
    =LEFT(A2,FIND(" ",A2,1)-1)

    First Name starting C2
    =MID(A2,FIND(" ",A2,1)+1,FIND(" ",A2,1)+1)

    Surname starting D2
    =MID(A2,FIND(" ",A2,FIND(" ",A2,1)+1)+1,50)

    This is what I get.....Screenshot_4.jpg

  10. #10
    Registered User
    Join Date
    05-28-2012
    Location
    Hinckley
    MS-Off Ver
    Excel 2003 / 2010 / 2013
    Posts
    7

    Re: person name columns help!

    Hi, you will need to do some Data Cleansing first, check for Salutation and how many spaces are present to confirm if there are middle names / initials.

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: person name columns help!

    Quote Originally Posted by misc.v View Post
    This gives me all first words, but some are not salutations.
    Ok Try

    salutations B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Fiirst Name C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Mid Name D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Last Name E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 05-11-2017 at 06:27 AM. Reason: Something was missing

  12. #12
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by shukla.ankur281190 View Post
    Ok Try

    salutations B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Fiirst Name C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Mid Name D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Last Name E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This helps a lot, but can you help me understand how your formula works?

    The last name only works on some, and some names start with M, and are 2 letters, or 3 or 4

    IF THERES 5 WORDS THEN MAKE THE LAST 2 AS LAST NAME
    OHDEAR.jpg
    Attached Images Attached Images
    Last edited by misc.v; 05-11-2017 at 01:12 PM.

  13. #13
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by shukla.ankur281190 View Post
    Ok Try

    salutations B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Fiirst Name C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Mid Name D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Last Name E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This one shows, some other ones.
    The only salutations that exist are MR, MRS, MISS, MS
    WALTERS.jpg
    MA, and MIMI are first names

  14. #14
    Registered User
    Join Date
    04-25-2009
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: person name columns help!

    you can also use the Text to Column function, that would separate the data the way you want it.

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: person name columns help!

    With an exhaustive list of salutations in H1:H4 this array entered formula in B1 filled down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    D
    E
    F
    G
    H
    1
    MR KEVIN SMITH
    MR
    KEVIN
    SMITH
    MR
    2
    MRS PATTY K SMITH
    MRS
    PATTY
    K
    SMITH
    MRS
    3
    MISS DANA KRAUS
    MISS
    DANA
    KRAUS
    MISS
    4
    CLAUDIA SMITH
    CLAUDIA
    SMITH
    MS
    5
    TERRY W SCALIA
    TERRY
    W
    SCALIA
    6
    MS LYDIA H BROWN
    MS
    LYDIA
    H
    BROWN
    Dave

  16. #16
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by FlameRetired View Post
    With an exhaustive list of salutations in H1:H4 this array entered formula in B1 filled down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    D
    E
    F
    G
    H
    1
    MR KEVIN SMITH
    MR
    KEVIN
    SMITH
    MR
    2
    MRS PATTY K SMITH
    MRS
    PATTY
    K
    SMITH
    MRS
    3
    MISS DANA KRAUS
    MISS
    DANA
    KRAUS
    MISS
    4
    CLAUDIA SMITH
    CLAUDIA
    SMITH
    MS
    5
    TERRY W SCALIA
    TERRY
    W
    SCALIA
    6
    MS LYDIA H BROWN
    MS
    LYDIA
    H
    BROWN
    It wasn't just salutations, sorry. It was all of the fields, there is a semi-working version above, but as I started to drag down the formula, i realize, that its a little more complicated because some letters start with M but are not salutations, and some last names carry 2 words, so the entire name may be between 2 words ie "lydia brown" to 5 words ie "mrs lydia fidia de brown" in which case
    salutaion = mrs
    first name = lydia
    middle name = fidia
    last name = de brown

  17. #17
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    Re: person name columns help!

    Quote Originally Posted by Jocote46 View Post
    you can also use the Text to Column function, that would separate the data the way you want it.
    What do you mean?

  18. #18
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: person name columns help!

    Quote Originally Posted by misc.v View Post
    This one shows, some other ones.
    The only salutations that exist are MR, MRS, MISS, MS
    Attachment 517686
    MA, and MIMI are first names
    OK Try

    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run calculations in template for 1 person, copy-paste results, repeat for next person
    By Geoff. in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2014, 06:02 PM
  2. Sorting a Spreadsheet with multiple columns for one person
    By maverickgt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2014, 08:23 PM
  3. VBA to convert person-to-event into person-person
    By LuckyStrike in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2014, 02:34 PM
  4. A way to send file to certain person, depending on person saving?
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-12-2014, 12:13 PM
  5. [SOLVED] iterate range transpose to columns grouped by person
    By crtallent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 03:09 PM
  6. Transpose/Pivot multiple rows per person into 1 row per person with fixed columns
    By MaestroEnrique in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2013, 06:35 AM
  7. Replies: 3
    Last Post: 02-27-2007, 05:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1