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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
=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,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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