Calculating mumber of incidents per month

MarkoBrit

New Member
Joined
Mar 6, 2019
Messages
12
Hi , In Column B I have dates of incidents . How do I calculate how many incidents were in each month?
I tried this =COUNTIF((B2:B1000),"<31/01/2019") Which obviously calculates a range but is there a formula I can use that would just calculate each months incidents?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try this with start date in C1 and end date in D1:

=COUNTIFS(B2:B1000,">="&C1,B2:B1000,"<"&D1+1)
 
Upvote 0
Try this with start date in C1 and end date in D1:

=COUNTIFS(B2:B1000,">="&C1,B2:B1000,"<"&D1+1)

That won't work for this sheet as below

[TABLE="width: 1065"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Farnborough[/TD]
[TD]03/01/2019[/TD]
[TD]Slip. Trip from Height[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Aberdeen[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]Incl HO[/TD]
[TD="align: right"]49[/TD]
[/TR]
[TR]
[TD]Leeds[/TD]
[TD]06/01/2019[/TD]
[TD]Contact with Sharp Object[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Arnotts[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nottingham[/TD]
[TD]07/01/2019[/TD]
[TD]Hit by Something Stationary[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Belfast[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]Minor[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]Nottingham[/TD]
[TD]07/01/2019[/TD]
[TD]Hit by Something Stationary[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Birmingham[/TD]
[TD="align: right"]3[/TD]
[TD][/TD]
[TD]Significant[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Gateshead[/TD]
[TD]09/01/2019[/TD]
[TD]Slip, fall same level[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Blanchardstown[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]Major[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Factory Shop[/TD]
[TD]10/01/2019[/TD]
[TD]Ill Health[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Bristol[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]RIDDOR[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Thurrock[/TD]
[TD]17/01/2019[/TD]
[TD]Contact with Sharp Object[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Cardiff[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Birmingham[/TD]
[TD]22/01/2019[/TD]
[TD]Slip. Trip from Height[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Croydon[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]JAN[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Bristol[/TD]
[TD]25/01/2019[/TD]
[TD]Slip, fall same level[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Dundrum[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]FEB[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Thurrock[/TD]
[TD]25/01/2019[/TD]
[TD]Hit by something Moving/Falling[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Edinburgh[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Stockton[/TD]
[TD]26/01/2019[/TD]
[TD]Hit by Something Stationary[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Fareham[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD]APR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Preston[/TD]
[TD]27/01/2019[/TD]
[TD]Other[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Farnborough[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]MAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Liverpool[/TD]
[TD]03/02/2019[/TD]
[TD]Slip. Trip from Height[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Gateshead[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]JUN[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Leamington Spa[/TD]
[TD]03/02/2019[/TD]
[TD]Manual Handling[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Glasgow[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]JUL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Stratford[/TD]
[TD]04/02/2019[/TD]
[TD]Assault-Physical[/TD]
[TD]Employee[/TD]
[TD]Major[/TD]
[TD][/TD]
[TD]Hull[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[TD]AUG[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fareham[/TD]
[TD]04/02/2019[/TD]
[TD]Trapped between Something[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Leamington Spa[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD]SEPT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thurrock[/TD]
[TD]06/02/2019[/TD]
[TD]Manual Handling[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Leeds[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD]OCT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Lincoln[/TD]
[TD]19/02/2019[/TD]
[TD]Hit by Something Stationary[/TD]
[TD]Visitor[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Lincoln[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]NOV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Southampton[/TD]
[TD]19/02/2019[/TD]
[TD]Other[/TD]
[TD]Employee[/TD]
[TD]Minor[/TD]
[TD][/TD]
[TD]Liverpool[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD]DEC[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Well you dont have to use C1 and D1. You can use a different cell. You could hardcode it into the formula. You could even use a pivot table instead.
 
Upvote 0
Ok well if you think that works for you then it works for you. Looking at what you have its the wrong approach.
 
Upvote 0
If you will only have one years worth of data


Excel 2013/2016
ABCDEFGHIJK
1
2Farnborough03/01/2019Slip. Trip from HeightEmployeeMinorAberdeen0Incl HO49
3Leeds06/01/2019Contact with Sharp ObjectEmployeeMinorArnotts0
4Nottingham07/01/2019Hit by Something StationaryVisitorMinorBelfast0Minor45
5Nottingham07/01/2019Hit by Something StationaryVisitorMinorBirmingham3Significant3
6Gateshead09/01/2019Slip, fall same levelEmployeeMinorBlanchardstown0Major1
7Factory Shop10/01/2019Ill HealthEmployeeMinorBristol1RIDDOR0
8Thurrock17/01/2019Contact with Sharp ObjectEmployeeMinorCardiff1
9Birmingham22/01/2019Slip. Trip from HeightVisitorMinorCroydon0JAN12
10Bristol25/01/2019Slip, fall same levelEmployeeMinorDundrum0FEB7
11Thurrock25/01/2019Hit by something Moving/FallingVisitorMinorEdinburgh0MAR0
12Stockton26/01/2019Hit by Something StationaryVisitorMinorFareham2APR0
13Preston27/01/2019OtherVisitorMinorFarnborough1MAY0
14Liverpool03/02/2019Slip. Trip from HeightVisitorMinorGateshead1JUN0
15Leamington Spa03/02/2019Manual HandlingEmployeeMinorGlasgow0JUL0
16Stratford04/02/2019Assault-PhysicalEmployeeMajorHull0AUG0
17Fareham04/02/2019Trapped between SomethingEmployeeMinorLeamington Spa2SEPT0
18Thurrock06/02/2019Manual HandlingEmployeeMinorLeeds2OCT0
19Lincoln19/02/2019Hit by Something StationaryVisitorMinorLincoln1NOV0
20Southampton19/02/2019OtherEmployeeMinorLiverpool2DEC0
Sheet1
Cell Formulas
RangeFormula
K9=SUMPRODUCT(--(MONTH($B$2:$B$20)=ROWS($A$1:A1)))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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