+ Reply to Thread
Results 1 to 4 of 4

Separate Cell Content into Multiple Rows

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Separate Cell Content into Multiple Rows

    Hello,

    I have a spreadhseet that contains about 3000 rows and 2 columns. The first column is a name and the second column are their objectives from their last performance review. So the format looks like this:

    Employee 1 Objective 1
    Objective 2
    Objective 3

    Employee 2 Objective 1
    Objective 2
    Objective 3

    The objectives were manually typed in by the employee, so there may be no rhyme or reason to having an identifier like a comma. However, when the data was exported, there were line breaks entered between the objectives. So when I export the report, I get two columns, one with the employee name and the second one with the objectives in one cell, separated by a line break. I need to take each objective and put it into a separate cell so the report will look like this:

    Employee 1 Objective 1
    Employee 1 Objective 2
    Employee 1 Objective 3
    Employee 2 Objective 1
    Employee 2 Objective 2
    Employee 2 Objective 3

    Can anyone help on this?

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

    Re: Separate Cell Content into Multiple Rows

    It will be good if you attach a sample file so that we can work around the line breaks.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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]

  3. #3
    Registered User
    Join Date
    09-11-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Separate Cell Content into Multiple Rows

    Thank you. I've attached a file that shows the current format.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Separate Cell Content into Multiple Rows

    Following code will re arrage your data into a new sheet - (named Sheet3 for now. Change this if needed)
    You can then export this sheet.
    Please Login or Register  to view this content.
    Regards,
    Vandan

+ 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