+ Reply to Thread
Results 1 to 7 of 7

Counting duplicates only

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Counting duplicates only

    Hello Friends

    I need to count the duplicates only in light yellow cells.

    In this sheet only 4 duplicates are there 0010-35GA5, 0010-DG73Z, 0242-D37ZZ, 0242-0B5BZ.

    So in light yellow cell the formula should show as 4.

    thanks in advance.
    Attached Files Attached Files
    Sekar

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Counting duplicates only

    Helper in B

    =IF(AND(COUNTIF($A$2:$A$17,$A2)>1,COUNTIF($A$2:$A2,A2)=1),1,0)

    in D2

    =SUM(B2:B17)

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Counting duplicates only

    try the following array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note: Array Formula must be entered/confirmed using [Ctrl] + [Shift] + [Enter]

  4. #4
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Counting duplicates only

    Hello jewelsharma and Johntopley

    Both of your formulas working well. Thanks for your formulas.

    jewelsharma : My data will be changing everytime and everytime i need to change the $A$17 can we make the formula as $A$2:$A$17 to $A$2:$A$1000. Even if blank cells under A17 then the formula is working then it will be very fine.

    Thanks again.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Counting duplicates only

    In such a case, best to define a dynamic named range so the name itself remains the same, but extends to cover the added data; and then used the named range in the formula. Check this link.

    Trust you'll mark this thread as SOLVED.
    Cheers!

  6. #6
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Counting duplicates only

    Hello jewelsharma

    My data will be changing everytime and everytime i need to change the $A$17 can we make the formula as $A$2:$A$17 to $A$2:$A$1000. Even if blank cells under A17 then the formula (needs to work) if working then it will be very fine.

    Thanks again.
    Last edited by Sekars; 07-19-2016 at 05:58 AM.

  7. #7
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Counting duplicates only

    Hello jewelsharma

    I used the formula

    =SUM(IF(FREQUENCY(MATCH($A$2:$A$1000&0,$A$2:$A$1000&0,0),MATCH($A$2:$A$1000&0,$A$2:$A$1000&0,0))>1,1))-1

    and got solved.

    thank you

+ 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] Need help with counting duplicates in another row
    By AkbarPasha in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-09-2015, 07:43 PM
  2. [SOLVED] Counting Duplicates
    By khemistry1911 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2015, 02:38 PM
  3. [SOLVED] Counting Matching values in two separate ranges without counting duplicates
    By Rhall6310 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2014, 03:35 PM
  4. Counting Duplicates
    By drsiaca in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-29-2013, 11:15 PM
  5. [SOLVED] Counting Duplicates
    By dbaldwin1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-20-2013, 05:56 PM
  6. Counting duplicates
    By madd in forum Excel General
    Replies: 7
    Last Post: 04-17-2009, 11:38 AM
  7. counting cells with data without counting duplicates
    By labettis in forum Excel General
    Replies: 2
    Last Post: 11-05-2007, 12:10 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