+ Reply to Thread
Results 1 to 3 of 3

Split cells based on Capital Letters

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Cleveland
    MS-Off Ver
    Excel 2007
    Posts
    1

    Split cells based on Capital Letters

    I have data that downloads as:

    JohnSmith M
    JaneDoe L
    RobertJones A

    I need to split the first and last name into two separate columns. Can anyone help with an Excel formula. I don't know VBA.

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Split cells based on Capital Letters

    Splitting on Space

    First name

    =MID(I17,1,FIND(" ",I17,1))

    Last name

    =MID(I17,FIND(" ",I17,1)+1,LEN(I17)-FIND(" ",I17,1)+1)

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Split cells based on Capital Letters

    Hi AntyLani

    Asssuming your data is in A1:A3, try the following.

    In B1: =LEFT(A1,SMALL(FIND(CHAR(ROW(INDIRECT("65:90"))),A1&"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),2)-1) This is a array formula, CTRL + SHIFT + ENTER to commit and copy down.
    In C1: =MID(A1,LEN(B1)+1,LEN(A1)-LEN(B1)-LEN(D1)) and copy down.
    In D1: =RIGHT(A1,LEN(A1)-FIND(" ",A1)) and copy down.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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