+ Reply to Thread
Results 1 to 7 of 7

Reconciliation of Data in two spreadsheets

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    Bangalore, India
    MS-Off Ver
    Office 365
    Posts
    4

    Reconciliation of Data in two spreadsheets

    Dear Team,

    Please help me create a Macro for reconciliation of data in the two attached spreadsheets. The spreadsheet 'Data1' has the actual data and the spreadsheet 'Changes' has the changes listed in the Column A. I need to create 3 tabs in the spreadsheet (either same or new) namely Deleted, Changed, Newly Created. The three tabs should contain deletions, changes & new creations respectively)
    The attached file is an extract of the file whereas the actual files has anywhere between 5000 to 6000 line items.

    Thanks
    Attached Files Attached Files
    Last edited by khanhrkhan; 02-26-2019 at 05:51 AM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Reconciliation of Data in two spreadsheets

    What is the primary key for the records?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    02-04-2019
    Location
    Bangalore, India
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Reconciliation of Data in two spreadsheets

    Hi,
    The primary key will be the column code (column K) in file "Data1" & Column L in file "Changes". For easy identification I have renamed the coumns as Unique Code in both the spreadsheets and attached them once again. Hope this helps
    Attached Files Attached Files
    Last edited by khanhrkhan; 02-27-2019 at 06:55 AM.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Reconciliation of Data in two spreadsheets

    Let me restate the requirement so I am sure I understand.

    You want to look at the Data file and compare it with the Changes file and you want to prepare three lists
    -Deleted - these are records in the data file that are not in the changes file
    -Changed - these are records in the data file that have different information in them than the changed files
    -Newly Added - these are records in the Changes file that are not in the Data file.

    You do NOT want a list of records in the data file that are not changed.

    As for Column A in the changes file: do you fill this in, or are you expecting the program to fill this in?

  5. #5
    Registered User
    Join Date
    02-04-2019
    Location
    Bangalore, India
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Reconciliation of Data in two spreadsheets

    Am sorry for not being clear in the first instance,
    I want to look at the Data file and compare it with the Changes file and prepare three lists (deleted, changed, newly added)
    - The column A in the 'Changes' file shows the changes which needs to be done (it has main categories such as Changed, Deleted & newly Added)
    - I do not want a list of records that are not changed
    - Column A in 'Changes' file is the reference which tells what changes needs to be done in the 'Data' file.
    - Column A in 'Changes' file is pre filled
    Hope I have made thing clearer now.

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Reconciliation of Data in two spreadsheets

    I think this should do it for you.
    - In Cells B1 & B2, enter in the path names to where the data and change files are. They can be in the same path.
    - In Cells B4 & B5, enter in the file names for the data and changes files.

    Click on Clear Old Data to clear out old data if you wish.
    Click on Compare Lists to generate the lists.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-04-2019
    Location
    Bangalore, India
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Reconciliation of Data in two spreadsheets

    Thank you so much for your help. I will get back to you with the results.

+ 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. Reconciliation of 2 sets of data for differences
    By leigh3980 in forum Excel General
    Replies: 2
    Last Post: 02-07-2019, 11:09 AM
  2. Data reconciliation using VBA
    By wachao in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2018, 04:45 AM
  3. Reconciliation of data from two excel sheets
    By krishnam88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2015, 05:06 PM
  4. Conception of reconciliation/data comparison
    By regresss in forum Excel General
    Replies: 2
    Last Post: 05-30-2015, 06:24 AM
  5. [SOLVED] Daily Data Reconciliation
    By CRW in forum Access Tables & Databases
    Replies: 19
    Last Post: 09-15-2012, 02:35 AM
  6. Reconciliation of two sets of data
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-28-2010, 04:03 PM
  7. Reconciliation data of multiple worksheets
    By outletmall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2009, 04:41 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