+ Reply to Thread
Results 1 to 2 of 2

Compare lists, and paste variance in new sheet

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Kansas City
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Compare lists, and paste variance in new sheet

    Hello, I am trying to compare lists from two different sheets and then paste the variance on a new sheet, but it only seems to paste the last variance found.

    Here are the specs:
    Sheet 1 is called SerialNumSubReport
    Sheet 2 is called PHYSICAL_VERIFICATION
    Sheet 3 is called RESULTS

    Sheet 1 contains a report output that includes serial numbers in Column G, Sheet two contains serial numbers physically found in column A (these will be entered by the user), Sheet 3 will contain a list of the Serial number(s) that are on sheet 1 but can not be found on Sheet 2.

    Right now my code is as follows, but it only returns the last variance, not a list of the variances. I'm sure I'm messing up something in the loop, but I'm very new to VBA so I can't quite figure it out.

    Please Login or Register  to view this content.
    Any Thoughts? I also attached a copy of the macro document, with sample data included.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Compare lists, and paste variance in new sheet

    Hi BTYOUNG,

    Welcome to the forum!!

    While I haven't coloured the unmatched entries in red, try this:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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