Counting Unique Customer Purchases For Each Purchase Month

DEW67

New Member
Joined
Apr 20, 2018
Messages
7
Hi Everyone,

I need a little help with my excel file. I have a list of customer purchases broken down by purchase date and customer. If a customer purchased more than one product at a time, the excel file will show each item purchased under that customer name. What I want to be able to do is for each month, calculate how many times each customer made a purchase. If you take a look at the image, you can see certain customers will show as 2-3 lines for a given purchase date. I only want to count this as a single transaction and not 2-3.

Thanks in advance.
 

Attachments

  • Customer Purchases.PNG
    Customer Purchases.PNG
    71.3 KB · Views: 43

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
see, if this okay or not?

how-to-extract-a-unique-list-from-two-columns-in-excel-2007.xlsx
ABCDEFG
1CUSTOMERDATECOUNTCUSTOMERMONTHCOUNT
2AA9/26/20202AAJun-201
3AA9/16/20202AAJul-202
4AA9/16/20202AAAug-202
5BB9/16/20202AASep-202
6CC9/16/20201BBJun-201
7AA8/23/20202BBAug-201
8AA8/22/20202BBSep-202
9BB8/21/20201CCNov-193
10CC8/23/20202CCAug-202
11AA8/23/20202CCSep-201
12AA7/28/20202
13AA7/21/20202
14BB6/28/20201
15CC11/22/20193
16AA6/28/20201
17AA9/26/20202
18AA9/16/20202
19AA9/16/20202
20BB9/17/20202
21CC9/16/20201
22AA8/23/20202
23AA8/22/20202
24BB8/21/20201
25CC8/23/20202
26AA8/23/20202
27AA7/28/20202
28AA7/21/20202
29BB6/28/20201
30CC11/22/20193
31AA6/28/20201
32AA9/26/20202
33AA9/16/20202
34AA9/16/20202
35BB9/16/20202
36CC9/16/20201
37AA8/23/20202
38AA8/22/20202
39BB8/21/20201
40CC8/29/20202
41AA8/23/20202
42AA7/28/20202
43AA7/21/20202
44BB6/28/20201
45CC11/22/20193
46AA6/28/20201
47CC11/21/20193
48CC11/22/20193
49CC11/23/20193
50CC11/22/20193
Sheet2
Cell Formulas
RangeFormula
C2:C50,G2:G11G2=ROUNDUP(SUMPRODUCT(($A$2:$A$50=E2)*(MONTH($B$2:$B$50)=MONTH(F2))*(YEAR($B$2:$B$50)=YEAR(F2))*(1/COUNTIF($B$2:$B$50,$B$2:$B$50))),0)
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

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