Hi,
A quick one. I have Shopify, and get the following raw data: customer ID, date of purchase and amount (€)
I would like to perform a cohort analysis
[TABLE="width: 369"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]Client ID[/TD]
[TD="align: center"]Date [/TD]
[TD="align: center"]Amount[/TD]
[TD="align: center"]Date of 1st purchase[/TD]
[/TR]
[TR]
[TD="align: center"]68[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 7,979[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 32,836[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]79[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 1,780[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 30,024[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]79[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 3,000[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
</tbody>[/TABLE]
First step, I created another column to get the date of 1st purchase per row using: =MIN(IF($A$2:$A$16288=A2,$B$2:$B$16288))
A being client ID
B being Date of purchase
Second step, I counted the number of unique values (for client IDs) and I used =SUM(--(FREQUENCY(A2:A6,A2:A6)>0))
Third step (where I am stuck), I would like to have a formula translating:
> If date of 1st purchase is Jan-15 and if Date (of purchase) is Jan-15 (variable, could be Feb), then count unique values.
However I struggle to find the formula. The idea is to know the number of customers in Jan-15. Then how many remains in Feb-15 and so on.
Any help would be appreciated, happy to share the excel if that is easier.
Best
A quick one. I have Shopify, and get the following raw data: customer ID, date of purchase and amount (€)
I would like to perform a cohort analysis
[TABLE="width: 369"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]Client ID[/TD]
[TD="align: center"]Date [/TD]
[TD="align: center"]Amount[/TD]
[TD="align: center"]Date of 1st purchase[/TD]
[/TR]
[TR]
[TD="align: center"]68[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 7,979[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 32,836[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]79[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 1,780[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 30,024[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
[TR]
[TD="align: center"]79[/TD]
[TD="align: center"]Jan-15[/TD]
[TD="align: center"] € 3,000[/TD]
[TD="align: center"]Jan-15[/TD]
[/TR]
</tbody>[/TABLE]
First step, I created another column to get the date of 1st purchase per row using: =MIN(IF($A$2:$A$16288=A2,$B$2:$B$16288))
A being client ID
B being Date of purchase
Second step, I counted the number of unique values (for client IDs) and I used =SUM(--(FREQUENCY(A2:A6,A2:A6)>0))
Third step (where I am stuck), I would like to have a formula translating:
> If date of 1st purchase is Jan-15 and if Date (of purchase) is Jan-15 (variable, could be Feb), then count unique values.
However I struggle to find the formula. The idea is to know the number of customers in Jan-15. Then how many remains in Feb-15 and so on.
Any help would be appreciated, happy to share the excel if that is easier.
Best