+ Reply to Thread
Results 1 to 6 of 6

Calculate response time between 2 dates and time within business hours

  1. #1
    Registered User
    Join Date
    09-20-2022
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    3

    Calculate response time between 2 dates and time within business hours

    Hi all,
    I'm completely new to this forum and not that great MS Excel. I do the IT management for a company so a lot of different task ends up at my table. This is one of them.
    P.S. My native language is not English but I hope you do understand me.

    TASK:
    To calculate the response time for our service jobs. From when we receive the call until we starts it.
    This needs to be calculated based on our business hours. That also means holidays and weekends needs to be excluded.

    I have attached a spreadsheet example and the columns we are interested in calculating is the "Required start date" and "Required start time" minus "Actual start date" and "Actual start time". The data in the example are put in manually (just for test purpose).

    Our business hours are Monday-Thursday 08.00 to 16.00 and Friday 08.00 to 15.00.
    We also have to be aware of dates changing from one month to another.

    I have had a quick look at some other posts regarding this subject but can't seem to figure out how to edit the formulas so they fit to my needs. Some old posts have users like daddylonglegs who seems quite good at this.

    I really hope someone can help me with the correct formula or lead me in the right direction.
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Calculate response time between 2 dates and time within business hours

    Please try in J5 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-20-2022
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Calculate response time between 2 dates and time within business hours

    You are a genius!!!
    Thank you SO much... It all seems to work perfectly

    Now I will sit down and take your formula, bit-by-it, and understand it...it's quite a long one

    Thanks one more time...you just saved me a lot of headaches.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Calculate response time between 2 dates and time within business hours

    =IF(F5*H5>0,
    8/24*NETWORKDAYS.INTL(F5,H5,"0000111"): Counting workdays Mon, Tue, Wed, Thu * 8/24, because these days have 8 business hours
    +7/24*NETWORKDAYS.INTL(F5,H5,"1111011") Counting workdays Fri * 7/24, because Fri has 7 business hours
    -NETWORKDAYS.INTL(H5,H5,"0000111")*(MAX(0,MIN(8/24,16/24-I5))) Correction if Actual Starttime before 4:00 PM in cases of MON, TUE, WED and THU
    -NETWORKDAYS.INTL(H5,H5,"1111011")*(MAX(0,MIN(7/24,15/24-I5))) Correction if Actual Starttime before 3:00 PM in case of FRI
    -NETWORKDAYS.INTL(F5,F5,"0000111")*(MAX(0,MIN(8/24,G5-8/24))) Correction if Required Starttime after 8:00 AM in cases of MON, TUE, WED and THU
    -NETWORKDAYS.INTL(F5,F5,"1111011")*(MAX(0,MIN(7/24,G5-8/24))) Correction if Required Starttime after 8:00 AM in case of FRI
    ,"")

    You may also consider adding reputation to the answers of all helpers that you think are worth the answer.
    This can be done by clicking on * Add reputation at the bottom left of the answer.

  5. #5
    Registered User
    Join Date
    09-20-2022
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Calculate response time between 2 dates and time within business hours

    Thx again HansDouwe - you are a life saviour. I have now added reputation to your profile. This is just SO GOOD!!!

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Calculate response time between 2 dates and time within business hours

    Thx for the feedback and rep. .

+ 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 response time between set hours
    By royalew/cheese in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2021, 04:14 AM
  2. [SOLVED] Calculate response time in working hours between two dates
    By ajagibson in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-28-2021, 08:45 AM
  3. [SOLVED] Calculating time elapsed between 2 dates excluding PH and non-business hours
    By kersplash in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2018, 11:53 PM
  4. Replies: 1
    Last Post: 09-28-2012, 03:46 AM
  5. Replies: 4
    Last Post: 08-10-2012, 11:41 AM
  6. Calculate response time in working hours between two dates
    By ajagibson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2012, 01:21 PM
  7. How to Calculate Time Passed During Business Hours
    By claimsguy in forum Excel General
    Replies: 2
    Last Post: 04-19-2012, 01:11 PM

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