+ Reply to Thread
Results 1 to 5 of 5

How do I split a word based on the capital letters

  1. #1
    Registered User
    Join Date
    04-19-2015
    Location
    Nz
    MS-Off Ver
    2010
    Posts
    2

    How do I split a word based on the capital letters

    I have names like SamSmith and RohitSingh. I want these to be separated into either two cells, or alternatively separated by a space.

    I'm not that good with excel so a step by step process would be good.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: How do I split a word based on the capital letters

    see this thred hope this helps :

    http://www.excelforum.com/excel-general/1078415

  3. #3
    Registered User
    Join Date
    04-19-2015
    Location
    Nz
    MS-Off Ver
    2010
    Posts
    2

    Re: How do I split a word based on the capital letters

    Yeah that worked, However it cuts the words off once they hit 12 characters long, Any way of preventing this?

    Cheers

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: How do I split a word based on the capital letters

    Can you post your sample file? click "Go Advanced" button and find Paperclip Image Button to attach the file

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How do I split a word based on the capital letters

    This will only work on 2 word names.

    Create this named formula.
    Name: Letters
    Refers to: =CHAR(ROW(INDIRECT("65:90")))

    Then...

    Data Range
    A
    B
    C
    1
    Combined
    First
    Last
    2
    SamSmith
    Sam
    Smith
    3
    RohitSingh
    Rohit
    Singh
    4
    BobRobertson
    Bob
    Robertson
    5
    GeneGerace
    Gene
    Gerace
    6
    LindaCabana
    Linda
    Cabana


    Enter this array formula** in B2:

    =LEFT(A2,MIN(FIND(Letters,A2&Letters,2))-1)

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Enter this formula in C2:

    =MID(A2,LEN(B2)+1,20)

    Select B2:C2 and copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 10
    Last Post: 01-20-2014, 10:09 AM
  2. Split cells based on Capital Letters
    By AntyLani in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2013, 11:24 AM
  3. find same word in all capital letters
    By sportingsports in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-13-2010, 08:43 AM
  4. split word into letters
    By rogerthat12345 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2007, 05:53 PM

Tags for this Thread

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