+ Reply to Thread
Results 1 to 6 of 6

Function to Merge Multiple Rows of data into a single row

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Function to Merge Multiple Rows of data into a single row

    Hey,

    I have a dataset with multiple rows of information and I want to consolidate the rows with a similar value in column 1.

    Image 1 shows what a file would look like when I receive it, what I would like to do is to consolidate all of the Pacakges being received by an individual into 1 row. So 1 Row for each Name in the list followed by all the packages they are supposed to receive like Image 2.

    Any Ideas?

    Image 1.png

    Image 2.png

  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: Function to Merge Multiple Rows of data into a single row

    This is easily doable but i wouldnt want to waste time replicating your png files to an excel file.

    So its better you upload a sample excel file.

    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
    03-15-2013
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Function to Merge Multiple Rows of data into a single row

    Hey arlu1201,

    I've attached a basic version of the document I would receive.

    Thanks.

    Book1.xlsx

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

    Re: Function to Merge Multiple Rows of data into a single row

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  5. #5
    Registered User
    Join Date
    03-15-2013
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Function to Merge Multiple Rows of data into a single row

    Hey,

    That worked perfectly!

    Thanks so much for your help!

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

    Re: Function to Merge Multiple Rows of data into a single row

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

+ 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