+ Reply to Thread
Results 1 to 5 of 5

Formula to sperate First Name and Last name

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to sperate First Name and Last name

    Hello:

    Please refer to attached file.
    I need to seperate out the first name and last name as shown in Column C and D without middle initial.

    Let me know if you have any questions.
    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Formula to sperate First Name and Last name

    In C2:

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

    In D2:

    =IF(LEN(A2)-LEN(SUBSTITUTE(A2," ",""))=1, MID(A2,FIND(" ",A2)+1, LEN(A2)), MID(A2,FIND(" ",A2,FIND(" ",A2)+1)+1, LEN(A2)))
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula to sperate First Name and Last name

    F2 =LEFT(A2,SEARCH(" ",A2,1)) and drag down.

    G2 =IFERROR(RIGHT(A2,LEN(A2)-SEARCH(" ",A2,SEARCH(" ",A2,1)+1)),RIGHT(A2,LEN(A2)-SEARCH(" ",A2,1))) and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to sperate First Name and Last name

    Hello:

    Thanks to both of u

    Riz

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Formula to sperate First Name and Last name

    An alternative solution is with Power Query. Here is Mcode
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] macro to copy Each Pivot Filter to a sperate Sheet
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2019, 08:28 AM
  2. How to copy Excel in Word to sperate file?
    By Excelforum*ser_mH7 in forum Word Formatting & General
    Replies: 1
    Last Post: 03-14-2019, 03:15 AM
  3. How to copy excel in word to a sperate file
    By Excelforum*ser_mH7 in forum Excel General
    Replies: 9
    Last Post: 10-17-2018, 11:34 AM
  4. imporint multiple csv fiues into a big workbook with single sperate sheets
    By kewns in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2014, 12:20 PM
  5. Sperate an IP from a String of cell
    By BraveR in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-28-2014, 07:51 AM
  6. sperate from the space, in text, in the same cell
    By Fam via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-31-2006, 12:25 PM
  7. Using a sperate sheet to save daily revenue totals
    By justchris in forum Excel General
    Replies: 1
    Last Post: 03-09-2005, 01:49 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