+ Reply to Thread
Results 1 to 4 of 4

Locating Duplicates in a range

  1. #1
    Registered User
    Join Date
    01-17-2011
    Location
    Kent
    MS-Off Ver
    Excel 2007
    Posts
    34

    Locating Duplicates in a range

    Hello everyone,

    i'm currently developing a macro to help Check the data of a file we would be importing.

    one of the columns i need to check contains the additional reference for our customers. i need to search this range to find the duplicates, thenn copy and past the data into a second sheet if it is found to be a duplicate. i have used the below code before to find a data item in a range, but don't know if it can be modified to find duplicates?

    Please Login or Register  to view this content.
    whereupon, a 'nothing' would produce a message to the user

  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: Locating Duplicates in a range

    Attach your spreadsheet and we can help you.
    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
    01-17-2011
    Location
    Kent
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Locating Duplicates in a range

    bookoncheck.xlsI wasn't going to, due to complexity making it more convoluted than needs be, but here you go!

    the column additional reference (E) needs to be checked one at a time, and if a duplicate is found in the same column and the column "record type" (B) for both / all is a P, then it needs to highlight the cell yellow, i can program the rest from there.

    Apologies in advance for the clunky nature of my code, i'm a gaffer tape kind of guy!
    Last edited by AppSupportKarl; 12-14-2011 at 09:19 AM.

  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: Locating Duplicates in a range

    Use this code. Put in a blank module of your workbook. I guess you already know where to find it.
    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)

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