+ Reply to Thread
Results 1 to 5 of 5

Calculating a Premium Wage for a Specific Time Range

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2010
    Posts
    3

    Calculating a Premium Wage for a Specific Time Range

    I am trying to set up a spread sheet to calculate a premium wage (extra $0.25) for employees who work Midnight to 6am.

    I have to keep it simple on the inputting side of things and would like the format to be:

    Start Time | Finish Time | Regular Hours | Premium Hours

    This can be used to pull the time range data:

    00:00:00 | 06:00:00

    What I need is a function that will sum both regular and premium hours, and separate them in different cell's.

    I have tried a couple IF statements, and just can't get it to work right. Any help would be appreciated.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Calculating a Premium Wage for a Specific Time Range

    For regular hours (in C2):
    =IF(B2<A2,B2+1-A2,B2-A2)-D2

    and for Premium hours in D2:
    =IF(AND(B2>A2,A2>0.25,B2>0.25),0,IF(A2<0.25,IF(B2>0.25,0.25-A2,B2-A2),IF(B2>0.25,0.25,B2)))

    Should work?

  3. #3
    Registered User
    Join Date
    06-22-2011
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating a Premium Wage for a Specific Time Range

    That is Perfect!!!! Thank you

  4. #4
    Registered User
    Join Date
    06-22-2011
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating a Premium Wage for a Specific Time Range

    Sorry, It works perfect until I have 2 AM times, then it returns the formula as 0

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculating a Premium Wage for a Specific Time Range

    Try this formula for premium hours

    =(B2<A2)/4+MIN(1/4,MOD(B2,1))-MIN(1/4,MOD(A2,1))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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