Counting as one when one unique customer purchase item with multiple time in a month

blader1989

New Member
Joined
May 6, 2021
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Currently I'm working with a report that show the metric ECO in FMCG industry (ECO- Effectively Covered Outlet - just count if the total value large than 0) but I'm now stuck in how to count as one when one unique customer purchase multiple time in a month. I'm using the countifs function but it just only counts the item in multiple time as you can see in mini sheet below, my expectation it should count as 1 (formula in E11 row).

Any help would be appreciated. Thank you for reading my post!!!

eco.xlsx
ABCDEFGHIJKL
2Product NameCustomer CodeProvinceYearMonthCATREGION2Total (-VAT)QuarterSub-ChannelSub-BrandMonth-Year
3Product A121090300HCMCT20201OHSouth560000Q1GENERAL CLINICSSDJan-20
4Product A121090300HCMCT20201OHSouth2880000Q1GENERAL CLINICSSDJan-20
5Product A121090300HCMCT20201OHSouth5760000Q1GENERAL CLINICSSDJan-20
6
7
8
9
10MetricProduct NameChannelAreaJan-20
11ECOProduct AGENERAL CLINICSouth3It should be as 1 since this product was purchased by one unique customer in multiple time of Jan 20
raw
Cell Formulas
RangeFormula
E11E11=COUNTIFS(raw!$H$2:$H$5,">0",raw!$A$2:$A$5,B11,raw!$J$2:$J$5,C11,raw!$G$2:$G$5,D11,raw!$L$2:$L$5,E10)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try:

Spark.xlsx
ABCDEFGHIJKL
1
2Product NameCustomer CodeProvinceYearMonthCATREGION2Total (-VAT)QuarterSub-ChannelSub-BrandMonth-Year
3Product A121090300HCMCT20201OHSouth560000Q1GENERAL CLINICSSDJan-20
4Product A121090300HCMCT20201OHSouth2880000Q1GENERAL CLINICSSDJan-20
5Product A121090300HCMCT20201OHSouth5760000Q1GENERAL CLINICSSDJan-20
6
7
8
9
10MetricProduct NameChannelAreaJan-20
11ECOProduct AGENERAL CLINICSouth1It should be as 1 since this product was purchased by one unique customer in multiple time of Jan 20
raw
Cell Formulas
RangeFormula
E11E11=ROWS(UNIQUE(FILTER(raw!B2:B5,(raw!$H$2:$H$5>0)*(raw!$A$2:$A$5=B11)*(raw!$J$2:$J$5=C11)*(raw!$G$2:$G$5=D11)*(raw!$L$2:$L$5=E10))))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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