+ Reply to Thread
Results 1 to 7 of 7

Construct a formula to track time spent in business hours only

  1. #1
    Registered User
    Join Date
    04-01-2011
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Construct a formula to track time spent in business hours only

    I am in need of some assistance. I need to form a calculation for my employer. The Help Desk is opened from 7:30am to 6:30pm. I am in charge of excel reports for email support to ensure we are meeting all SLAs. If an email comes in at 8:00am and we have not responded to this user until the next day at 9:15am, we need to track the actual time it took to respond. How can we construct a formula to take into consideration the 11 hour work day from 7:30am to 6:30pm.

    This is what i have so far. Again, it does not take into consideration our business hours and actual time it took to respond.

    Please help.

    Last edited by delisshh; 04-07-2011 at 01:58 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need him with a formulate!!!!!!!!!

    Welcome to the forum

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-01-2011
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need him with a formulate!!!!!!!!!

    Can anyone help me?

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

    Re: Construct a formula to track time spent in business hours only

    This formula will calculate business hours assuming that the start and end times are always within the business hours

    =(NETWORKDAYS(A2,B2)-1)*("7:30"-"18:30")+MOD(B2,1)-MOD(A2,1)

    where A2 has start time/date and B2 end time/date

    format result cell as [h]:mm

    If the email might come in outside of work hours then change to this version

    =(NETWORKDAYS(A2,B2)-1)*("7:30"-"18:30")+MOD(B2,1)-MEDIAN(NETWORKDAYS(A2,A2)*MOD(A2,1),"7:30","18:30")
    Audere est facere

  5. #5
    Registered User
    Join Date
    04-01-2011
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Construct a formula to track time spent in business hours only

    Thank you Daddylonglegs. I am trying to implement this into my spreadsheet and it is not working correctly. A calculation that is only 3 hours is coming out over 12 hours.

  6. #6
    Registered User
    Join Date
    04-01-2011
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need him with a formulate!!!!!!!!!

    I am sorry. I do not know how to 'PM' you.

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

    Re: Construct a formula to track time spent in business hours only

    Can you give me the details for a calculation that doesn't give what you want - what dates/times do you have, what result do you expect?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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