+ Reply to Thread
Results 1 to 4 of 4

Possible to run a test saying if two large tables are equal? Or if two rows are equal?

  1. #1
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Possible to run a test saying if two large tables are equal? Or if two rows are equal?

    Hi all,

    I have a very large table in Excel which imports data from SQL/C# calculations. I know the original one is correct.

    I have now made some changes in the stuff outside of Excel and need to start testing for errors. Basically, there should be no changes pre/post these changes, but you never know.

    I plan on testing random rows and just leaving it at that if everything looks okay. But I was wondering if there's a quick way to help me to do this.

    Any thoughts?

    I suppose the best manual method might be to copy and paste identical rows and just visually scan them.

    Thanks in advance.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Possible to run a test saying if two large tables are equal? Or if two rows are equal?

    I have a program that gives me a .csv file output to check to see if data in the program has changed to compare against my access database.
    I take the .csv file and paste my access file data for the same timeframe and same fields into column AF then put this formula in cell Q2 =IF(A2=AF2,"","NO") then drag across to AE2 then autofill to the end of the data, make sure the sort ascending is based on the same field (in this case an ID) so that the columns A and AF should match. Then apply a filter to columns Q through AE and look for any "NO" and that shows me which if any fields have changed.
    Perhaps that will give you some idea of what you could do. I'm sure there are other ways.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Possible to run a test saying if two large tables are equal? Or if two rows are equal?

    Since you have Office 365. You can use PowerQuery (Get & Transform).

    Add both tables to PQ, and join (merge) tables using all columns as key. Using Left/Right Anti join to return rows only found on one side, to show where there's mismatch.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Possible to run a test saying if two large tables are equal? Or if two rows are equal?

    Thanks, guys. Good suggestions!

+ 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. Replies: 2
    Last Post: 06-10-2017, 04:58 PM
  2. [SOLVED] how to test for multiple cells being equal?
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2016, 11:50 AM
  3. [SOLVED] Populate count & sum based on equal to & not equal to factors
    By jscalem in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-20-2015, 01:20 PM
  4. Replies: 4
    Last Post: 04-21-2014, 10:08 AM
  5. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  6. Scoresheet with Equal Ranks - need to identify equal placings separately
    By Caroleh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 02:59 AM
  7. ANOVA procedures and t-test equal variance
    By Noosa in forum Excel General
    Replies: 1
    Last Post: 05-12-2005, 02:09 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