+ Reply to Thread
Results 1 to 5 of 5

How can I identify Duplicates in a column?

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    8

    How can I identify Duplicates in a column?

    I have a column, Column "I", in excel. I have list of a couple hundred records. In this column, I want a formula that will identify any duplicates. There may be more than one set of duplicates, so I guess I could have multiple formulas, then if I find a duplicate, I could delete the record, then have the formula identify if there is another duplicate. Thanks in advance for any assistance.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How can I identify Duplicates in a column?

    Hello RDMRDM,

    Here is macro to remove the duplicates. This works with Excel 2000 and later. This starts at "I1" of the Active Sheet. You can change the starting cell if you need to. It is marked in red. Run this on a copy of your data to be sure it works like you want.
    Please Login or Register  to view this content.
    Adding the Macro
    1. Copy the macro above pressing the keys CTRL+C
    2. Open your workbook
    3. Press the keys ALT+F11 to open the Visual Basic Editor
    4. Press the keys ALT+I to activate the Insert menu
    5. Press M to insert a Standard Module
    6. Paste the code by pressing the keys CTRL+V
    7. Make any custom changes to the macro if needed at this time.
    8. Save the Macro by pressing the keys CTRL+S
    9. Press the keys ALT+Q to exit the Editor, and return to Excel.

    To Run the Macro...
    To run the macro from Excel, open the workbook, and press ALT+F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-24-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: How can I identify Duplicates in a column?

    I don't want to remove them. I just want to identify them. I have 2 fields, a Ticket field and a Amount field. I was to look in these to columns and see if there is more than 1 ticket with same value. Thanks.

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How can I identify Duplicates in a column?

    Here's a Formula version of identifying Duplicates.
    In the attached example, column A has the formula to indicate if the corresponding entry in column E has duplicate(s) in that column. If there is a duplicate [or more than one duplicates] the result in column A will be 1 for all of those entries. I also have a conditional formuls for entries in column E, so all the duplicates will be colored red for easy identification.
    I have used this on one of my programs that had over 1000 entries.
    Hope it helps.
    modytrane

  5. #5
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How can I identify Duplicates in a column?

    sorry, forgot the attachment.
    here it is.
    modytrane
    Attached Files Attached Files

+ 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