+ Reply to Thread
Results 1 to 7 of 7

Need formula or Macro to help find differences between two tables of data

  1. #1
    Registered User
    Join Date
    04-06-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need formula or Macro to help find differences between two tables of data

    Hi, I am new to excel and new to this forum, so I am really sorry if this is a really basic thing to figure out.

    I have two sets of data each containing 3 columns,1. Docket Number,2. A weight 3. price

    I need to look at each set of data and am only looking to extract out differences between the two sets. Thus give a difference report?

    I am not bothered if it is made to a new sheet but that would be great.

    I have included a copy of the data sets.

    Any help would be very much appreciated.

    Thank you for your time and brain power in advance.

    Clare
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,362

    Re: Need formula or Macro to help find differences between two tables of data

    Is not about the desired results, would you cmore larify? give the example results

    Thanks

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need formula or Macro to help find differences between two tables of data

    Hi, and welcome to the forum.

    In Sheet2 D2 enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy it down and then use autofilter to find the #N/A values which identify which docket numbers are not present on Sheet1. There are two as it happens on rows 23 & 63

    Do the same on Sheet1 but change the reference in the formula to Sheet2. There's one on row 152.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    04-06-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need formula or Macro to help find differences between two tables of data

    Hi Richard, thank you very much, that has helped me find just the docket variances, but I need it to look at the docket numbers as well as their associated weight and price to ensure the docket number and its weight and the price is the same for each data set. I hope that is easier to understand.

    eg Sheet 1
    docket
    2358878 volume 13.4 $32.68

    i need it to check that on sheet2 that if the docket is present that it ...
    docket
    2358878 is the same volume 13.4 and price $32.68

    and if a docket is missing or listed as an extra on either sheet that it lets me know!

    I hope that explains it a bit more clearly, very hard to write down how you want it without knowing how excel works!!

    Thank you

  5. #5
    Registered User
    Join Date
    04-06-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need formula or Macro to help find differences between two tables of data

    Hi azumi, I have added further clarification down below.

    Thanks

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need formula or Macro to help find differences between two tables of data

    In that case just create a helper column D in each sheet and in D2 copied down enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now in E2 use the similar formula s before. i.e.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-06-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need formula or Macro to help find differences between two tables of data

    Hi Richard, thank you very much...it works!!! you have just saved me about 10 hours a month

    Thank you very much for your wonderful help.

+ 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. Compare and find differences between two rows of data
    By Lakeshow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2013, 12:18 PM
  2. Replies: 5
    Last Post: 11-30-2012, 01:33 PM
  3. Replies: 14
    Last Post: 10-25-2012, 10:33 AM
  4. Macro to find differences between 2 sheets based on cells matching
    By mauricio1013 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2012, 04:03 PM
  5. Columns of data ... need a macro that can find differences of 0.06 & Fill Color them
    By rocket1406 in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 08-27-2007, 03:16 AM

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