+ Reply to Thread
Results 1 to 3 of 3

formula to calculate varying hourly rate during one shift

  1. #1
    Registered User
    Join Date
    09-05-2008
    Location
    england
    Posts
    13

    formula to calculate varying hourly rate during one shift

    Hi,

    Basically I am working on a timesheet where the person has basic contracted hrs of work.{17:30-20:45) Now if he works outside of those hrs he receives overtime {M20}. If he starts work after 17:30 he will still get paid from 17:30.

    I have put together a formula but I don't know if it is correct, in fact I think it's wrong {although it still works} it is not giving me exactly what I want.
    I would like a formula lets use cell P20, that calculates hrs worked before 20:00hrs bearing in mind that if the start time is after 17:30 they will still be paid from 17:30, but must also include start times before 17:30. {I created a "hidden" column {G} with 20:00 in the cell as I could not figure out any other way to do it. But then 20:00 is automatically in cell P20 until hrs worked are inserted then the figure changes, where I would prefer it to be blank to begin with. Is there a simple way of doing it?

    I would also like the figure to be in a number format instead of hh.mm, so 2.5 instead of 2:30. In my formula I have had to multiply 2:30 by 24 to get to the correct total amount.


    I have attached a sample of the sheet I am working on...

    I have had no training in formulae so I am trying to use logic and work them out myself.. to my own detriment I reckon. But at least I am trying.

    Thanks
    Princessd
    Attached Files Attached Files
    Last edited by princessd; 09-11-2008 at 10:36 AM. Reason: amendment

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Perhaps try this formula in P20

    =IF(COUNT(C20:D20)=2,(G20-MIN(C20,I20))*24,"")

    If you don't want to use G20 then change formula to

    =IF(COUNT(C20:D20)=2,("20:00"-MIN(C20,I20))*24,"")

    copy formula up and format cells as number

  3. #3
    Registered User
    Join Date
    09-05-2008
    Location
    england
    Posts
    13
    Thank you that works well.. I opting for the formula that omits column G. but in doing that P20 now shows #VALUE although I have amended the formula in column P why does it show #VALUE?

    Regards
    Princessd
    Attached Files Attached Files
    Last edited by princessd; 09-11-2008 at 12:29 PM. Reason: attachment added

+ 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. Formula to calculate Increase/Decrease
    By howard101 in forum Excel General
    Replies: 7
    Last Post: 08-01-2012, 03:56 AM
  2. F9 calculate formula not working
    By drecollet in forum Excel General
    Replies: 1
    Last Post: 10-04-2007, 09:37 AM
  3. formula that can calculate 3 weeks from a date given
    By Zyphon in forum Excel General
    Replies: 2
    Last Post: 04-26-2007, 02:30 AM
  4. Formula with Times Problem
    By windme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2006, 05:29 PM
  5. formula for start times
    By Crasher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-08-2006, 10:45 PM

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