+ Reply to Thread
Results 1 to 3 of 3

Work Hours Between two dates including weekends

  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    55

    Work Hours Between two dates including weekends

    Hello-

    I have a question on how to calculate the # of business hours between to time date fields, we staff on weekends so I don't want to eliminate them. I was using NetWorkDays until we added the weekend hours and am not sure of a work around.
    Cell A1 = 2/20/2010 2:30:00 PM
    Cell B1 = 2/21/2010 2:45:00 PM
    Cell C1 = 9:15:00 [HH:MM:SS]

    Weekend business hours are 7:30AM to 4:30PM

    Any suggestions would be appreciated.



    Thanks
    ClikClak

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Work Hours Between two dates including weekends

    Assuming the hours are the same for all 7 days perhaps:

    C1: =($E$2-$E$1)*INT(B1-A1)+(MEDIAN(MOD(B1,1),$E$1:$E$2)-MEDIAN(MOD(A1,1),$E$1:$E$2))
    format as [hh]:mm

    where E2 is end shift (16:30) and E1 is start shift (07:30)

  3. #3
    Registered User
    Join Date
    02-26-2010
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Work Hours Between two dates including weekends

    That worked, thanks

+ 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