+ Reply to Thread
Results 1 to 9 of 9

Splitting data in a cell in to multiple cells

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Splitting data in a cell in to multiple cells

    Hi There,

    I need help in splitting the data in a cell in to multiple cells. Data needs to be split at the end of each line. Here's how the data currently in the cell that needs to be split

    ABCDEFG
    123456
    LKOMNO
    BHFRHIN
    3frf4f
    cfkvfvi0

    All this is in one cell and i need it to be split in to different cells at the end of the each line in the same column.

    Let me know if you require any addtional informaiton.

    Regards

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Splitting data in a cell in to multiple cells

    Not clear about your expected output


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Splitting data in a cell in to multiple cells

    Do you have multiple such data elements in your file or is it just one? Will there always be 6 entries in each cell or it can vary?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Splitting data in a cell in to multiple cells

    Hi,

    Not sure, but the below might be helpful....


    Assuming that you have Alt-Enter in those cells causing the data to
    wrap, then you could highlight the column then click on Data | Text-to-
    Columns. In the panel that pops up, click on Delimited, then Next,
    then in the Other box enter CTRL-J (which is equivalent to Alt-Enter
    in this case), then click Next, and then on the final panel you might
    like to change the destination where the parsed columns will go, then
    click Finish.

  5. #5
    Registered User
    Join Date
    09-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Splitting data in a cell in to multiple cells

    Hi Arlette,

    I just have one such data element as of now and the entires could vary from time to time we need to first determine how many lines are there in the cell first and split the data accordingly.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Splitting data in a cell in to multiple cells

    Did you try what is suggested in post 4?

  7. #7
    Registered User
    Join Date
    09-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Splitting data in a cell in to multiple cells

    I tried but it didn't work. I need a macro to split the data as would required to do this step on a regular basis for a lot of files.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Splitting data in a cell in to multiple cells

    So you only the macro shortcut button to be assigned to that step of splitting the cell? Or do you want the macro to ask you the filename to be opened and then split the cell?

  9. #9
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Splitting data in a cell in to multiple cells

    Assuming your data is in Column F2 and below of Sheet1, try this:

    Please Login or Register  to view this content.
    You should be able to use this "regularly" on a particular workbook by changing the sheet name and column reference as per your needs. However, when you say "...for a lot of files", I think an ideal situation would be to save the macro as an Add-In...

    Hope this helps.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

+ 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