+ Reply to Thread
Results 1 to 5 of 5

Compare two ranges on two different sheets and delete row if duplicate found

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Compare two ranges on two different sheets and delete row if duplicate found

    Ok, maybe someone can help me with this particular issue. I need some VBA code for the following:

    I have a workbook with 2 different sheets. Sheet 1 is labeled "eComm Line Item" and Sheet 2 is labeled "Vdata". Both sheets can contain a varying number of rows. I need to compare the combined data of Sheet 1 columns E & F for each row in this sheet to the combined data of columns C & D for each row in Sheet 2. (kinda like a vlookup with two cells). If a match is found, I want the row in sheet 1 only deleted.

    Any help is appreciated.


    Thanks,

    Met

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Compare two ranges on two different sheets and delete row if duplicate found

    We will go faster if we had an Excel sample ...!
    Can you prepare it and attach it ?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Compare two ranges on two different sheets and delete row if duplicate found

    Perhaps next code
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Re: Compare two ranges on two different sheets and delete row if duplicate found

    See attached. Sheet eComm Line Item (2) has the desired result.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Compare two ranges on two different sheets and delete row if duplicate found

    A small adjustment
    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. [SOLVED] Hisghlight ragne if value found unique when we compare two ranges
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-16-2017, 02:22 AM
  2. delete the entire row if duplicate found in column
    By gujugolf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 04:07 PM
  3. [SOLVED] If duplicate is found in column B, delete Row, if not, msgbox and exit
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2013, 11:34 AM
  4. Compare 2 sheets and delete duplicate rows
    By Gavlar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2011, 01:34 AM
  5. 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
  6. Compare to Sheets and Delete Duplicate Rows...
    By BossWebmaster in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2008, 11:19 AM
  7. Delete ranges after duplicate is found
    By WhiteKelso in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-04-2007, 06:02 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