Closed Thread
Results 1 to 15 of 15

Calculating Net Working Hours.

  1. #1
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134

    Calculating Net Working Hours.

    Hi,
    I am working in call center, and i get tickets and i have to meet my Services Level Agreement (SLA) with in pre defined working hours.
    My working hours are 8:00 AM to 17:00 PM, Monday to Friday. (this includes 1 hour of Lunch time which is not considered as business hour)
    As per the SLA, i have to complete the ticket in 40 business hours, i.e 5 business days.
    Suppose a ticket is created on 3/5/2008 10:00 AM. i want to know how much time is left for me to work on that particular ticket.

    Can anyone help me in this ? PLEASE.
    Please mail back to [email protected]

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Will the ticket always be created within the business hours? If so then with ticket start time/date in A2 try this formula to get the time that it must be completed

    =WORKDAY(A2,5)+MOD(A2,1)

    format to show date and time

    Note: unless you're using Excel 2007 then WORKDAY is part of Analysis ToolPak add-in, you may have to enable this

  3. #3
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134
    No, ticket can be cteated at any time.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    They are not pretty formulas, but you can find the one that I think will work for you at the top of this page:

    http://www.cpearson.com/excel/DateTimeWS.htm
    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.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    I don't think Chip's formula will work when the ticket can be created at any time.

    Can you clarify what you actually want to calculate, do you want to calculate the time and date that you must finish the job or do you want to calculate how many working hours have passed since the ticket was created (and thereby calculate how many hours you have left)?

    The latter is easier to do.

    What time is lunch?

  6. #6
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134
    i want to calculate how many working hours are passed and how many working hours are left to complete the ticket.
    Suppose a ticket was created on 3/12/2008 10:00 AM and current time is 3/13/2008 10:00 AM so it should show "Age of Ticket = 8 hours" and "Time Remaining = 32 hours"

    Lunch time is 14:00PM to 15:00PM
    Last edited by amitmodi_mrt; 03-13-2008 at 04:58 PM.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    OK, this formula is a little complex....

    Assuming the ticket start time/date is in A2 and in C2 you have the current time [ use =NOW()] then use this formula in D2 for time passed

    Please Login or Register  to view this content.
    K2 should contain the weekday start time, i.e. 08:00 and K3 should contain the end time, i.e. 17:00

    Then for time remaining use this formula

    =IF(MID(D2,17,5)+0>="40:00"+0,"Late","Time Remaining = "&TEXT("40:00"-MID(D2,17,5),"[h]:mm"))

    Note: NETWORKDAYS is part of Analysis ToolPak add-in

  8. #8
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134
    What do you have in K$1 and K$2..?
    The formulla is working but not giving exact result.. i put the start time as 3/13/2008 10:00 in A2 and =now() in C2 (My current time is 3/14/2008 3:33 AM, I am in India) it is showing "Age of ticket = 4:46"
    however it should show "Age of ticket =7:00" as working hours ends at 17:00 PM.
    =============================================================

    I AM SORRY... IT WAS MY MISTAKE...
    IT WORKED.. I DIDNT NOTICED WHAT YOU WRITTEN FOR K2 AND K3...
    THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU VERY MUCH......

    Can i have your email id so that i can contact you if i need any help in future....?
    Last edited by amitmodi_mrt; 03-13-2008 at 06:12 PM.

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    I prefer to keep any communication within the forum. If you have any further queries on this subject then just post another reply to this thread....or you can PM me if I don't respond

  10. #10
    Registered User
    Join Date
    04-23-2013
    Location
    Manila
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating Net Working Hours.

    i'm glad i found this forum as i have a similar problem..
    what if working times don't end at 5pm?.. that is a ticket can still be worked on after 5pm.. how do you compute then the time passed? thanks in advance

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Calculating Net Working Hours.

    Welcome to the Forum.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  12. #12
    Registered User
    Join Date
    04-23-2013
    Location
    Manila
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating Net Working Hours.

    my apologies.. will start a new one... thanks

  13. #13
    Registered User
    Join Date
    07-02-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2007
    Posts
    1

    Re: Calculating Net Working Hours.

    This is the first formula I've used that's worked for my business purposes. Thank you!! I believe I've tried at least 20 others in the past week. I needed something that took weekends, holidays, and business hours into consideration but didn't "break" when an activity was started after business hours.

    I made a few modifications because we have an 11 hour workday and folks covering lunches.

    =IF($G2>0,TEXT((NETWORKDAYS($C2,$G2,$V$2:$V$8)-1)*11/24+IF(NETWORKDAYS($G2,$G2,$V$2:$V$8),MEDIAN(MOD($G2,1)-MEDIAN(0,1/24,MOD($G2,1)),$AA$1-1/24,$Y$1),$AA$1-1/24)-MEDIAN(NETWORKDAYS($C2,$C2,$V$2:$V$8)*(MOD($C2,1)-MEDIAN(0,1/24,MOD($C2,1))),$AA$1-1/24,$Y$1),"[h]:mm"),"N/A")

    G2 is the activity end date/time.
    C2 is the activity start date/time.
    V2:V8 are holidays.
    Y1 is the start of the business day.
    AA1 is the end of the business day.

  14. #14
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134

    Re: Calculating Net Working Hours.

    Hi Klohman,

    In the above formula, how can i include the lunch hours as well. Means I just want to remove the weekends (saturday and sunday) and non business hours.

    Regards,
    Amit.

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Calculating Net Working Hours.

    Amit

    Pls take a look to post#11!
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed 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