Count with multiple criteria and exclude duplicates

nasee95

New Member
Joined
Jan 11, 2022
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
I want to count the data in column D by excluding duplicate value with multiple criteria.
For example, I would like to count data excluding duplicate in column D with criteria of the column B=M2X-1, and column L=crack.
If I manually remove the duplicate, the result of count should be 2.
Since I am working on series of data and this is only small part of it which consume my time to filter out manually.
Hope you guys can help me with this.

Thank you in advance

Wire Summary 2022.xlsx
BDL
27AGNI-102121977/2-001ADented on shank
28AGNI-102122052/3-001ADented on shank
29NEOTACT-ZX2121708/2-001ACrack
30M2X-12121050/1-001ACrack
31M2X-12121049/1-001ACrack
32M2X-12121050/1-001ACrack
33M2X-12121050/1-001ACrack
34M2X-12121049/1-001ACrack
35M2X-12121692/1-001ACrack
Jan 21
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:D63,K:K,C89:D1048576,C86:C88,C65:D85,C64Cell ValueduplicatestextNO
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Shouldn't the answer be 3?
Try:
This is an array formula that must be entered with CTRL-SHIFT-ENTER
Book1
BCDEL
21
22Criteria 1Criteria 2Count Unique
23M2X-1Crack3
24
25
26
27AGNI-102121977/2-001ADented on shank
28AGNI-102122052/3-001ADented on shank
29NEOTACT-ZX2121708/2-001ACrack
30M2X-12121050/1-001ACrack
31M2X-12121049/1-001ACrack
32M2X-12121050/1-001ACrack
33M2X-12121050/1-001ACrack
34M2X-12121049/1-001ACrack
35M2X-12121692/1-001ACrack
Sheet1
Cell Formulas
RangeFormula
D23D23=SUM(IF(FREQUENCY(IF($D$27:$D$35<>"",IF($B$27:$B$35&"/"&$L$27:$L$35=$B$23&"/"&$C$23,MATCH($D$27:$D$35,$D$27:$D$35,0))),ROW($D$27:$D$35)-ROW($D$27)+1),1))
 
Upvote 0
Solution
or, a little simpler using spill formulae
Excel Formula:
=COUNTA(UNIQUE(FILTER(D27:D35,(B27:B35="M2X-1")*(L27:L35="Crack"))))
 
Upvote 0
@Dermot the users profile shows 2010 & therefore does not have Unique or Filter
 
Upvote 0
Shouldn't the answer be 3?
Try:
This is an array formula that must be entered with CTRL-SHIFT-ENTER
Book1
BCDEL
21
22Criteria 1Criteria 2Count Unique
23M2X-1Crack3
24
25
26
27AGNI-102121977/2-001ADented on shank
28AGNI-102122052/3-001ADented on shank
29NEOTACT-ZX2121708/2-001ACrack
30M2X-12121050/1-001ACrack
31M2X-12121049/1-001ACrack
32M2X-12121050/1-001ACrack
33M2X-12121050/1-001ACrack
34M2X-12121049/1-001ACrack
35M2X-12121692/1-001ACrack
Sheet1
Cell Formulas
RangeFormula
D23D23=SUM(IF(FREQUENCY(IF($D$27:$D$35<>"",IF($B$27:$B$35&"/"&$L$27:$L$35=$B$23&"/"&$C$23,MATCH($D$27:$D$35,$D$27:$D$35,0))),ROW($D$27:$D$35)-ROW($D$27)+1),1))
Yes, The answer should be 3. My bad. I tried your solution, and it works. Thank you so much! :)
 
Upvote 0
Thank you for the quick response. I was not aware that array formulae could be used in office 365 without the need for ctrl+shift+enter.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,790
Members
449,468
Latest member
AGreen17

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