+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : List differences between tables

  1. #1
    Registered User
    Join Date
    07-22-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    22

    Post List differences between tables

    Hi,

    Is there a way to list the differences in values between two identical tables.

    Table - 1
    BA | BB | BC | BD | BE
    AA| 234| 235 | 466 | 235 | 234
    AC| 235| 534| 45 | 26 | 235
    AF| 34| 869| 345 | 346 | 632

    Table - 2
    BA| BB| BC| BD| BE
    AA| 233| 235| 466| 235| 234
    AC| 234| 534| 44| 26| 235
    AF| 35| 869| 346| 345| 632

    Result
    Sl. No.| Description| Table 1| Table 2| Difference
    1| AA - BA | 234| 233| 1|
    2| AC - BA | 235| 234| 1|
    4| AC - BC| 45| 44| 1|

    I want the difference between the table 1 and table 2 to be listed in the result table in the

    way above. Is there any shortcut or macro to do this. Please help me.

    Thanks,
    Yathish D
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: List differences between tables

    Please post a copy of the workbook so that it is possible to see where the tables are situated in the workbook and indicate where you would like the results to go.
    Martin

  3. #3
    Registered User
    Join Date
    07-22-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Excel 2007 : List differences between tables

    Hi,

    Please find the file attached.
    I want the source data of the differences in different columns to be listed one below the other in the result tab.

    Thanks in advance.

    Regards,
    Yathish D
    Attached Files Attached Files

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Excel 2007 : List differences between tables

    Please see the attached. The code is in Module1 in the VBA editor (ALT F11).

    A button on the result tab runs the code.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-22-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Excel 2007 : List differences between tables

    Quote Originally Posted by mrice View Post
    Please see the attached. The code is in Module1 in the VBA editor (ALT F11).

    A button on the result tab runs the code.
    Thank you. Thanks a lot.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Excel 2007 : List differences between tables

    @ Yathish.d

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Registered User
    Join Date
    07-22-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Excel 2007 : List differences between tables

    Hi mrice,

    I doesn't know much about macro's, I want a slight change in the result tab. I want the results to start from 3rd row instead of 2nd row and if there is any words within the table and if the words doesn't match between the two tables (table 1 and table 2), I get an error message and the macro stops.

    Can you please help me with this.

    Thanks,
    Yathish D

+ 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