• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count incidents in a rolling period

Kellis

Member
Hi Everyone,

Much help required I am looking for the best formula options to count incidents within a 24 hour period.

I have a list of job times, in a very busy period if incidents reach a certain level it triggers an action. I need a way of working out when the trigger was reached. I have done this with a Match formula but have tried others. I am looking for advise as to the best/most accurate formula.

Please see attached spreadsheet.
 

Attachments

  • Chandoo times.xlsx
    10.8 KB · Views: 12
C1: =COUNTIFS($A$1:$A$48,">="&B1-1,$A$1:$A$48,"<="&B1)

Needs to be copied down

I am unsure about the first >= maybe it should be a simple >

Can you please be more specific and tell us what it should be returning and why?
Please explain the logic ?
 
Thanks for your help Hui, I think I have found a solution to what I require. I did not know what I had to do to get my needed result.
I have a list of incidents and I needed to find a way of recognising when a certain number of incidents has occurred within a 24hr period.
I have a column of the incident dates and a cell with 24:00hrs and the following formula
=COUNTIFS($B$2:$B$800,"<"&B2+$F$1,$B$2:$B$800,">"&B2-$F$1)
 
Back
Top