+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Split and distribute the content of one cell to several cells

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    23

    Question Split and distribute the content of one cell to several cells

    Hi guys!!

    Once again, if someone help me with this problem, it would save me several hours!!

    I'm a student and I'm writing my thesis about Mergers and Acquisitions.

    I've got a list of codes given in this format, all together in one cell:

    1311/4412/2812/2813/2816/2819/2911

    I need to put each of the first 6 codes into one cell. Which means at the end I will have:

    COLUMN B: 1311
    COLUMN C: 4412
    COLUMN D: 2812
    COLUMN E: 2813
    COLUMN F: 2816
    COLUMN G: 2819

    Some companies have less than 6 codes. And I don't need the codes after the 6th one.

    Is there a way to do this distribution to several cells?


    It would be awesome!!
    Last edited by glux; 02-05-2012 at 02:11 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Split and distribute the content of one cell to several cells

    Hi glux,

    I expect you have many lines like your example above. I'd suggest you read about Import a Text file using a delimeter. You should have the delimiter as the "/" character. This would import your line in to what I think you want.

    You can search on the terms above or read http://www.online-tech-tips.com/cool...iles-in-excel/ to see if it helps.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Split and distribute the content of one cell to several cells

    There is probably a far more elegant way for this, but =left(text,chars) and mid(text,start, chars)...repeated for the "sets" you need, will spit the string how you want it.
    See attached file

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Split and distribute the content of one cell to several cells

    Hi Glux,

    I would suggest you to use Text - to - Column feature of MS Excel, as Marvin suggested, and then you can always delete the column data after column G

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  5. #5
    Registered User
    Join Date
    02-03-2012
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Split and distribute the content of one cell to several cells

    Thank you all of you three!!! That was sooo helpful!!! I used Marvin's solution in the end!! Very easy to use. Just great!! Another solved problem!! Woohoo!! I love this forum!!

+ 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