+ Reply to Thread
Results 1 to 3 of 3

Calculating differences between two sheets

  1. #1
    Registered User
    Join Date
    06-24-2010
    Location
    Cornwall, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    7

    Calculating differences between two sheets

    Here's what I have:

    3 worksheets - Sheet1 = Manual Inventory - Sheet2 = System Inventory - Sheet3 - Should display the difference of quantity between both.

    The columns I have are: ISBN, Description and QTY

    What I'm trying to accomplish: Match the ISBN from both Sheet1 and Sheet2, once matched, copy the ISBN, Description and the DIFFERENCE in QTY on Sheet2.

    All the data starts in Cell A2.

    I have a sub that works just fine as long as A2, A3, A4, etc... are the same on both sheets however, as soon as there is a discrepency, it stops.

    Example:

    Sheet1:

    ISBN Desc QTY
    111 AAA 2
    222 BBB 3
    333 CCC 2
    444 DDD 1

    Sheet2:

    ISBN Desc QTY
    111 AAA 2
    222 BBB 2
    444 DDD 2

    Sheet3: (the resulting data)

    ISBN Desc Difference
    111 AAA 0
    222 BBB 1

    Stops here because the ISBN values are now different.

    Any help on this would be appreciated....find below the sub I am currently using:

    Thanks!

    Lou



    Please Login or Register  to view this content.
    Last edited by CanadianGSX; 06-25-2010 at 12:02 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Calculating differences between two sheets

    CanadianGSX,

    Welcome to the Excel Forum.

    Detach/open workbook AdvancedFilter Unique ws1 ws2 to ws3 SUM IF - Calculating differences between two sheets - CanadianGSX - SDG13.xls, and run macro CalcDiff.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    06-24-2010
    Location
    Cornwall, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Calculating differences between two sheets

    Solved with the following code:

    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)

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