+ Reply to Thread
Results 1 to 3 of 3

Calculating date and time in business days other than Saturday/Sunday

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Calculating date and time in business days other than Saturday/Sunday

    Hi All,

    I have been using the below formula for a while to calculate the time it takes to close our help desk tickets, in hardcoded business hours (5AM to 6PM) given the normal business days (Saturday and Sunday). It works like a champ - however, now I have a few people working in the Middle East and their weekend is Thursday and Friday -

    How can I tell this formula to count the business days Saturday thru Weednesday? Or any other forumal out there that will do that job?

    =IF(COUNT(H10,I10)=2,24*((NETWORKDAYS(H10,I10)-1)*("18:00"-"5:00")+IF(NETWORKDAYS(I10,I10),MEDIAN(MOD(I10,1),"18:00","5:00"),"18:00")-MEDIAN(NETWORKDAYS(H10,H10)*MOD(H10,1),"18:00","5:00")),0)

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Calculating date and time in business days other than Saturday/Sunday

    Hello russ,

    Since you are on Excel 2010 use NETWORKDAYS.INTL in the [weekend] field use 6.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

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

    Re: Calculating date and time in business days other than Saturday/Sunday

    Haseeb is correct but if you want a formula compatible with earlier excel versions you can also modify your existing formula by adding "+2" to every date in the NETWORKDAYS functions, like this

    =IF(COUNT(H10,I10)=2,24*((NETWORKDAYS(H10+2,I10+2)-1)*("18:00"-"5:00")+IF(NETWORKDAYS(I10+2,I10+2),MEDIAN(MOD(I10,1),"18:00","5:00"),"18:00")-MEDIAN(NETWORKDAYS(H10+2,H10+2)*MOD(H10,1),"18:00","5:00")),0)
    Audere est facere

+ 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