Count unique customer when buying multiple products

blader1989

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

I tried to find a solution that the formula will count the unique customer who buying multiple product is 1 as following the excel example below, the table below with column ECO is the formula I want to input. It is the ECO metric in FMCG industry. Thank you so much for reading my thread.

Sum of Total no VATYear
2021​
Customer CodeREGION2Sub-ChannelChannelProvinceSub-BrandProduct NameJan
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaAQFKDR Aquafresh Fresh & Minty 100ml222
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaAQFKDR AQUAFRESH TRE EM 6T 50ML - SAP23456
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaAQFKDR Aquafresh Triple Protection 100ml1145
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDBCDR SENS SENSITIVE EXTRA SOFT 1X22356
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR SENSODYNE BAC HA 100G109045
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR SENSODYNE RAPID ACTION 100G
373638​
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR Sensodyne Repair & Proctect 100g
373638​
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR Sensodyne Repair & Protect 100g
121080​
CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR SENSODYNE TRANG SANG 100G
9491854​

Customer
Jan-21​
121080​
ECO? Outcome expect is 1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try

Book1
ABCDEFGHI
1Sum of Total no VATYear
22021
3Customer CodeREGION2Sub-ChannelChannelProvinceSub-BrandProduct NameJan
4121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaAQFKDR Aquafresh Fresh & Minty 100ml222
5121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaAQFKDR AQUAFRESH TRE EM 6T 50ML - SAP23456
6121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaAQFKDR Aquafresh Triple Protection 100ml1145
7121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDBCDR SENS SENSITIVE EXTRA SOFT 1X22356
8121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR SENSODYNE BAC HA 100G109045
9121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR SENSODYNE RAPID ACTION 100G373638
10121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR Sensodyne Repair & Proctect 100g373638
11121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR Sensodyne Repair & Protect 100g
12121080CentralGENERAL CLINICMEDICAL DEVICE SHOPKhanhHoaSSDKDR SENSODYNE TRANG SANG 100G9491854
13
14CustomerJan-21
151210801
16
Sheet1
Cell Formulas
RangeFormula
B15B15=COUNTA(UNIQUE(FILTER($A$4:$A$12,$A$4:$A$12=A15)))
 
Upvote 0
Solution
In future please mark the post that contains the solution, rather than your post saying it works. I have done that for you this time.
Thanks
 
Upvote 0
Thank you so much. It solved my problem now ^^
How so? That formula will always return 1 no matter what you put in A15 or A4:A12. Example

23 08 03.xlsm
AB
3Customer CodeREGION2
4aCentral
5bCentral
6cCentral
7dCentral
8eCentral
9fCentral
10gCentral
11hCentral
12iCentral
13
14CustomerJan-21
15XXXXXXXXXX1
Sample
Cell Formulas
RangeFormula
B15B15=COUNTA(UNIQUE(FILTER($A$4:$A$12,$A$4:$A$12=A15)))


Another

23 08 03.xlsm
AB
3Customer CodeREGION2
4Central
5Central
6Central
7Central
8Central
9Central
10Central
11Central
12Central
13
14CustomerJan-21
151
Sample
Cell Formulas
RangeFormula
B15B15=COUNTA(UNIQUE(FILTER($A$4:$A$12,$A$4:$A$12=A15)))
 
Upvote 0

Forum statistics

Threads
1,215,154
Messages
6,123,327
Members
449,098
Latest member
thnirmitha

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