+ Reply to Thread
Results 1 to 2 of 2

looking to pull out out last names only

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Annapolis, MD
    MS-Off Ver
    Excel 2016
    Posts
    17

    looking to pull out out last names only

    I'm looking to pull into Column B the last name only from the "full name" column (column C).
    Right now, in Column B I have the formula =UPPER(MID(C3,FIND(" ",C3)+1,50)) to pull in the last name from the full name that is in column C.
    The problem is that when column C has a middle initial or a nickname, column B ends up having the middle initial and the last name.
    For example, if Column C has John "Buster" Jones, I get "Buster" Jones in column B but I only want Jones; or if Column C has Mary T. Smith, I get T. Smith in Column B but I only want SMITH
    Is there a better approach so I only get the last name?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: looking to pull out out last names only

    This gets the last "word" in a string and upper cases it.

    =UPPER(TRIM(RIGHT(SUBSTITUTE(C3," ",REPT(" ",100)),100)))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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