+ Reply to Thread
Results 1 to 6 of 6

Trying to count the number of occurrences of duplicate values

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    Ottawa Canada
    MS-Off Ver
    2010
    Posts
    2

    Trying to count the number of occurrences of duplicate values

    Hi All. New to the forum. I have a list 4000 names, addresses, etc. I'm trying to remove all of the duplicate records. There are over 1500.
    I can sort them by email address. Then I want to eliminate all duplicates, after the first occurrence of the row.

    A B
    [email protected] 1
    [email protected] 2
    [email protected] 3
    [email protected] 4
    [email protected] 1
    [email protected] 2
    [email protected] 3
    [email protected] 1
    [email protected] 2
    etc.

    I have MS excel 2010

    Can someone help me with the formula? Or offer a better solution

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Trying to count the number of occurrences of duplicate values

    Hi,

    Welcome to the Forum.

    Pivot Table would be better solution for this.

  3. #3
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Trying to count the number of occurrences of duplicate values

    if you want formula then try

    =COUNTIFS($A$1:A1,A1) and drag it down
    Click just below left if it helps, Boo?ath?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Trying to count the number of occurrences of duplicate values

    there is a delete duplicates option on the data tab
    http://office.microsoft.com/en-gb/ex...010342518.aspx
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    08-11-2014
    Location
    Ottawa Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Trying to count the number of occurrences of duplicate values

    This formula is really close. It does give me some strange results. I'll give you and example

    Email Dupe Count Result Desire
    [email protected] 1 1
    [email protected] 1 2
    [email protected] 2 3
    [email protected] 3 1
    [email protected] 1 2
    [email protected] 2 1
    [email protected] 1 2
    [email protected] 2 1
    [email protected] 1 2
    [email protected] 2 1
    [email protected] 1 2
    [email protected] 2 3
    [email protected] 3 4
    [email protected] 4 1
    [email protected] 1 2
    [email protected] 2 1
    [email protected] 1 1


    Any thoughts on how to fix this?

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Trying to count the number of occurrences of duplicate values

    Hi,

    Please see the attached file, I have summarized this with the help of a pivot table.
    Attached Files Attached Files

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Trying to count the number of occurrences of duplicate values

    Or, if you want to use formula to find out the duplicates and delete the whole rows by filtering them, see the attached file.
    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)

Similar Threads

  1. [SOLVED] Count number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  2. Replies: 1
    Last Post: 03-28-2013, 01:48 PM
  3. Count number of occurrences in a day
    By quinnbri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2013, 05:49 PM
  4. [SOLVED] Count number of occurrences for a number of ranges from a find loop
    By ANDREWA in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-23-2012, 07:53 PM
  5. [SOLVED] Count number of occurrences
    By MarkM in forum Excel General
    Replies: 1
    Last Post: 07-27-2006, 05:15 PM

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