+ Reply to Thread
Results 1 to 10 of 10

name format change - (LastName, FirstName) to just (FirstName)

  1. #1
    Registered User
    Join Date
    12-12-2011
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    24

    Exclamation name format change - (LastName, FirstName) to just (FirstName)

    Hello talented people of ExcelForum
    you guys are always here to help. i appreciate you guys a lot.
    i need your help once again... please...
    i have an excel spreadsheet that has peoples names in the format of lastname comma first name.
    i would like to know how to change the format of the name to only show first name.
    i currently have this
    =MID(A4,FIND(" ",A4)+1,LEN(A4)-1)
    but the problem with this formula is that if they have a middle name it shows their middle name too
    i would like first name only. please help.
    thanks.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: name format change - (LastName, FirstName) to just (FirstName)

    hi could you give some examples because in description You used word "comma" but in your formula there is any
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: name format change - (LastName, FirstName) to just (FirstName)

    Hi

    Maybe this will work for you.

    =RIGHT(A4,LEN(A4)-FIND("*",SUBSTITUTE(A4," ","*",LEN(A4)-LEN(SUBSTITUTE(A4," ","")))))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: name format change - (LastName, FirstName) to just (FirstName)

    or shorter one
    RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1,",","*",2),1)-1)

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: name format change - (LastName, FirstName) to just (FirstName)

    This should work.

    Please Login or Register  to view this content.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    12-12-2011
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    24

    Re: name format change - (LastName, FirstName) to just (FirstName)

    here is a sample worksheet
    notice that some people have middle names, some do not.
    Name Change.xls

  7. #7
    Registered User
    Join Date
    12-12-2011
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    24

    Re: name format change - (LastName, FirstName) to just (FirstName)

    Quote Originally Posted by Fotis1991 View Post
    Hi

    Maybe this will work for you.

    =RIGHT(A4,LEN(A4)-FIND("*",SUBSTITUTE(A4," ","*",LEN(A4)-LEN(SUBSTITUTE(A4," ","")))))




    if they have a middle name, this just shows middle name or initial.
    but it works for first last names only.

  8. #8
    Registered User
    Join Date
    12-12-2011
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    24

    Re: name format change - (LastName, FirstName) to just (FirstName)

    Quote Originally Posted by Haseeb A View Post
    This should work.

    Please Login or Register  to view this content.

    this one shows first and middle.

  9. #9
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: name format change - (LastName, FirstName) to just (FirstName)

    Hi

    Sorry mistake not looking the name clear.
    Last edited by micope21; 04-18-2012 at 06:29 PM.

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: name format change - (LastName, FirstName) to just (FirstName)

    Try this, some one may have shorter

    Please Login or Register  to view this content.
    Last edited by Haseeb Avarakkan; 04-18-2012 at 06:31 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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