+ Reply to Thread
Results 1 to 8 of 8

formula pulling first name and middle name in same column

  1. #1
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    formula pulling first name and middle name in same column

    You'd be suprised that there's nothing on net addressing this specific case:
    Amador,Felipe Jose
    Baptiste,Roger

    although you would think there should be.
    Here there is no space between last and first.
    =TRIM(A2)
    Getting last is straight forward:
    =LEFT(F2, FIND(",",F2)-1)

    Pulling the first and middle initial, if exists, in separate columns is not so straight forward:
    =MID(F2,FIND(",",F2,FIND(" ",F2)+1)+1,FIND(" ",F2))
    That gives VALUE error
    Last edited by johnmerlino; 10-29-2010 at 10:22 AM.

  2. #2
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: formula pulling first name and middle name in same column

    This worked for first name:
    =MID(F2,FIND(",",F2)+1,FIND(" ",F2)-FIND(",",F2)-1)

  3. #3
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: formula pulling first name and middle name in same column

    And this worked for middle initial:
    =MID(F2,FIND(" ",F2&" ")+1,255)

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: formula pulling first name and middle name in same column

    THe Text to columns function will separate your names no problem. Make sure you tick the delimiter as both a comma and a space
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: formula pulling first name and middle name in same column

    Is this a statement, or a question?

    If it's a question, what results are you expecting?

  6. #6
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: formula pulling first name and middle name in same column

    It was initially a question, but then I began figuring out myself, but then then scottylad mentioned text to column can take care of it and he's right. It worked.

  7. #7
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: formula pulling first name and middle name in same column

    Sure, you have to test for the space. Try the attached.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: formula pulling first name and middle name in same column

    @bentlybob Thanks for that sheet it was helpful.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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