+ Reply to Thread
Results 1 to 4 of 4

Comparing 2 tables

  1. #1
    Registered User
    Join Date
    05-31-2007
    Posts
    44

    Comparing 2 tables

    Hi,

    Please see attached xls file.

    On Sheet("Preliminary Exams"), I have 3 columns of data: Student's Name, Subject and Grade.

    On Sheet("A Levels"), I also have the same 3 columns of data.

    Would anyone be able to help me with a VBA script which will run through every data entry in Sheet("Preliminary Exams") and compare against the data in Sheet("A Levels"). Specifically,

    If the Name, Subject and Grade are all identical, then this entry (all 3 columns) are copied to Sheet("Same");

    If the Name is not found in Sheet("A Levels"), or the grade is different, then, copy that entry into Sheet("Different").

    Please help. Thank you very much.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    See attached file... I added macro 'Macro1'. I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-31-2007
    Posts
    44

    Wonderful!!!

    Works beautifully. Thank you very much.

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Glad to knoe it helped.

    Regards,
    Antonio

+ 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