+ Reply to Thread
Results 1 to 7 of 7

Need Macros to find and list duplicates in a column

  1. #1
    Registered User
    Join Date
    12-10-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    56

    Need Macros to find and list duplicates in a column

    Hi All,

    I need a macro which finds and lists the duplicate values in a given column.
    I am attaching the excel sheet for your reference.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-27-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007/2010
    Posts
    86

    Re: Need Macros to find and list duplicates in a column

    Try
    Please Login or Register  to view this content.
    Boon

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Need Macros to find and list duplicates in a column

    hi , you can actually do Conditional Formatting to highlight those duplicates by selecting A1:A10 & going to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =COUNTIF($A$2:$A$10,A2)>1.

    but if you need to list them, try:

    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    12-10-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Need Macros to find and list duplicates in a column

    Thanks a lot for the solution, however instead of coloring the duplicate values, is it possible to show the "Duplicate Values" in a Msgbox.

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Need Macros to find and list duplicates in a column

    how about:
    Please Login or Register  to view this content.

  6. #6
    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: Need Macros to find and list duplicates in a column

    Do you really need a macro for this?

    This workbook will update as the Data in Column A Grows.

    The helper column can be hidden.

    The C/F highlights the duplicates

    [EDIT]
    Extracted more information using formule, and changed workbook.
    Attached Files Attached Files
    Last edited by Marcol; 11-13-2012 at 09:55 AM.
    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.

  7. #7
    Registered User
    Join Date
    07-27-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007/2010
    Posts
    86

    Re: Need Macros to find and list duplicates in a column

    If you want a macro, try this
    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