+ Reply to Thread
Results 1 to 7 of 7

Merge two similar sheets into a 3rd one where each record appears once & amounts summedup

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Athens
    MS-Off Ver
    Excel 2003
    Posts
    4

    Merge two similar sheets into a 3rd one where each record appears once & amounts summedup

    In a single workbook I have Sheet1 and Sheet2 which contain lists of customers (with same fields/columns) but containing different data records, like this:

    Sheet1
    -------
    CustId Name Amount
    ------ ------ ---------
    1344 CustA 1,200
    1344 CustB 1,115
    4015 CustC 2,577
    6044 CustE 1,920
    7415 CustF 2,770


    Sheet2
    -------
    CustId Name Amount
    ------ ----- ---------
    1344 CustA 1,780
    2755 CustD 3,225
    4015 CustC 1,950
    4015 CustC 5,540


    Using Excel VBA, I would like to merge the above 2 sheets into a third one (different sheet) where each customer (from both sheets) will appear in a single record and the total of his/her amounts

    I have attached an excel sheet as well for your better understanding.

    Please help.

    John Louck
    Attached Files Attached Files
    Last edited by johnlouck27; 08-09-2013 at 12:02 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merge two similar sheets into a 3rd one where each record appears once & amounts summe

    Try the attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    Athens
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Merge two similar sheets into a 3rd one where each record appears once & amounts summe

    Thank you AB33.
    I hardly had pressed the Send Post button and I got back your valuable help.
    Thank you very much.
    Cheers,
    JL

  4. #4
    Registered User
    Join Date
    08-09-2013
    Location
    Athens
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Merge two similar sheets into a 3rd one where each record appears once & amounts summe

    AB33
    is this VBA sub compatible with Excel 2003 ?
    Unfortunately I don't have Excel 2003 at home but eventually this will be used on an Excel 2003 PC.
    Thank you.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merge two similar sheets into a 3rd one where each record appears once & amounts summe

    I have excel 2010, so I had to save it in 2003 version. Your profile shows 2003. There is no button(But can make one if you want). You need to run it in your actual data. I have already run it and see sheet3 for result.

  6. #6
    Registered User
    Join Date
    08-09-2013
    Location
    Athens
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Merge two similar sheets into a 3rd one where each record appears once & amounts summe

    OK Thanks, I will test it and let you know.
    Cheers,
    JL

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Merge two similar sheets into a 3rd one where each record appears once & amounts summe

    This is a relatively easy task to do in Access if you have the inclination and the software. It is four queries based upon the two tables. The resulting query can then be exported to Excel for further analysis. See the attached Access file.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging similar data and amounts
    By erisaaka in forum Excel General
    Replies: 7
    Last Post: 02-22-2013, 06:13 PM
  2. [SOLVED] Mail Merge: The merge provides data from the previous record
    By bellevue in forum Excel General
    Replies: 3
    Last Post: 10-23-2012, 07:44 AM
  3. Add similar name amounts
    By georgei in forum Excel General
    Replies: 3
    Last Post: 11-05-2009, 10:14 AM
  4. identify first date a record appears
    By mcarrington in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2005, 05:10 PM
  5. Posting Large amounts of similar stuff
    By Iamxerocool in forum Excel General
    Replies: 2
    Last Post: 07-06-2005, 07:05 PM

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