+ Reply to Thread
Results 1 to 10 of 10

Rate reduction after 5 hours

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Rate reduction after 5 hours

    I have a simple time sheet that has column E for start time, Column F for time finished, coulmn G for time doing more than one job, column H for total time and I for cost.
    The rates are £10/hour start to finish + £15/hour for time doing two jobs.

    H10 =F10+(E10>F10)-E10 total time
    I 10 =H10*240+(G10*120) cost at different rates

    This works well for this simple form, my problem is how to drop the both rates to half after 5 hours.

    Thanks for your time looking at this
    Last edited by chrisflow; 10-13-2011 at 09:14 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Rate reduction after 5 hours

    For the whole 5 hours, or only the time that exceeds 5 hours?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-11-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Rate reduction after 5 hours

    Sorry for the time that exceeds 5 hours

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Rate reduction after 5 hours

    I'm not quite sure how things work with the two different times you have, and what the rule is for what "over 5 hours" means. That is, is it over 5 hours if both figures added together are over 5 hours? Or are they independent?

    This formula treats the two figures independently. If total time is over 5 hours, then time over 5 hours is costed at half the rate. If time doing more than one job is over 5 hours, then time over 5 hours is costed at half that rate.

    Please Login or Register  to view this content.
    This could be streamlined by putting 5/24 (which is 5 hours) into a cell and referring to that cell. You could also put the two rates in two cells, then refer to those rates divided by 2. Those changes would make modifications easier and more reliable if you later have to change the time threshold or the rates.

  5. #5
    Registered User
    Join Date
    10-11-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Rate reduction after 5 hours

    The total time is including travel the second is for the job time, but both rates drop by 50% for any time over 5 hours. If it helps I could use two cells for the rates.
    I have tried your code but it instantly shows a value of 75 and I'm confused about the reference to G2 and H2.
    Thanks for your help.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Rate reduction after 5 hours

    Sorry, my references don't match yours. I set up a sample spreadsheet so I could visualize what you were talking about and my data was in row 2. Further, I had a reference to H5 which was an error and should have been H2.

    So my formula for total cost in I10 that would replace yours would be
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-11-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Rate reduction after 5 hours

    Hi StringJazzer thanks again for your help, but now the new code gives me an instant value of 25.
    I've attached the sheet to help out.
    Attached Files Attached Files

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

    Re: Rate reduction after 5 hours

    Perhaps try this version

    =(H10*5+G10*2.5)*24+MIN(H10*24,5)*5+MIN(G10*24,5)*2.5
    Audere est facere

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Rate reduction after 5 hours

    My formula did not take into account that there would be blank cells. I have a simple correction for that (add "+0" to force conversion from blank to zero) but daddylonglegs's formula is more elegant so I would go with that.Just for closure:
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    10-11-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Rate reduction after 5 hours

    Thank you both for your help. Both codes work as needed. Sorry 6StringJazzer for my poor explanation, I should have attached the sheet at the start.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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