+ Reply to Thread
Results 1 to 4 of 4

Formular to extract names

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Formular to extract names

    Hello All,

    Good day. In the attached, I have a list of names. I need a formula to extract the surnames only, the middle names only and the first names only as indicated in the headings.

    Any clue?

    Regards.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formular to extract names

    Try in B2 copied across and down...

    =TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99))

    Note: This will do First Name, Middle Name, and then Surname. Just change your headers to reflect
    Last edited by jeffreybrown; 03-23-2018 at 08:49 AM.
    HTH
    Regards, Jeff

  3. #3
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Formular to extract names

    Hi, to both!

    A little shorter could be:
    [B2] : =TRIM(MID(SUBSTITUTE($A2," ",REPT(" ",99)),1+99*(COLUMNS(B2:$D2)-1),99))
    Drag it down and right.

    Blessings!
    Last edited by johnmpl; 03-23-2018 at 08:49 AM.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formular to extract names

    Here is an alternative if you want 3 separate formulas.

    Assuming that the surname is at the end, the middle name is in the middle, and the first name is in the beginning, you can use these 3 formulas:

    B2 =MID(A2,FIND("|",SUBSTITUTE(A2," ","|",2))+1,LEN(A2))

    C2 =TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",100)),100,100))

    D2 =LEFT(A2,FIND(" ",A2)-1)

+ 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] Extract first and last names from a list of names
    By Macfool in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2017, 06:44 AM
  2. Need to extract names
    By dbcahill in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-12-2016, 12:24 PM
  3. 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
  4. 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
  5. Complicated formular. Formular, remove text if available
    By TheTrooper1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2014, 12:39 PM
  6. [SOLVED] Replacing a date formular result with another formular
    By stpeter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2013, 06:27 PM
  7. Extract unique names (names could be little different)
    By Richard Flame in forum Excel General
    Replies: 1
    Last Post: 05-31-2007, 09:04 AM

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