Counting Unique Values

apc1968

New Member
Joined
Nov 4, 2012
Messages
14
Hi - I have the following set of data:

ABCD
1ProductMonthCustomerValue
2
3Charts1AAA£20
4Publications1BBB£25
5Flags1AAA£33
6Charts1AAA£10
7Flags2BBB£15
8Charts2AAA£16

<!--StartFragment--> <colgroup><col width="65" span="5" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

I want to be able to look at how many unique customers bought charts in month 1? In the above table it would be 1 - thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
=SUM(IF("Charts"=$A$3:$A$8, 1/(COUNTIFS($A$3:$A$8, "Charts", $C$3:$C$8, $C$3:$C$8)), 0))

Confirm with Control Shift Enter
 
Upvote 0
I would have added a column F and put in the formula the following formula in each row -
=IF(SUMPRODUCT((B3="Charts")*(C3=1))=1,D3,0)
This will 0's or the name of the Customer depending on the criteria met or not

to calculate final unique count use the following formula -
=SUM(IF(FREQUENCY(F3:F8,F3:F8)>0,1))
This will give you the answer '1' for the data posted
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top