+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : How to compare data in two tables?

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    How to compare data in two tables?

    Dear Friends,

    How can I compare data and get the result like attached file?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by learner6; 04-05-2009 at 01:06 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to compare data in two tables?

    The following macro will do what you'd like. Run it on the attached sheet, or install it into your own. It should work with any length sets of data.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-02-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to compare data in two tables?

    Quote Originally Posted by JBeaucaire View Post
    or install it into your own.
    Dear Friend,

    It is marvelous. Working so nice. I would like to know how to install it on my own form?

    Regards,

    Learner6

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to compare data in two tables?

    Press Alt-F11 to open the VBEditor
    Click Insert > Module
    Paste in the code provided above
    Press Alt-F11 to close the editor
    Save your sheet before running it the first time...

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

  5. #5
    Registered User
    Join Date
    04-02-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to compare data in two tables?

    Quote Originally Posted by JBeaucaire View Post
    Press Alt-F11 to open the VBEditor
    Click Insert > Module
    Paste in the code provided above
    Press Alt-F11 to close the editor
    Save your sheet before running it the first time...

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]
    Thanks a lot it is marvelous. I have one another problem. I hope you may help me to solve the problem. The thread link is:

    http://www.excelforum.com/excel-2007...as-result.html

    Thanks once again for the help.

+ 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