+ Reply to Thread
Results 1 to 11 of 11

Find Duplicates on 2 different sheets & copy

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Find Duplicates on 2 different sheets & copy

    Hi,
    I need a macro which can find duplicates between sheet1 column A compared to sheet2 column A & copy the row into sheet 3. I need the macro to make a copy of the cells and copy it to sheet and delete the remaining entry? I appolgise if this is readily available its just Ive spend 4 hrs searching for it today with no success? Any help would be most appreciated.
    Many Thanks
    Johnny

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find Duplicates on 2 different sheets & copy

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Find Duplicates on 2 different sheets & copy

    John,
    I have tried out the sent code but it leaves the duplicates in sheet1 & sheet2 and copies the non duplicated data to sheet 3. I need it the opposite way around so that it leaves the non duplicated data in sheet1 & sheet2 and copies 1 copy of the duplicated data to sheet 3. Sorry to be a pain.
    Thanks
    Johnny

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find Duplicates on 2 different sheets & copy

    No pain at all. Try.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Find Duplicates on 2 different sheets & copy

    John,
    I have attached a copy of the worksheet with the macro added but it doesnt seam to be working? Can you take a look at it and show me whats wrong?
    Thanks
    Johnny
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find Duplicates on 2 different sheets & copy

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Find Duplicates on 2 different sheets & copy

    sorry John its copying ok and deleting the entry in sheet1 but not sheet2?

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find Duplicates on 2 different sheets & copy

    OK. Perhaps I misunderstood.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Find Duplicates on 2 different sheets & copy

    John,
    I have renamed the sheets and now the macro wont work after all your good work, The name of the sheets are sheet1 = Service Reminders, Sheet2 = MOT Reminders & Sheet3 = Service & MOT Reminders would you mind modifying this for me?
    Sorry again
    Johnny

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find Duplicates on 2 different sheets & copy

    Here ya go.

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Find Duplicates on 2 different sheets & copy

    John,
    Yet another problem, I have inserted the text but I keep getting the attached runtime error? I think it may be because all date above A9 is a header but im not sure, I tried to change the cell references to A9 so that it would start looking after A9 but Im not sure if its correct to do this and if this is what is really causing the problem?
    Thanks
    Johnny
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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