+ Reply to Thread
Results 1 to 16 of 16

Table cross-check

  1. #1
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Table cross-check

    Hello,

    I have two huge tables that i need to compare and find out diferences beetween them.
    Tables are randomly sorted so basicly i need full cross check.


    Exemple:


    Frst row from first table can be anywhere in second table. I only need to know is it there! If it's not, need to be marked or copied in third sheet..i dont really care.


    Tables can be compared column G - DOC NUMBER.


    So if anyone has an idea i would be grateful.

    Win 7
    Office 2013
    http://i57.tinypic.com/adlv2w.jpg

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Table cross-check

    When you say it needs to be marked and copied into sheet 3, is it just the code, or do you want the entire record from sheet 2 that is not found in the sheet 1 to be copied into sheet 3?

  3. #3
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    I need any form of collecting differences. Best solution would be if i could seperate them in third sheet (hole rows copied in third sheet) but if you have other idea it's cool

  4. #4
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Table cross-check

    Here is a macro that will extract the records on sheet 2 to sheet 3 if it is not on sheet 1
    It also marks the records on sheet 2 in blue is they are not on sheet 1. (Basically the record in blue are the ones that have been copied to sheet 3).

    The macro assumes your sheets are called Sheet1, sheet2 and sheet3.

    Try it out and see if it works for you.
    Copy the entire macro and paste it into a module in the workbooks VBA editor.
    Then run it.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    Thank you for effort but it didnt work for me...
    I think the best way is this...
    I uploaded whole sheet to box.net so you can try yourself...maybe im doing something wrong...

    here is the link of sheet

    https://app.box.com/s/s3o865ezazsrmfg2aqot

    Thanks!

  6. #6
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Table cross-check

    Hi Libre,

    Here is a quick and dirty solution, but VERY accurate. (No macro this time...just formulas)

    Follow these steps:
    Insert a new column "A" in sheet 2
    Type this formula in cell A2 : =TRIM(H2)
    Fill the formula down to the bottom with autofill

    Now go to sheet 1 and insert a new column "A" in this sheet
    Next to the first record in cell A4, type this formula : =MATCH(TRIM(H4),Sheet2!$A:$A,0)
    Fill the formula down to the bottom with autofill

    Switch on autofilter on the first in sheet 1
    Use the autofilter to filter for #N/A
    These records with #N/A are NOT found in sheet 2.
    Regards,
    Rudi

  7. #7
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    Thanks again but match formula has an error..:-)
    Maybe its best to download my sheet and try it yorself

    And just reminder...i need crosscheck, showing differences:

    1. From Sheet1 that doesnt exist in Sheet2
    2. From Sheet2 that doesnt exist in Sheet1


    Thanks again!

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Table cross-check

    Upload the sheet to this forum (Go Advanced>Manage Attachments) Trim it down to a manageable size if it's very large.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    Can i upload 5mb file?

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Table cross-check

    No, try zipping it or just include enough data to show us what you are trying to do.

  11. #11
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    Here it is..
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Table cross-check

    Okay, so none of the headers in sheet1 match headers in sheet2. Which columns in sheet1 need to be matched in which columns in sheet2? Did you say that the columns will be switching around so that sometimes it'll be column B in 1 compared to G in 2 and next time it will be C in 1 compared to D in 2? If we could just match headers, it would be a lot easier.

  13. #13
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Table cross-check

    Quote Originally Posted by libre. View Post
    Thanks again but match formula has an error..:-)
    Maybe its best to download my sheet and try it yorself

    And just reminder...i need crosscheck, showing differences:
    Hi,

    I did download your file from box.
    The formulas I set up were on that large file and they worked fine, exactly to the steps I posted.
    Not sure why is did not work for you.

    Anyways...I do admit that I only did the check from one side...

  14. #14
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    Ok, the headers are not the same but i colored the header REFERENCE that can be used for crosscheck.

    Maybe we will find solution

    Thanks for help everyone..
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    12-26-2013
    Location
    Balcan
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Table cross-check

    To make things simple, can you mark each missing by color?
    Sheet1 – color marked rows that doesn’t exist in Sheet2
    Shee2 – color marked rows that doesn’t exist in Sheet1

    I can easily filter results by color and take what I need, so no need for Sheet3 as result sheet?

    Thanks.

  16. #16
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Table cross-check

    Hi,

    See the attached sample workbook (sheet 3)
    In the small list, my formula works well and I can confirm its accuracy.

    If I apply this formula to your reference numbers, then I'm not sure if I can verify the results? They look suspicious?
    Please confirm...
    Attached Files Attached Files

+ 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: 4
    Last Post: 03-25-2014, 02:01 AM
  2. Cross Check Information in Two Spreadsheets
    By MCN56171 in forum Excel General
    Replies: 3
    Last Post: 05-01-2013, 01:59 PM
  3. Cross check Sheets
    By BachiZ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2012, 02:28 AM
  4. [SOLVED] VLOOKUP - simple cross check
    By Nate Westcott in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2012, 10:34 AM
  5. formula for data cross check
    By legolas in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-06-2012, 05:05 PM

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