Good day,
I am having some problems writing out a formula to calculate the number of unique days a system has been down if there are 2 or more tickets raised against it at the same time. In the below example data the result for System 1 being down would be 22 days as that is the difference between the start date on the first ticket and the end date on the second ticket. However every formula I write calculates each ticket individually and gives me a downtime of 32 days.
My current attempt is
=LET(_min, MINIFS($E$2:E5, $E$2:E5, "<"&F5, $F$2:F5, ">"&MIN($F$2:F5), $D$2:D5, $K$1),
_max, MAXIFS($F$2:F5, $F$2:F5, MAXIFS($F$2:F5, $D$2:D5, $K$1)),
_max - _min)
I have managed to tie myself in knots so any help on this would be appreciated
I am having some problems writing out a formula to calculate the number of unique days a system has been down if there are 2 or more tickets raised against it at the same time. In the below example data the result for System 1 being down would be 22 days as that is the difference between the start date on the first ticket and the end date on the second ticket. However every formula I write calculates each ticket individually and gives me a downtime of 32 days.
Ticket Number | Serial Number | System Type | Ticket Start Date | Resolution Date |
1234 | SN0001 | System 1 | 09/01/2025 | 28/01/2025 |
5678 | SN0001 | System 1 | 18/01/2025 | 31/01/2025 |
My current attempt is
=LET(_min, MINIFS($E$2:E5, $E$2:E5, "<"&F5, $F$2:F5, ">"&MIN($F$2:F5), $D$2:D5, $K$1),
_max, MAXIFS($F$2:F5, $F$2:F5, MAXIFS($F$2:F5, $D$2:D5, $K$1)),
_max - _min)
I have managed to tie myself in knots so any help on this would be appreciated