+ Reply to Thread
Results 1 to 2 of 2

How do I delete matching entries on 2 sheets.

  1. #1
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    167

    How do I delete matching entries on 2 sheets.

    Hi

    I have a workbook that im trying to delete matching entries but there may be occasions when there are duplicated entries.

    What im trying to do is if in sheet 1 exactly the same data is in sheet 2 then I need both entries deleted from both sheets. The issue I have is that sometimes there will be duplicated entries in either sheet 1 or 2 and then I only need 1 entry deleted.

    I.E say in sheet 1 there is one entry with data in columns A-D and there 2 entries the same in sheet 2 then I only need one entry in sheet 2 deleting. There may be the same the other way round where there 2 entries in sheet 1 but not sheet 2 and again I need just one deleting from sheet 1.

    The data will be spread all over the workbook as in rows will not match on sheets 1 & 2 per row. Data poss in row 99 in sheet 1 may be in row 9999 in sheet 2 but if they match as per instructions above I need them deleting.

    Attached is a workbook that I have started doing.

    Any ideas as im very very new to macros

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: How do I delete matching entries on 2 sheets.

    I sounds to me that having duplicates on the same sheet is what should initiate the deletion, rather than whether or not there is a duplicate entry on the "other" sheet.
    If that is the case then the Remove Duplicates feature on the Data tab can do the work.
    Be sure to select the entire range of cells, i.e. A2:D6 on Sheet1, and then utilize the feature.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 18
    Last Post: 10-08-2017, 04:17 AM
  2. Compare two columns from diff excel sheets and delete all non matching rows
    By Girija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2013, 11:08 PM
  3. VBA macro needed to delete duplicate entries matching across multiple columns
    By chicolocal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 02:34 PM
  4. Delete from 2 sheets if matching criteria
    By motown in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-13-2009, 03:22 PM
  5. Help matching entries in two sheets???
    By Curalice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2005, 03:53 PM
  6. [SOLVED] Finding duplicate entries with matching lengths, total the quantities, delete the extras
    By RShow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2005, 06:05 AM
  7. Matching Entries of Two Column
    By mazalam in forum Excel General
    Replies: 1
    Last Post: 09-01-2005, 10:05 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