+ Reply to Thread
Results 1 to 10 of 10

Find and List duplicate values

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 365
    Posts
    206

    Find and List duplicate values

    Hi,

    I have a script where I input a list of values in column A of sheet1, then after I run the macro I want to have a unique list of the duplicate values on sheet2 in column A, however, the only thing listed is the header can someone tell me where I am going wrong?

    Please Login or Register  to view this content.
    Last edited by sriley5; 06-09-2018 at 06:09 AM.

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Find and List duplicate values

    if you want this operation on sheet level then why not use the builtin function

    Please Login or Register  to view this content.
    Teach me Excel VBA

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 365
    Posts
    206

    Re: Find and List duplicate values

    Sounds like a good idea, however, I need a tool to report out the duplicates, the decision to remove them from the populated list is up to another person.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Find and List duplicate values

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 365
    Posts
    206

    Re: Find and List duplicate values

    Bakerman2,

    You're close, however, I need the opposite. The script you wrote gives me the unique values of the original list, I need a unique list of the values duplicated. - I will however keep your script in my back pocket since I'll need that for a future project.

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

    Re: Find and List duplicate values

    Unique value which have duplicates.
    Please Login or Register  to view this content.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Find and List duplicate values

    Something like this.
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 365
    Posts
    206

    Re: Find and List duplicate values

    Jindon,

    I get a type mismatch error code

  9. #9
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 365
    Posts
    206

    Re: Find and List duplicate values

    Quote Originally Posted by bakerman2 View Post
    Something like this.
    Please Login or Register  to view this content.
    Bakerman2,

    This is amazing works perfectly and takes a split second to run. Appreciate it

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

    Re: Find and List duplicate values

    Quote Originally Posted by sriley5 View Post
    Jindon,

    I get a type mismatch error code
    Just strange, I've tested for myself.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2017, 07:29 PM
  2. [SOLVED] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  3. Find duplicate values from a list
    By stama100 in forum Excel General
    Replies: 25
    Last Post: 04-14-2014, 11:25 AM
  4. Replies: 3
    Last Post: 08-07-2013, 12:32 AM
  5. Replies: 2
    Last Post: 02-20-2012, 06:06 PM
  6. [SOLVED] Find duplicate in a list
    By Thyagaraj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2006, 03:20 AM
  7. Find a duplicate value within a list?
    By Arla M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2005, 07:06 PM

Tags for this Thread

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