+ Reply to Thread
Results 1 to 8 of 8

Calculating OT in Excel

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Calculating OT in Excel

    I need a little help with calculating OT in Excel. I have the formula correct to calculate OT for hours worked over 40 hours in a week, but I am at a loss as to how to calculate OT for the week when the employee takes a sick day, vacation day or there is a holiday in that week (columns L,M,N) as those hours do not count towards OT and the OT would start after the employee hits the 48 hour mark. Columns J and K do not factor into any of the calculations, it is just a info field.

    I have attached the file I am working with. Any help would be greatly appreciated!

    Time Card.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Calculating OT in Excel

    One way, I10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Calculating OT in Excel

    Thank you for the formula. It does not exactly calculate how I need it to. I need the formula to calculate OT hours for anything over 40 hours in a week, but over 48 hours in a week if an employee takes 8 hours for a vacation day, sick day or if it is a holiday during that week.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Calculating OT in Excel

    Another way:

    Please try in I10 and copy to I17:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Calculating OT in Excel

    I tried that formula, but that will not calculate any ot. The formula I have in I10 is currently =MAX(H10-40,0) which will calculate the OT on a regular week where no vacation, sick or holiday time is used and it calculates correctly. The issue I am having is when an employee takes 8 hours of vacation, sick or holiday time, I also need the formula then to calculate the OT hours when they go over 48 hours for that week.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Calculating OT in Excel

    Sry, the formula is for I17 (and copy to I10):

    See attachment.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Calculating OT in Excel

    Ok, now that makes sense. Is there a way for the value in cell I9 to be zero when a value is entered in cells L,M,N 5-9? I don't want the employee to think they are going to get 6 hours of OT when in fact they would get 0 for that week! Thanks again for your help!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Calculating OT in Excel

    Try the following in cell I5 then copy down to cell I9:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Calculating (4Threads) - my Excel Sheet is not calculating correctly
    By cupoftee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-23-2021, 06:55 AM
  2. Replies: 10
    Last Post: 08-20-2013, 01:02 PM
  3. Excel 2007 : Excel formula for calculating TAT minus weekends
    By TheManinSac in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-24-2013, 06:56 PM
  4. Replies: 6
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 11:05 PM
  6. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 10:05 PM
  7. Replies: 0
    Last Post: 03-15-2005, 10:06 AM

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