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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

anglais428

Well-known Member
Joined
Nov 23, 2009
Messages
634
Office Version
  1. 2016
Platform
  1. Windows
=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

ankita.sethi

Board Regular
Joined
Apr 27, 2011
Messages
58
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,191,187
Messages
5,985,191
Members
439,947
Latest member
fabiannic

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
Top