COUNT DUPLICATES IN MULTIPLE CRITERIA

msalas0308

New Member
Joined
Sep 30, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello. I am trying to find the correct formula to count duplicate entries with multiple criteria's. See example below.

I need a formula to count all Orders in a spreadsheet that has certain words in that column as well is certain words in another column.

I need to find out how many Orders I have in Column "D" (counting duplicate Orders as 1), that have a Plant Section of MPC, SRU, CK1, and CK2 in Column "B" with a Priority of 2 in Column "C". My answer would be 4 if I had the correct formula.


2020 Sched Compliance Metrics.xlsx
BCD
1Plant SectionPriorityOrder
4SRU260981719
5SRU260981719
6SRU260981719
7CK2261594103
8CK2261594103
9CK2261594103
11MPC261627849
12EBKF61826948
13EBKF61826948
14WBK261855688
15CK1161911814
16MPC261911823
17MPC261911823
18MPC261911823
19MPC261911823
21WWTF61924403
22WWTF61924403
23CK2161983723
24WBK261990374
25EBK162017883
27WBK262031194
28EBK262040503
WK 33
 
Thanks for that. Strange message though as you would think that then the FILTER function should return #NAME? & therefore simply be ignored by by the COUNT function. I had tried putting an obviously incorrect function name in place of FILTER and my formula simply returned 0.

In any case, if FILTER is not available then neither will UNIQUE, so perhaps this might do the job?

msalas0308.xlsm
BCDEF
1Plant SectionPriorityOrder
2
3Count
4SRU2609817194
5SRU260981719
6SRU260981719
7CK2261594103
8CK2261594103
9CK2261594103
10
11MPC261627849
12EBKF61826948
13EBKF61826948
14WBK261855688
15CK1161911814
16MPC261911823
17MPC261911823
18MPC261911823
19MPC261911823
20
21WWTF61924403
22WWTF61924403
23CK2161983723
24WBK261990374
25EBK162017883
26
27WBK262031194
28EBK262040503
Sheet1
Cell Formulas
RangeFormula
F4F4=SUM(N(FREQUENCY(IF(ISNUMBER(MATCH(B4:B28,{"MPC","SRU","CK1","CK2"},0)),IF(C4:C28=2,D4:D28)),D4:D28)>0))

It came back as #VALUE!
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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