+ Reply to Thread
Results 1 to 5 of 5

Compare list on sheet 1 to list on sheet 2 to find variance

  1. #1
    Registered User
    Join Date
    06-23-2011
    Location
    Nantucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    35

    Compare list on sheet 1 to list on sheet 2 to find variance

    I attached an example of the lists I get.

    I would like to be able to total all similar items on sheet 1 (based on item code) and compare to the list on sheet 2 (will never have duplicates) so I can find the difference between the two totals.

    Thanks,
    Anthony
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Compare list on sheet 1 to list on sheet 2 to find variance

    sheet 2 (will never have duplicates)
    Not so

    This is from sheet2...
    A9&A10 are the same
    as are B8 and B10
    However, this will sum the contents oif sheet1 based on sheet 2...
    =SUMIF(Sheet1!$B$2:$B$15,Sheet2!B2,Sheet1!$D$2:$D$15)
    If you want to show where there is a difference...
    =IF(SUMIF(Sheet1!$B$2:$B$15,Sheet2!B2,Sheet1!$D$2:$D$15)<>D2,"Variance","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-23-2011
    Location
    Nantucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Compare list on sheet 1 to list on sheet 2 to find variance

    Quote Originally Posted by FDibbins View Post
    Not so

    This is from sheet2...
    A9&A10 are the same
    as are B8 and B10
    Sorry for the confusion. I tried to put together something real simple to show what I was looking for and missed the mark on that.

    I have a new file attached now that is an accurate representation of what I am trying to find.

    What I am trying to accomplish is:
    1. Look at the first item on sheet2 (AB5454-F03 lot 140055)
    2. I would like to add all remaining quantity (column c) of that exact combination from sheet2.
    3. Compare that sum to the sum of all exact material (Item No. and Lot No.) from Sheet1.
    4. If there is a difference, put that in column D on sheet2.
    5. Repeat process for every unique Item and Lot combination on Sheet2.

    Im hoping that makes at least a little sense.

    Thanks,
    Anthony
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-23-2011
    Location
    Nantucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Compare list on sheet 1 to list on sheet 2 to find variance

    Any other information that I could add that might help?

    Thanks,
    Anthony

  5. #5
    Registered User
    Join Date
    06-23-2011
    Location
    Nantucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Compare list on sheet 1 to list on sheet 2 to find variance

    Hoping a few others might see this.
    Not sure how to progress...just hate to have to do this manually every few days.

    Thanks,
    Anthony

+ 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. [SOLVED] List of Codes on one sheet, Billing data on another sheet, highlight code if in list
    By children in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2013, 05:03 PM
  2. Compare two sheets of Data and output Variance on New Sheet
    By artikyulashun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2012, 01:51 AM
  3. Compare lists, and paste variance in new sheet
    By BTYOUNG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2011, 10:11 PM
  4. Replies: 7
    Last Post: 11-11-2010, 09:51 PM
  5. how to find and copy values on sheet 2, based on a list on sheet 1
    By evanmacnz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2005, 05:06 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