+ Reply to Thread
Results 1 to 2 of 2

Shift Premium for Specific Hours: Return Eligible Hours (Involves Midnight Crossover)

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    1

    Question Shift Premium for Specific Hours: Return Eligible Hours (Involves Midnight Crossover)

    I'm trying to create a formula that will calculate hours for a shift premium applied only to certain hours worked. The formula needs to work across midnight.

    Premium applies only to hours worked between 23:00 and 07:00.

    Inputs:
    1. start time (A2) [hh:mm]
    2. end time (B2) [hh:mm]

    Return:
    (D2) Number of hours applicable for premium [up to 2 decimal places]

    One of our standard shifts is 12 hours from 19:00 to 07:00 and would earn the premium of 8 hours. But if someone clocked out early at 02:15, they should only get 3.25 hours of premium.
    Last edited by kuma133; 06-03-2014 at 04:49 PM. Reason: correction

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Shift Premium for Specific Hours: Return Eligible Hours (Involves Midnight Crossover)

    Please attach a copy of your workbook so we don't need to re-create your data. Remember to remove/replace any sensitive data before uploading.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

+ 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 Shift Premium Hours
    By sxhall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2013, 09:24 AM
  2. identify differential hours in a shift that goes over midnight
    By CanYouDoThis? in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2012, 03:20 PM
  3. Replies: 4
    Last Post: 09-21-2012, 12:58 AM
  4. Calculating basic hours worked, between a time range and premium hours worked
    By RoyLittle0 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-07-2012, 06:59 AM
  5. Replies: 0
    Last Post: 01-05-2012, 06:23 AM

Tags for this Thread

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