+ Reply to Thread
Results 1 to 4 of 4

Copy Duplicates to new sheet

  1. #1
    Registered User
    Join Date
    10-31-2011
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copy Duplicates to new sheet

    Hi

    I am new to this forum and need some help with Macro. I am hoping if someone would be kind enough to help me with macro that identifies and copies duplicates in a given column to new sheet.

    Sheet 1 is master inventory list, sheet 1 has Column A - Invoice Number , Column B Item Name
    Sheet 2 New daily list Column A - Invoice Number

    Compare 2 excel sheet for duplicates and copy entire row to new sheet

    For Example
    Sheet 1:
    Invoice Number Item Name
    123456 Computer
    456472 Book
    456531 Ipad
    544568 Ipod

    Sheet 2:
    Invoice Number
    123456
    456454
    545648
    456531

    End Result
    Invoice Number Item Name
    123456 Computer
    456431 Ipad


    Any assistance will be greatly appreciated
    Last edited by faisalS; 11-02-2011 at 12:21 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Copy Duplicates to new sheet

    Hi faisalS
    Welcome to the forum
    you could use the staple code

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    10-31-2011
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copy Duplicates to new sheet

    Thanks Pike, really appreciate your help. the code you provided worked perfectly. it gave me a Run Time Error at first but i knew it was user error read forum and finally got it working.

    The code gave me a new sheet with all duplicates and its rows. You are AWESOME!!!!. you made my day.

    FaisalS

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Copy Duplicates to new sheet

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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