+ Reply to Thread
Results 1 to 4 of 4

compare 2 worksheet and copy the duplicate line to a new worksheet

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    compare 2 worksheet and copy the duplicate line to a new worksheet

    I want to compare the data from 2 worksheets. first worksheet is my original data and second worksheet is my outcome data. while compare the outcome data against orginal data. If the information exist in the original data and outcome data then is fine, but if the outcome data duplicate the data(which means appearing twice). Then it shall the copy and paste to one of the data another worksheet (name: duplicate record).

    Attached the sample excel file and the outcome. It will be great if anyone could assist in the marco. Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: compare 2 worksheet and copy the duplicate line to a new worksheet

    If i understand it clearly, if the data exists in the original and outcome, its fine.

    But if the data exists in original and twice in outcome, it should be moved to a different sheet?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-31-2012
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: compare 2 worksheet and copy the duplicate line to a new worksheet

    Yes, your understanding is correct. Thanks

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: compare 2 worksheet and copy the duplicate line to a new worksheet


+ 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