Create a formula for countifs that does not count duplicates

sflem13

New Member
Joined
Sep 27, 2023
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am looking to create a formula that is essentially a countifs with 3 different criteria. Is there something I can add to my formula so that it will not count if "product #" is a duplicate?
The current formula I have in the attached picture returns "4". I am looking for something that will help me eliminate the duplicates from the count and so the returned number in this example would be "2"
 

Attachments

  • Capture.JPG
    Capture.JPG
    107.9 KB · Views: 15

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
try this, i've included a solution for 365 and older versions
--------------
Book1
BCDEFGHIJKL
1store typestore numberproduct #categorysales qty365Older
2B&M112tops5topsECOM22
3B&M28tops6
4B&M36pants0
5B&M419pants4
6B&M512tops9
7B&M63pants3
8B&M713dresses5
9B&M85pants1
10B&M96pants6
11ECOM18tops4
12ECOM212tops7
13ECOM39dresses8
14ECOM414dresses6
15ECOM52dresses0
16ECOM68tops5
17ECOM716pants7
18ECOM87pants6
19ECOM912tops1
Sheet1
Cell Formulas
RangeFormula
K2K2=SUM(--(LEN(UNIQUE(FILTER(D:D,(E:E=I2)*(B:B=J2)*(F:F>0),"")))>0))
L2L2=SUM(--(FREQUENCY(IF(D1:D19<>"",IF((E1:E19=I2)*(B1:B19=J2)*(F1:F19>0),MATCH(D1:D19,D1:D19,0))),ROW(D1:D19)-ROW(D2)+1)>0))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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