# counting unique values from list with specific criteria

1. ## 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!

2. ## 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.

3. ## 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!

#### Thread Information

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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