I have looked if this has been asked, but could not find out exactly.
I' ve been trying to count distinct values. I tried sumproduct,sum(1/countif) etc, so far I got nothing but a div error or 0.
Basically, I' ve two columns: Campaign_no and customer_id. what I need is count unique customers for each campaigns and count unique customers that appears in the campaigns at the same time, sort of matrix.
The table is as follows:
Campaign_no | Cust_id |
---|---|
A | 1 |
A | 2 |
A | 2 |
B | 1 |
B | 4 |
B | 5 |
B | 9 |
C | 4 |
C | 5 |
C | 6 |
C | 7 |