+ Reply to Thread
Results 1 to 4 of 4

Calculating Downtime During Hours of Operation

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    21

    Calculating Downtime During Hours of Operation

    Hi All,

    I’m looking for assistance to help calculate incident down time relative to the hours of business operation. Incident downtime is only calculated during the business hours with the incident suspending outside of the contracted business hours. Using the forum threads I was able to identify a formula to calculate downtime during a standard business day Monday to Friday (8.5hrs x 5 days) with the result populated in cell H2 of the attached spreadsheet (let me know if I have missed the mark ).

    The complexity comes with non-standard business hours, such as a shopping mall which is open 7 days a week with different operating hours per day. Using row 3 as the example, manually calculating the downtime gives 1890 minutes or 31.5hrs of downtime. Is there a formula to support this calculation within cell H3?

    Some of the post I have read use a reference table broken in to the seven days of the week with corresponding hours of operation, a formula then calculates the downtime relative to the each day of the week, the daily components of downtime are then summed to give total downtime in the week.

    Unfortunately I’m looking at 1000’s of lines of incidents, grouped by hours of operation, and hope there is a formula I can paste into H3 and then drag down etc.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculating Downtime During Hours of Operation

    Hello Puni,

    Having a table might be easier - you can still have a table and use a single formula

    This formula for H3 effectively uses table values within the formula, i.e.

    =(SUMPRODUCT(NETWORKDAYS.INTL(E3,F3,SUBSTITUTE("1111111",1,0,{1,2,3,4,5,6,7})),{7.5,7.5,7.5,9,7.5,7.5,4})-MEDIAN(0,CHOOSE(WEEKDAY(E3,2),7.5,7.5,7.5,9,7.5,7.5,4),MOD(E3,1)*24-CHOOSE(WEEKDAY(E3,2),9,9,9,9,9,9,10))-MEDIAN(0,CHOOSE(WEEKDAY(F3,2),7.5,7.5,7.5,9,7.5,7.5,4),CHOOSE(WEEKDAY(F3,2),16.5,16.5,16.5,18,16.5,16.5,14)-MOD(F3,1)*24))*60

    That gives me a result of 2430 minutes (40.5 hours) because you have 1 hour on Sunday, 7.5. on Monday, Tuesday, Wednesday and Friday, 9 on Thursday and ½ an hour on Saturday = 40.5

    That will work for any start or end time, even outside the working hours
    Last edited by daddylonglegs; 04-22-2015 at 06:03 PM.
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-19-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Calculating Downtime During Hours of Operation

    Fantastic! Thank you so much, a great help

  4. #4
    Registered User
    Join Date
    05-01-2018
    Location
    US
    MS-Off Ver
    2012
    Posts
    1

    Re: Calculating Downtime During Hours of Operation

    hello, im new and trying to understand this part of your formula.
    what does this do?

    CHOOSE(WEEKDAY(E3,2),9,9,9,9,9,9,10)

    im assuming its hours in a given work week but in your given formula, is it supposed to be the hours not worked?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Downtime Tracking between Multiple Days Only Counting Working Hours
    By TandCsMom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 05:24 PM
  2. Calculating Downtime taking into acount 3 possible shifts of production.
    By Clintp1111 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2013, 12:16 AM
  3. Need help calculating Downtime
    By Ben.Cgg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 05:02 PM
  4. Need help in calculating downtime
    By Nitinkumar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2013, 09:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1