+ Reply to Thread
Results 1 to 5 of 5

EXCEL Count Dublicate Text - How?

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 2007
    Posts
    9

    EXCEL Count Dublicate Text - How?

    Hi guys,
    I would like to ask how can I count dublicate text and shows me into another cell - the name and number of duplicates:



    PIC:

    http://www.flickr.com/photos/77956853@N07/6836328564/
    Last edited by RZ100; 03-14-2012 at 01:19 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: EXCEL Count Dublicate Text - How?

    What I would do is create a macro to do this.
    1. The first thing is to copy the original list to a temporary location.
    2. Next, I would remove the duplicates from the copied list.
    3. Then I would scan the non-duplicate list and the duplicate list and get the occurance counts and place these counts next to the non-duplicate list(like in your example).

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    Cyberspace
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: EXCEL Count Dublicate Text - How?

    If you want to avoid macros, it gets a little tricky to output results in the format you desire.

    Attached is a spreadsheet that gets your desired functionality, but can only display the duplicate results ("Number of duplicates" and "DuplicatesNAME") next to the actual Market # that has duplicates. If you only want to display these results starting from the top, you either need to use a macro or you need to put a formula in each cell such that the formula checks every cell in a given column (ex. If this row's value isn't a duplicate, look at the next row in the column and see if that has a duplicate, and if that doesn't have a duplicate, go to the next row, and so on.)

    Let me know if you need help understanding the logic in this spreadsheet.

    The "Dup?" value returns TRUE if the next row's market # is equal to the current row's market # (i.e. at least one duplicate has been found).

    The "Count" value actually finds the number of occurrences of the current market #, but ignores any instances where the previous "Dup?" is TRUE since that means the current market # is equal to the previous market # and we only need to count duplicates for a given market # once.

    Just hide those 2 middle columns when displaying the results.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-14-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: EXCEL Count Dublicate Text - How?

    Hello Guys ,
    Thanks a Lot !
    You are the best !

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: EXCEL Count Dublicate Text - How?

    You can do that without helping columns as:

    =IF(COUNTIF(B$3:B3,B3)>1,B3,"")

    or if you get error:

    =IF(COUNTIF(B$3:B3;B3)>1;B3;"")

+ 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