+ Reply to Thread
Results 1 to 4 of 4

duplicate entries

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2000
    Posts
    18

    duplicate entries

    what is the command to find out how many duplicate entries you have in 1 column, then also make excel list the names of those duplicate entries.

    for example: say column a contains the following numbers:
    219
    457
    219
    345
    789
    10
    345
    345

    I want column B to say that 219 and 345 were duplicated in column a, and also count how many times they have been duplicated, "2" for 219 and "3" for 345.

  2. #2
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: duplicate entries

    Assuming 219 is the value in a1, then in cell b1 put in =countif(a:a,a1) and fill down. It will then look something like this:

    219 2
    457 1
    219 2
    345 3
    789 1
    10 1
    345 3
    345 3

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: duplicate entries

    A slight addition to Down Under's solution. If you want to first display a list of unique entries in column A and then their respective counts, you can copy column A to a blank column and select Data-> Remove Duplicates. Then use the formula given by Down Under in the column to the right of the unique entries.

    For e.g. if you copy column A to column G and then remove duplicates, you will be left with 5 out of 8 entries given in your 1st post. Then use this formula in column H =COUNTIF(A:A,G1) and drag down.
    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]

  4. #4
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: duplicate entries

    Attached is a sheet I have addapted from one I use myself, but should still work ok for what you need. Follow the instructions on the first page.
    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