+ Reply to Thread
Results 1 to 6 of 6

Calculate downtime per week/month/year

  1. #1
    Registered User
    Join Date
    10-05-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365 for Entreprise
    Posts
    6

    Calculate downtime per week/month/year

    Hello everyone,

    I need some help with an Excel sheet we use at work.
    We maintain trains in operation, and are penalised whenever we have to stop one for repairs; this downtime is used to measure the "availability" of trains per week (monday to sunday), per month and per year.


    Right now the Excel sheet we use only takes into account the date whenever the downtime started, and assigns all the downtime to its corresponding week/month/year.

    This means that if a repair takes several weeks of downtime (500 hours across 3 weeks for example), all that time is only "counted" for the week in which the repair started, and as such will put 500 hours of downtime in week1, and nothing in week2 and week3.

    I've been trying to find a formula to properly allocate the downtimes to their correct week/month/year to no avail.

    I hope I explained myself clearly enough.
    I have attached an Excel file of what I'm looking for.

    Thank you very much for your time.

    All best,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: Calculate downtime per week/month/year

    How long is a working day: your calculations suggest 19 hours based on a 7 day week (133 total) . And daily start/end working times ?

    For Example 1, Week 35 is 31:20 (hh:mm) but using WEEKNUM, 02/09/2023 is the last day of this week so as the start of downtime is 11:40 on 02/09/2023, how do you get 31:20 for this week?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    10-05-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365 for Entreprise
    Posts
    6

    Re: Calculate downtime per week/month/year

    There is no real start/end work times, since it's subways, they work 24/7.

    As for the second question, I am using ISOWEEKNUM and not WEEKNUM, which makes 03/09/2023 the last day of the week.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: Calculate downtime per week/month/year

    If work is 24/7 then week hours should be 168 not 133 ?

    And being somewhat down level with Excel, I dont have ISOWEEKNUM so over to others!

    However, your 31:20 is stll a "mystery" as how it is calculated: it implies 24 + 7:20 which which Excel shows in the formula bar.

  5. #5
    Registered User
    Join Date
    10-05-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365 for Entreprise
    Posts
    6

    Re: Calculate downtime per week/month/year

    Quote Originally Posted by JohnTopley View Post
    If work is 24/7 then week hours should be 168 not 133 ?

    And being somewhat down level with Excel, I dont have ISOWEEKNUM so over to others!

    However, your 31:20 is stll a "mystery" as how it is calculated: it implies 24 + 7:20 which which Excel shows in the formula bar.
    My apologies, I should have specified that the "Downtime HOURS Total" is calculated exluding the time between midnight and 5am; it is actually on this very forum that I got help for that formula.

    This is the reason why the times are different.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: Calculate downtime per week/month/year

    Now the 31:20 makes sense: on 02/09/2023 from 11:40 until midnight=12:20 + 19:00 for 03/09/2023 =31:20 !

+ 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. [SOLVED] Calculate Date from Month, Year and Week #
    By Mr.Trouble in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-08-2021, 07:43 PM
  2. [SOLVED] Calculate a YTD Total based on Reporting Month and Week of Month via drop down selections
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2018, 05:14 PM
  3. Days of the month and week based on name month/year
    By RickMcc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-01-2016, 03:22 PM
  4. [SOLVED] Calculate Week Range from Week Number, Month and Year?
    By A108A108 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-07-2016, 03:11 PM
  5. VBA to calculate AVERAGEIF and SUMIF for current week/month/year
    By lostest in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2016, 07:35 AM
  6. Calculate Start & End Date & Month for Each Week In Fiscal Year
    By sarndt01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2014, 02:14 PM
  7. Return value of the last week of the month based on the year and month
    By stevekho2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2013, 11:04 AM

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