+ Reply to Thread
Results 1 to 6 of 6

Finding Duplicates Rows of Data on a daily spreadsheet

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    34

    Finding Duplicates Rows of Data on a daily spreadsheet

    Hi,

    I hope someone can help. I am trying to extract rows of data that have the same entries in 2 of the 5 columns of data.

    I have managed to write some code that highlights them in red background, but I would like to copy the duplicates over to another sheet within the same workbook.

    I've attached an example data file together with the code that I have written.

    Thanks in advance,
    Matt
    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: Finding Duplicates Rows of Data on a daily spreadsheet

    Which are the 2 fields that should be checked for duplicates?

    Should the duplicates be removed from the original set after copying to the new 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
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Finding Duplicates Rows of Data on a daily spreadsheet

    Try this formula approach to your problem, no need for VBa

    1/. Use a helper Column in Sheet "Data", say Column G
    In G2
    Please Login or Register  to view this content.
    Drag/Fill Down as required

    2/. With Sheet "Duplicates"
    In A2
    Please Login or Register  to view this content.
    Drag Across to Column E, then down until blank rows are returned.

    3/. The best result will be if Sheet "Data" is sorted as follows ...
    Sort by PurchaseCode then by GRNCode then by Date
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Finding Duplicates Rows of Data on a daily spreadsheet

    The 2 fields are PurchaseCode and Value.

    I would like the duplicates to remain in the original set after copying to the new sheet.

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

    Re: Finding Duplicates Rows of Data on a daily spreadsheet

    Did you try the solution in post 3?

  6. #6
    Registered User
    Join Date
    07-04-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Finding Duplicates Rows of Data on a daily spreadsheet

    Quote Originally Posted by arlu1201 View Post
    Did you try the solution in post 3?
    Yes I did. I transferred it into VBA, as the file has a varying number of records each day. Thanks Guys !

+ 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