Hi,
I've been searching google and this forum for several days, but haven't found a solution to count unique customers that purchased something in both years (ie. a retention formula), so I was wondering if someone here had a solution. So my data is a table of purchase records that very simply looks like this -
A B C D Customer ID Year Purchased 56474 2015 114931 2015 39934 2015 63819 2015 114931 2016 39934 2016 47010 2016
So what I need is, if I put the criteria '2015' in cell D1, and '2016' in cell D2, then in D4 a calculation will count how many unique customers bought something in both 2015 & 2016 (which will be '2' ie. only customer IDs 114931 & 39934 both bought something in 2015 & 2016.)
My data has almost 200,000 rows with around 10,000 different customers, so if someone had a UDF, I'd be ecstatic since that will run faster, but an array formula will suffice.
Thanks in advance for your consideration.
Bookmarks