+ Reply to Thread
Results 1 to 3 of 3

counting unique values from list with specific criteria

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    5

    counting unique values from list with specific criteria

    Hello. I'm trying to write a formula that will count the number of unique values in column B IF value in C equals a specific value in column A. I have a formula to count the unique values in column B =SUMPRODUCT((B3:B13<>"")/COUNTIF(B3:B13,B3:B13&"")) but am having a hard time attaching a =sum(if( prior to the sumproduct formula. I have attached a spreedsheet with my data set to help. What i want to write is "if (A3:A13) = C1, then count unique values in (B3:B13)"

    Thanks!
    Attached Files Attached Files
    Last edited by derekjames; 12-16-2011 at 06:31 PM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    Kuwait
    MS-Off Ver
    Office 365
    Posts
    2,200

    Re: counting unique values from list with specific criteria

    Use this ARRAY FORMULA, must hit CTRL+SHIFT+ENTER, rather than just ENTER.

    =SUM(SIGN(FREQUENCY(IF(A$3:A$25=C3,IF(B$3:B$25<>"",MATCH(B$3:B$25,B$3:B$25,0))),ROW(B$3:B$25)-ROW(B$3)+1)))

    Adjust the ranges.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: counting unique values from list with specific criteria

    Thanks so much! I'm not even gonna try to understand the formula. Just glad it works!

+ 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