count all duplicate values depending on criteria

shockmox

New Member
Joined
Mar 18, 2018
Messages
2
Hello there

I'm a Excel newbie so i would really appreciate your help

I have a data sheet with the following data

Date User Type 1 2 3 4 5 6 7

14-01-2018 Brandon Batch No No No No No No No
14-03-2018 Danny Batch No No No No No No No
14-01-2018 Derek Incident Yes No No No No Yes Yes
14-02-2018 Danny Batch No No Yes Yes No No No
14-03-2018 Franco OMi No No No No No No No
14-01-2018 Brandon Batch No No No No Yes Yes No
14-03-2018 Derek OMi No No Yes No No No No

I've tried multiple formulas using =SUMPRODUCT & =COUNTIFS but am unable to get the right results

I would like to get a count of all the No values by month per user and per type
Basically if date = January & User = Danny & Type = Batch - How Many "No" exist in all columns and rows that match that criteria.

Thank you in advance.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Welcome to the forum.

Your sample data contains no entries for Danny that meet the criteria so I used Brandon.

ABCDEFGHIJ
BrandonBatchNoNoNoNoNoNoNo
DannyBatchNoNoNoNoNoNoNo
DerekIncidentYesNoNoNoNoYesYes
DannyBatchNoNoYesYesNoNoNo
FrancoOMiNoNoNoNoNoNoNo
BrandonBatchNoNoNoNoYesYesNo
DerekOMiNoNoYesNoNoNoNo
Month
User
Type
Condition
Count

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FFF2CC"]Date[/TD]
[TD="bgcolor: #FFF2CC"]User[/TD]
[TD="bgcolor: #FFF2CC"]Type[/TD]
[TD="bgcolor: #FFF2CC, align: right"]1[/TD]
[TD="bgcolor: #FFF2CC, align: right"]2[/TD]
[TD="bgcolor: #FFF2CC, align: right"]3[/TD]
[TD="bgcolor: #FFF2CC, align: right"]4[/TD]
[TD="bgcolor: #FFF2CC, align: right"]5[/TD]
[TD="bgcolor: #FFF2CC, align: right"]6[/TD]
[TD="bgcolor: #FFF2CC, align: right"]7[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]1/14/18[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]3/14/18[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]1/14/18[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]2/14/18[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]3/14/18[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]1/14/18[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]3/14/18[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]

[TD="bgcolor: #F8CBAD, align: right"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]

[TD="bgcolor: #F8CBAD"]Brandon[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]

[TD="bgcolor: #F8CBAD"]Batch[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]

[TD="bgcolor: #F8CBAD"]No[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]15[/TD]

[TD="bgcolor: #E2EFDA, align: right"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet41

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]B15[/TH]
[TD="align: left"]=SUMPRODUCT((MONTH(A2:A8)=B11)*(B2:B8=B12)*(C2:C8=B13)*(D2:J8=B14))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,993
Messages
6,175,842
Members
452,675
Latest member
duongtruc1610

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