+ Reply to Thread
Results 1 to 9 of 9

compare two excel files and extract differences

  1. #1
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Exclamation compare two excel files and extract differences

    Hello
    I want to extract the difference between two excel files and save it to my Maco files sheet name (NEW_RECORDS)
    File Names changes on daily basis so I am selecting Files manually

    File1 have old records and File 2 have new records. I am finding the new records based upon Column C (Account IDs)
    I am using vlookup before automating it

    I need your suggestion to achieve it.
    my code is as under

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: compare two excel files and extract differences

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: compare two excel files and extract differences

    No need to open.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Re: compare two excel files and extract differences

    Excellent solutions both are working fine
    Learned the the way to achieve it by the code of Bo_Ry
    and Jindon codes always make me amaze .

  5. #5
    Registered User
    Join Date
    03-10-2021
    Location
    Paryzevo
    MS-Off Ver
    2k3
    Posts
    60

    Re: compare two excel files and extract differences

    Your csv files have a different structure (different number of columns) ... :-( (?)

  6. #6
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Re: compare two excel files and extract differences

    Quote Originally Posted by mjr veverka View Post
    Your csv files have a different structure (different number of columns) ... :-( (?)
    Same no of columns and in my case no of rows and columns does not matter because I am comparing the data based on Column C which is a common key in both files

  7. #7
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Re: compare two excel files and extract differences

    @Bo_Ry
    i am getting error on this line
    Please Login or Register  to view this content.
    Last edited by vikas_newports; 03-29-2021 at 03:12 PM.

  8. #8
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Re: compare two excel files and extract differences

    When I run this code standalone on sample file it is working fine and same code and files apply to my Original Workbook it is giving Error 1004
    No idea what to do further

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: compare two excel files and extract differences

    Maybe try add single quote.
    Please Login or Register  to view this content.

+ 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. How to compare multiple excel files & highlight differences?
    By Compare Excel in forum Excel General
    Replies: 1
    Last Post: 03-22-2019, 02:17 AM
  2. Compare two excel files and only extract data from one file
    By Tturner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2018, 08:06 PM
  3. [SOLVED] Compare lists and extract differences
    By ejoneslor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2016, 05:45 AM
  4. Compare .xlsx files for differences
    By simplymanasmandal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2014, 02:08 PM
  5. Is it possible to compare two sheets and extract out the differences?
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2014, 11:51 AM
  6. [SOLVED] Compare 2 Excel files with multiple tabs for differences (find changes)
    By bdicarlo1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2013, 05:58 PM
  7. Macro to compare two excel files and highlight the differences
    By neets1228 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2012, 05:18 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