+ Reply to Thread
Results 1 to 7 of 7

Overtime calculation for adding a half day if after midnight

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    London UK
    MS-Off Ver
    2010
    Posts
    4

    Overtime calculation for adding a half day if after midnight

    Hi,

    Im new here and this is my first post!

    I am making an overtime spreadsheet for my office. So far I have made a form that calculates the total hours worked and then divides that into days of 8 and a half hours. But I need a bit more than that - I need the following to be calculated:

    During the week, you get half a days overtime if you work more than a 12 hour day increasing to a days overtime if you work after midnight

    If you work at a weekend, you get a days pay no matter how many hours you do before midnight and an extra half day if you work after midnight (this is for weekends only so excel would have to know that the day was a weekend by referring to some sort of calendar or selecting that the day was a weekend by using a drop down list).

    A day is 8 and a half hours by the way....

    I don't care about calculating wages, I just need this to be calculated as a total of days based on the above criteria.

    I have attached the sheet in its present state and I would like to add the above functionality to it if possible.
    I am only a real novice at this and have managed to get it this far only by copying and pasting formulas (and trail and error) from this fantastic site!

    I know this is a big ask and it must be really hard to sort this I guess any help would be much appreciated!

    Thanks in advance!

    Dan.
    Attached Files Attached Files
    Last edited by Dan LCI; 09-12-2014 at 08:02 AM.

  2. #2
    Registered User
    Join Date
    11-13-2006
    Posts
    87

    Re: Overtime calculation for adding a half day if after midnight

    Helper Columns. They can be inside your table or outside it. They can, (should be,) hidden.
    1. WeekDayColumn: Uses WeekDay Function on Date Column
    2. OT Rate: Uses WeekDay Column and Start and End Columns To determine rate
    3. DaysWorked: Uses OTRate column and start and end to determine decimal days worked for that date

    In your original Total Days cell, just Sum the hidden DaysWorked Column
    Last edited by SamT; 09-12-2014 at 02:18 PM.

  3. #3
    Registered User
    Join Date
    09-12-2014
    Location
    London UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Overtime calculation for adding a half day if after midnight

    I need a bit fore clarification on the details for doing this-can you go into a bit more depth or give an example?

  4. #4
    Registered User
    Join Date
    11-13-2006
    Posts
    87

    Re: Overtime calculation for adding a half day if after midnight

    If you work at a weekend, you get a days pay no matter how many hours you do before midnight and an extra half day if you work after midnight (this is for weekends only so excel would have to know that the day was a weekend by referring to some sort of calendar or selecting that the day was a weekend by using a drop down list).
    I had to stop calculating hours there.

    What if you work 13 hours saturday, but don't work after midnight?

    What if you start at 11PM saturday and quit at 1AM sunday?

    See attachment for Weekday helper column. Hide Green columns after design is done.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-12-2014
    Location
    London UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Overtime calculation for adding a half day if after midnight

    You're right to question this strange setup but it works for our line of work.
    If you work 13 hours on a Saturday but not after midnight it still just counts as one day
    If you start at 11PM Saturday and quit at 1AM Sunday it wouldn't matter if the sheet calculated it to be a day and a half because that would be very unusual and I would just recalculate it manually.
    I hope that helps. I know it looks strange but on a saturday staff would always start around 9 or 10am on nearly all jobs
    Last edited by Dan LCI; 09-16-2014 at 05:35 AM.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Overtime calculation for adding a half day if after midnight

    In the file Put Some dates and different timings, so that it covers all your conditions.which column is to be used to calculate the day.

  7. #7
    Registered User
    Join Date
    09-12-2014
    Location
    London UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Overtime calculation for adding a half day if after midnight

    I dont know how the day would be calculated could we insert an extra column containing a dropdown with days of the week? (this could go next to the date column)
    Am I any where near what you actually asked?!!!
    I have entered some typical times in the attached sheet - some at a weekend some on a weekday
    Attached Files Attached Files
    Last edited by Dan LCI; 09-16-2014 at 08:07 AM.

+ 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] Overtime and payment at half hour intervals with a lower payment for the first half hour
    By brettamine in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2014, 07:51 AM
  2. [SOLVED] Time calculation not working past midnight
    By Sophie.Durrant in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2014, 08:18 PM
  3. Timesheet calculation for overtime and double overtime
    By eortega in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2013, 03:28 PM
  4. Excel 2007 : Time Calculation-alculation from midnight.
    By AlanWade in forum Excel General
    Replies: 6
    Last Post: 01-07-2010, 04:55 PM
  5. Timesheets with cost ie overtime, time & half
    By euwest30 in forum Excel General
    Replies: 3
    Last Post: 10-23-2006, 04:16 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