+ Reply to Thread
Results 1 to 5 of 5

Extract first and last names from a list of names

  1. #1
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Extract first and last names from a list of names

    I am trying to extract the first and last names from a list but some of the names have 4 parts, I have a formula that does the job if the name only has 3 parts but not 4, examples as follows:

    James Frank Van Helden needs to be James Van Helden
    Tom John Bennet needs to be Tom Bennet

    There is a mixture of 3 and 4 part names, is it possible to get a formula to handle the both in 1 formula or will it require separate formulas.


    Thanks

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Extract first and last names from a list of names

    Try this ...

    =REPLACE(A1,FIND(" ",A1),FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1),"")

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Extract first and last names from a list of names

    here's the attachment
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 03-12-2017 at 06:35 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Extract first and last names from a list of names

    What is this site doing today!! It deleted one of my replies.

    Anyway. you didn't state if you wanted the output in one cell or two. The formulae in the sheet will give you the output in two.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Re: Extract first and last names from a list of names

    Thanks Phuocam & Glenn I will use Phuocam's formula as it allows me to use the 1 cell and seems to work for the list of name that I have.

    Thanks again

+ 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] how to extract unique list of names in filtered data
    By XLalbania in forum Excel General
    Replies: 15
    Last Post: 12-18-2016, 09:30 AM
  2. Extract column names by searching Row 1 header names?
    By Syfy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-04-2015, 07:27 PM
  3. Extract rows if names are meet names in named range
    By Serggio in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2015, 07:26 AM
  4. [SOLVED] Draw random names from list and then remove, carry on till no names left in list
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2014, 12:14 PM
  5. Need a formula to extract names from a master list
    By Anies in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-12-2014, 02:24 PM
  6. [SOLVED] How to extract text from a list of names
    By busygurl in forum Excel General
    Replies: 3
    Last Post: 09-10-2013, 02:51 AM
  7. Extract client names from the list - vba
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-29-2011, 05:39 PM

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