+ Reply to Thread
Results 1 to 3 of 3

Overtime hours before 8am and after 5pm

  1. #1
    Registered User
    Join Date
    11-07-2016
    Location
    texas
    MS-Off Ver
    2013
    Posts
    1

    Overtime hours before 8am and after 5pm

    Would someone be kind enough to show me how to correctly write this formula to show hours worked before 8am + hours worked after 5pm

    =IF(D6>=0.333333333,0,if(D6-.333333333*24(E6<=0.708333,0, if(E6-0.708333*24))))

    D6 is start time and E6 is finish time. Cell m6 hold this formula. My first formula (E6<=0.708333,0, if(E6-0.708333*24 was working fine calculating hours worked after 5pm, then i realized it was not calculating hours before 8am as overtime.

  2. #2
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Overtime hours before 8am and after 5pm

    Quote Originally Posted by mikelm View Post
    would someone be kind enough to show me how to correctly write this formula to show hours worked before 8am + hours worked after 5pm

    =if(d6>=0.333333333,0,if(d6-.333333333*24(e6<=0.708333,0, if(e6-0.708333*24))))

    d6 is start time and e6 is finish time. Cell m6 hold this formula. My first formula (e6<=0.708333,0, if(e6-0.708333*24 was working fine calculating hours worked after 5pm, then i realized it was not calculating hours before 8am as overtime.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-27-2021
    Location
    PA
    MS-Off Ver
    365
    Posts
    2

    Re: Overtime hours before 8am and after 5pm

    m6=if(e6-if(d6<1/3,1/3,d6)>9/24,e6-if(d6<1/3,1/3,d6)-9/24,0)

    works for above 5pm, but not below 8am. What's the complete code?

+ 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] Calculating Overtime Hours for each Day on a 40+ Overtime per Week Basis
    By HumdrumPanic in forum Excel General
    Replies: 5
    Last Post: 09-30-2020, 12:55 PM
  2. Replies: 5
    Last Post: 06-30-2016, 08:37 AM
  3. Replies: 3
    Last Post: 04-23-2016, 01:42 AM
  4. Replies: 2
    Last Post: 01-17-2014, 02:22 PM
  5. Timesheet formula for calculating ordinary hours and overtime hours.
    By zoen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2011, 04:23 AM
  6. Replies: 8
    Last Post: 03-19-2009, 11:01 PM

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