+ Reply to Thread
Results 1 to 3 of 3

Need a formula to help job cost Please help!

  1. #1
    Bianca
    Guest

    Need a formula to help job cost Please help!

    I have been trying for the past 2 weeks to develop a formula that will
    calculate overtime for workers. I have got as far as this formula
    ={IF(D30<40,0,SUM(IF(D23:D29-8>0,D23:D29-8),0))}
    But the problem with this formula is that it only calculated overtime when a
    worker works more than 8 hours in one day. So for example in the case that
    the employee works
    monday=10 tuesday=8 wednesday=8 thursday=10 friday=8 saturday=8 sunday=8

    then on this formula would only calculate 4 hours of overtime because monday
    and tuesday they worked 2 extra hours. but the formula doesn't take into
    account that 440 hours into the day friday this employee's 5th hour and so on
    were overtime because he exceeded 40 hours.
    So what I need is a formula that WHEN and IF an employee exceeds 40 hours
    then sum all hours over 8 a day. All I need is regular hours and total hours.
    Thanks so much

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    assuming D30 is the total weeks hours
    =IF(D30<=40,0,D30-40 )

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    this could work
    =IF(D23>8,D23-8)+IF(D24>8,D24-8)+IF(D25>8,D26-8)+IF(D26>8,D26-8)+IF(D27>8,D27-8)+IF(D30>40,D28)+IF(D30>40,D29)

+ 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