+ Reply to Thread
Results 1 to 5 of 5

Split data string into 2 new cells after 4th occurrence of character

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Split data string into 2 new cells after 4th occurrence of character

    ... In the working scenario , it's a comma. I'm basically trying to take a string of words/phrases separated by commas , and split them into 2 new cells in column B and C after the 4th comma occurs.


    DATA EXAMPLE :

    A1 = red, blue, light green, yellow, orange, dark purple, grey

    desired results:

    B1 = red, blue, light green, yellow

    C1 = orange, dark purple, grey


    any ideas? thanks
    Last edited by syncguy; 07-29-2015 at 09:49 PM.

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

    Re: Split data string into 2 new cells after 4th occurrence of character

    Try these...

    B1:

    =LEFT(A1,FIND("^",SUBSTITUTE(A1,",","^",4))-1)

    C1:

    =MID(A1,FIND("^",SUBSTITUTE(A1,",","^",4))+2,100)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Re: Split data string into 2 new cells after 4th occurrence of character

    thanks Tony , I'll try them

  4. #4
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Re: Split data string into 2 new cells after 4th occurrence of character

    they worked ! thanks Tony!

  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: Split data string into 2 new cells after 4th occurrence of character

    You're welcome. Thanks for the feedback!

+ 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] Split a string after last alphabetic character
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-30-2014, 03:44 AM
  2. [SOLVED] Getting the string that follows the last occurrence of a character
    By michaljireht in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2014, 10:25 AM
  3. [SOLVED] find the character position in a string of the last occurrence of a nominated character
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2014, 11:52 PM
  4. [SOLVED] Split string based on character count
    By cedric_dranreb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2013, 05:14 AM
  5. Replies: 7
    Last Post: 08-31-2013, 12:30 PM
  6. Cutting off a string at the last occurrence of a character
    By isabelle.r in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2013, 09:42 AM
  7. [SOLVED] Split a string of data among separate cells
    By rodrignj in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-14-2013, 10:18 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