+ Reply to Thread
Results 1 to 7 of 7

VB Code to display and count duplicates

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    VB Code to display and count duplicates

    I am looking for a way to identify duplicates across multiple columns in excel, list each dplicate in another sheet, and display how many times each duplicate field occurs. (See attached fo desired results)

    Thanks in advance.

    Met
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VB Code to display and count duplicates

    Hi Met. Try it
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    Re: VB Code to display and count duplicates

    Nilem:

    That works! However, is there a way to exclude non-duplicated fields? Rather the entries that have a count of one? I am attaching my actual spreadsheet with your addon attached to my macro. (the macro has been executed) As you will see, my vb knowledge lacks but it works. I also want to skip the first two rows because they are titles and it would be nice to name the new sheet something, is this possible? Thans for all your help.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    Re: VB Code to display and count duplicates

    Adendum:

    I am only interested in the fields in column A for each of the sheets. (AKA the Lawson Item #) The other fields need to be ignored. I hope my poor explaination has not confused you.

    Thanks,
    Met

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VB Code to display and count duplicates

    try this
    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,633

    Re: VB Code to display and count duplicates

    Here's my take
    Please Login or Register  to view this content.
    Last edited by jindon; 04-16-2012 at 01:03 AM.

  7. #7
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    Re: VB Code to display and count duplicates

    Works like a charm! Kudos to both Nilem and Jindon.

+ 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