Mix of info in a column that needs to be specific in a given month, but matches the final criteria for a total.

StephG

New Member
Joined
Oct 24, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi all, sorry if this has come up before, I don't know what to look for so I will try for some help.
in my spreadsheet, i have tried a few things but stumped on the how to get it to work. I have added the formulas I have tried, and the answer I am looking for.
I am hoping this is something you can help me with.
Column D is the month and will update as it gets added to.
Column C is the department if you like, that i need to count, that has raised however many Behavioural Or Operational.
I cant work out how to get the formulas to do what I need them to do.
P3 is a total of the month
P4 & P5 are the formulas I found and tried but dont work.
Any help here is much appreciated. :)




Book1
ABCDEFGHIJKLMNOPQ
1TimestampWho is reportingDepartment where incident has occurred.DateTime of incident approx.Brief description of incidentHave you witnessed incident?Has the departmental manager/supervisor been informed?What action did you take?What are you reporting?What are you reporting?Type
2Logistics - Yard, off site21/10/2024Behavioural ObservationOct
3Logistics - Yard, off site22/10/2024Behavioural Observation9
4Warehouse - Ambient, Freezers17/10/2024Behavioural ObservationBSO09/01/1900Should=6
5Production - Ground floor22/10/2024Operational ObservationOPS0should =1
6Warehouse - Ambient, Freezers23/10/2024Operational ObservationBSO
7Offices24/10/2024Behavioural ObservationOPS
8Production - Ground floor24/10/2024Behavioural Observation
9Production - Ground floor09/10/2024Behavioural Observation
10Production - Ground floor09/10/2024Behavioural Observation
Sheet1
Cell Formulas
RangeFormula
P3P3=COUNTIFS(D$2:$D10,">=01/10/2024",D$2:$D10,"<=31/10/2024")
P4P4=SUM(COUNTIFS($D$2:$D$10,">=01/10/2024",$D$2:$D$10,"<=31/10/2024")+COUNTIFS($C$2:$C$10,"*ware*",$C$2:$C$10,"*log*",$M$2:$M$10,"*behav*"))
P5P5=SUM(COUNTIFS($C$2:$C$10,">=01/10/2024",$C$2:$C$10,"<=31/10/2024",$D$2:$D$10,"*ware*",$D$2:$D$10,"*log*",$M$2:$M$10,"*oper*"))
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi & welcome to MrExcel.
For BSO try
Excel Formula:
=SUM(COUNTIFS($D$2:$D$10,">=01/10/2024",$D$2:$D$10,"<=31/10/2024",$C$2:$C$10,{"*ware*","*log*"},$M$2:$M$10,"*behav*"))
but there are only 3 rows that match the criteria, not 6
 
Upvote 0
Solution
Hi & welcome to MrExcel.
For BSO try
Excel Formula:
=SUM(COUNTIFS($D$2:$D$10,">=01/10/2024",$D$2:$D$10,"<=31/10/2024",$C$2:$C$10,{"*ware*","*log*"},$M$2:$M$10,"*behav*"))
but there are only 3 rows that match the criteria, not 6
Thank you so much for your help!!! You have made my day! You are right, i was getting bogged down in the colours! This is great thank you x
 
Upvote 0
Book1
DEFGHIJKLMNOPQ
1DateTime of incident approx.Brief description of incidentHave you witnessed incident?Has the departmental manager/supervisor been informed?What action did you take?What are you reporting?What are you reporting?Type
210/21/2024Behavioural ObservationOct9
310/22/2024Behavioural Observation
410/17/2024Behavioural ObservationBehavioural Observation7
510/22/2024Operational ObservationOperational Observation2
610/23/2024Operational Observation 
710/24/2024Behavioural Observation 
810/25/2024Behavioural Observation 
910/9/2024Behavioural Observation 
1010/9/2024Behavioural Observation 
Sheet1
Cell Formulas
RangeFormula
Q2Q2=SUMPRODUCT((MONTH(D2:D10)=MONTH(P2&0))*(ISNUMBER(MATCH($M$2:$M$10,O4:O5,0))))
P4:P10P4=IF(O4<>"",SUMPRODUCT((MONTH($D$2:$D$10)=MONTH($P$2&0))*($M$2:$M$10=O4)),"")
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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