Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Split the contents from single cell into multiple cell in excel 2010

  1. #11
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by san.rathinapuri View Post
    Before run this macro i will try to unmerge all the cells.

    yes, there will be multiple sentences also in single cell, its not limited. It may vary from one cell to another cell.

    Any solution for my document after unmerging..?
    You do not have to unmerge the cells manually, we can have the code do that. What we need to know is how uniform you layout is. So, you need to answer these questions about the content of Column C's filled cells (from Row 2 on downward)...

    1) Does each cell have a Pre-requisite and a Steps section as shown in your example?

    2) If so, can there be a varied number of items under each of them (your example shows only one in Pre-requisite and three in Steps... those numbers are not fixed at one and three, correct)?

    3) Is the Pre-requisite section always set off from the Steps section by two Line Feeds (as shown in your example)?

    4) This is an extremely important question... did you always merge enough cells to accommodate the number of individual lines of text that you want to put into their own cells? For your example, you showed four merged cells for the four numbered items in each cell, but if you had, say, two items in Pre-requisite and five items in Steps, would you have them in a merged set of four cells (like your example shows) or in seven cells because there are seven items?

    5) Just double-checking... the split apart text is supposed to replace the original data in Column C, correct? I ask because you have a column headed by the title "Result" and I just want to make sure you don't want the output to go there.

  2. #12
    Junior Member
    Join Date
    Apr 2015
    Posts
    8
    Rep Power
    0
    Hi Rick,

    Thanks for the response. please find the answers below for your questions. i believe this will give you the clear picture.

    1) Does each cell have a Pre-requisite and a Steps section as shown in your example?

    NO, ONLY FEW COLUMNS WILL HAVE THE PRE-REQUISITE.
    bUT THE STEPS WILL APPEAR IN EVERY COLUMN.


    2) If so, can there be a varied number of items under each of them (your example shows only one in Pre-requisite and three in Steps... those numbers are not fixed at one and three, correct)?

    YES,ITS NOT FIXED. IT MAY VARY CELL TO CELL.

    3) Is the Pre-requisite section always set off from the Steps section by two Line Feeds (as shown in your example)?

    YES. AS GIVEN IN THE PREVIOUS ATTACHMENT.

    4) This is an extremely important question... did you always merge enough cells to accommodate the number of individual lines of text that you want to put into their own cells? For your example, you showed four merged cells for the four numbered items in each cell, but if you had, say, two items in Pre-requisite and five items in Steps, would you have them in a merged set of four cells (like your example shows) or in seven cells because there are seven items?

    ALWAYS THERE WILL BE 4 CELLS MERGED.ITS NOT DEPENDS UPON THE NUMBER OF STEPS AND PRE-REQUISITE.

    5) Just double-checking... the split apart text is supposed to replace the original data in Column C, correct? I ask because you have a column headed by the title "Result" and I just want to make sure you don't want the output to go there.

    NO OUTPUT SHOULD GO THERE TO RESULT COLUMN.
    JUST WE WANT TO SPLIT THE CONTENT FROM COLUMN C (FOR EXAMPLE) TO BELOW CELLS.



    Thanks,
    Santhosh

  3. #13
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by san.rathinapuri View Post
    ALWAYS THERE WILL BE 4 CELLS MERGED.ITS NOT DEPENDS UPON THE NUMBER OF STEPS AND PRE-REQUISITE.

    NO OUTPUT SHOULD GO THERE TO RESULT COLUMN.
    JUST WE WANT TO SPLIT THE CONTENT FROM COLUMN C (FOR EXAMPLE) TO BELOW CELLS.
    Your posted workbook showed the result in the data column and it split the result into separate cells there (that is, it unmerged the merged cell). Are you now saying you want to keep the data cell as is and put the split out result in the Result column? Also, in order to put them into separate cells when the data is split and there are more than 4 split out rows, additional rows would need to be added to accommodate them... you do understand this, correct?

  4. #14
    Junior Member
    Join Date
    Apr 2015
    Posts
    8
    Rep Power
    0
    Hi Rick,

    Don worry about the result column, we are not going to use that now.

    Currently for example, 5 sentences are placed in column C. We need to unmerge and split the cells in column c and need to paste it in seperate lines below.

    In order to put them into separate cells when the data is split and there are more than 4 split out rows, additional rows would need to be added to accommodate them --> YES CORRECT.

    The format will see same like my previous attachment.

Similar Threads

  1. Replies: 3
    Last Post: 02-11-2014, 08:31 PM
  2. Replies: 3
    Last Post: 11-22-2013, 08:22 AM
  3. Replies: 1
    Last Post: 08-23-2013, 05:19 AM
  4. Replies: 5
    Last Post: 01-12-2013, 02:49 AM
  5. Concatenate Multiple Lookup Values in Single Cell
    By Admin in forum Download Center
    Replies: 4
    Last Post: 04-06-2012, 09:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •