+ Reply to Thread
Results 1 to 4 of 4

Compare two columns (from different sheets) delete if no match and insert if missing

  1. #1
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Compare two columns (from different sheets) delete if no match and insert if missing

    Hi there,

    Looking for some VBA help as I'm not an coding expert.

    I have two tables in two different sheets (sheet 1 and sheet 2).
    My requirement:
    1. The data in Sheet 2 needs to be compared with data in Sheet 1, if there is match then keep that record.
    2. If data matched but if it is duplicate as one of the above records then delete.
    3. If there is no match found in Sheet 2 when compared with Sheet 1 then delete.
    4. Insert if any records missing in Sheet 2 when compared with Sheet 1.
    5. Arrange records in Alphabetical order - this is optional for me but other 4 are mandatory.

    Can someone please help?

    I'm attaching sample workbook with dummy data in it. Thanks in advance!!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Compare two columns (from different sheets) delete if no match and insert if missing

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Compare two columns (from different sheets) delete if no match and insert if missing

    Though I tried to understand the code but I couldn't able to but it is serving my purpose, so thanks a lot!
    Closing this thread.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Compare two columns (from different sheets) delete if no match and insert if missing

    You are very welcome.

+ 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. Compare 2 columns, delete cells with no match
    By cmd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-22-2019, 04:52 AM
  2. [SOLVED] Compare two columns on separate sheet, if missing, insert missing data
    By lilvictorians in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-03-2019, 11:44 PM
  3. How to compare columns in 2 sheets then delete if no match
    By needtoknowasu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2017, 12:13 AM
  4. Default Compare 2 sheets and delete entire row if don't match
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2016, 02:27 PM
  5. Compare Sheets and find missing Columns
    By anandrajagopal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:09 AM
  6. VBA Compare two sheets and copy potentially missing columns
    By Gimly in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-29-2014, 09:58 AM
  7. Compare two sheets and delete row if match found
    By Steinwall in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2011, 03:25 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