+ Reply to Thread
Results 1 to 2 of 2

Compare two excel workbooks (or two worksheets within a single workbook)

  1. #1
    Registered User
    Join Date
    08-03-2016
    Location
    New York
    MS-Off Ver
    2016
    Posts
    1

    Post Compare two excel workbooks (or two worksheets within a single workbook)

    Hi,

    I have two excel workbooks containing member data which I need to compare and sort.
    Each workbook is from a different date (7/15 and 8/1). I have to work with the data file
    -Which members to keep (if the member appears on both files)
    -Which members to add (if the member appears on the newer file, but not the older file)
    -Which members to remove (if the member appears on the old file, but not the new file)

    The way I normally handle it is make a new column in the old file and paste "OLD" down every row of this new column. I then copy the entire worksheet to the new file and sort by name. In the new file I add two new columns, one labeled REMOVE and one labeled ADD. I then proceed to sort the first name and last names columns in A-Z format. Finally, I manually go though the document and put "X"s in the add or remove columns based upon the above conditions. To finish the document, I do a final sort of the REMOVE and ADD columns to have the "X"s at the top of the page.

    I'm trying to see if there is any better way of doing this. I'm open to anything, macros, add ons, VBA scripts, etc.

    Thanks in advance.

    ~SZ

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Compare two excel workbooks (or two worksheets within a single workbook)

    Welcome to the forum Sergio,

    If you use this formula in a spare column on the latest workbook =COUNTIF([Book1]Sheet1!$A$1:$A$400,A1) and copy down you will get a bunch of 1's (when the names exists on both files), and 0's when the name is NOT on the older file.

    Just set up a data filter on ZERO, and those are the names to ADD to your list.

    If you do the same on the OLDER file - the 0's will be the list of names to delete.

    I hope this helps, please let me know!

    Regards,

    David

    Please remember, your request is clearer if you attach a sample workbook.
    - Reply, then Click on Go Advanced and click on the Paper Clip. OR scroll down till you see MANAGE
    ATTACHMENTS

    - If this is helpful, please click on the *Add Reputation button at the bottom.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


+ 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. [SOLVED] Regrouping worksheets from several workbooks into a single Workbook
    By zicitron in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 05-21-2013, 02:38 AM
  2. [SOLVED] Create single worksheet from multiple workbooks with 4 worksheets in each workbook
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2013, 03:35 AM
  3. [SOLVED] Copying Worksheets from Multiple Workbooks to a Single Workbook, Separate Worksheets
    By DHartwig35805 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-27-2012, 11:38 AM
  4. Copying Worksheets from Multiple Workbooks to a Single Workbook, Separate Worksheets
    By Abhi_1977 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2012, 11:32 AM
  5. To copy data from two different excel workbooks in a single workbook using macro
    By neha_gunaji in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-11-2012, 03:28 AM
  6. Replies: 0
    Last Post: 06-12-2012, 04:22 PM
  7. Replies: 2
    Last Post: 01-27-2012, 02:19 AM
  8. Copying Multiple worksheets in Multiple workbooks to one single workbook
    By ebrabender in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-28-2011, 02:30 PM

Tags for this Thread

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