+ Reply to Thread
Results 1 to 4 of 4

Macro to Compare 2 Worksheets and Generate a Sheet with Differences

  1. #1
    Registered User
    Join Date
    10-20-2015
    Location
    Bristol, England
    MS-Off Ver
    2010
    Posts
    2

    Macro to Compare 2 Worksheets and Generate a Sheet with Differences

    Hi,

    I’m an engineer who needs a macro to help with the following task in excel. I have a huge quantity of data to process in the following way.

    I have excel workbooks that consists of 2 work sheets.

    Both are Parts Lists with quantities, one is before a refurbishment and one is after a refurbishment.

    Both lists are very similar except for a few minor differences (changes from the refurbishment)

    I want a macro to generate a list on a third worksheet that is only the parts or extra quantities of parts that is not on the first worksheet.

    To give a worked example:

    Worksheet 1

    Image1.png

    Worksheet 2

    Image2.png


    Worksheet 3 Generated by the Macro

    Image3.png

    So anything new introduced by worksheet 2 should move into worksheet 3, but for instance if it is on worksheet 1 and not on 2 like Part_D it does not need to be added to the list in 3. The purpose of this is to enable me to order new parts. The part numbers are always unique, although the numbers of part are large and varied and not necessarily the same between worksheet 1 and worksheet 2.

    I’d really appreciate if someone could show me a good way to do this .

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Macro to Compare 2 Worksheets and Generate a Sheet with Differences

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-20-2015
    Location
    Bristol, England
    MS-Off Ver
    2010
    Posts
    2

    Re: Macro to Compare 2 Worksheets and Generate a Sheet with Differences

    Thanks for the quick reply, this is adding the lists together though rather than show the differences as per my example. How would I alter it to correct this issue?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Macro to Compare 2 Worksheets and Generate a Sheet with Differences

    If this is not how you wanted, post a workbook. Picture doesn't help at all.
    Please Login or Register  to view this content.

+ 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. Compare two worksheets and then generate a third worksheet showing their differences
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-04-2013, 06:37 AM
  2. [SOLVED] Compare two worksheets and present differences in a third
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2013, 03:14 PM
  3. [SOLVED] Compare two worksheets and highlight differences on one of the worksheets
    By Phil Payne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2013, 04:00 AM
  4. Replies: 0
    Last Post: 05-10-2013, 03:41 AM
  5. Compare 2 worksheets for differences
    By MikeWinn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 05:02 PM
  6. Macro To Compare Worksheets And List Differences With Exceptions
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-14-2010, 07:52 AM
  7. Compare Worksheets and Return Differences
    By bkeller83 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2009, 01:52 AM
  8. Compare Two Worksheets:highlight the differences
    By Jim in forum Excel General
    Replies: 1
    Last Post: 10-11-2005, 04: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