Open incidents by month end

Dwayne20

New Member
Joined
May 30, 2022
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hi.



I have some incident data that has incident number, date opened and date closed.



Case #1 was Opened January 1st and Closed on

May 23rd

Case #2 was Opened January 1st and Closed on June 15th

Case #3 was Opened on February 10th and is still open



If I were to report on how many cases were "open" at the end of the month from January to July, it would look like this

January - 2 Cases in Backlog (#1 and #2)

February - 3 Cases in Backlog (#1, #2 and #3)

March and April - 3 Cases in Backlog (#1, #2 and #3)

May - 2 Cases in Backlog (#2 and #3, because #1 closed before the end of May)

June and July - 1 Case in Backlog (#3 because #2 closed before the end of June)



For where the incident is not closed I want to be able to count from when the incident was open to that months reporting period. So in March for case 3 I would calculate I would calculate from the 10th of Feb to 31st March.



For each month I would need to work out the average number of days incidents remains open. So looking where a closed date does not exist or where the closed date was after the reporting month. Not really sure how to tackle this without splitting the data out by month which I want to avoid.

So I would need to work out the age of each incident that in scope by either subtracting the closed date by open date or the month end date by the open date, add them up and then divide by number of incidents in scope

Any ideas?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Book1
ABCDEFGHIJKLMNOPQR
1CaseOpenClosedStatus on: 31/05/2022 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
211/01/202223/05/2022Cases In210000000000
321/01/202215/06/2022Cases Out000011000000
4310/02/2022Backlog23332       
Sheet1
Cell Formulas
RangeFormula
F1F1=TODAY()
G2:R2G2=SUMPRODUCT((MONTH(Cases[[Open]:[Open]])=MONTH(G$1))*(YEAR(Cases[[Open]:[Open]])=YEAR(G$1)))
G3:R3G3=SUMPRODUCT((MONTH(Cases[[Closed]:[Closed]])=MONTH(G$1))*(YEAR(Cases[[Closed]:[Closed]])=YEAR(G$1)))
G4:R4G4=IF(G$1>$F$1,"",SUM($G2:G2)-SUM($G3:G3))
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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