+ Reply to Thread
Results 1 to 12 of 12

Two different rates of payment for duty during certain times

  1. #1
    Registered User
    Join Date
    11-06-2021
    Location
    Limerick
    MS-Off Ver
    2016
    Posts
    38

    Two different rates of payment for duty during certain times

    Cell a1 has the start time, cell b1 has the end time.
    I am trying to create a formula that will calculate two types of payments, one applicable between the hours 6pm and 8pm, and the other applicable between the hours of 8pm and 8am the next day.

    so in cell c1 i could have the number of hours for type 1 allowance, and in d1 the number of hours for type 2 allowance.

    start times can be anytimes, and end times can go beyond midnight.

    i would really appreciate any help, i think there are some other examples already solved, however i couldn't find one that differentiated between the hours

    for example, duty between 7pm and 1am would mean 1 hour type 1 and 5 hours type 2.

    thanking you,

    kind regards,
    Magic

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Two different rates of payment for duty during certain times

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-06-2021
    Location
    Limerick
    MS-Off Ver
    2016
    Posts
    38

    Re: Two different rates of payment for duty during certain times

    file uploaded now
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Two different rates of payment for duty during certain times

    Are you still using Excel 2010?

  5. #5
    Registered User
    Join Date
    11-06-2021
    Location
    Limerick
    MS-Off Ver
    2016
    Posts
    38

    Re: Two different rates of payment for duty during certain times

    yes, i suppose, why?

  6. #6
    Registered User
    Join Date
    11-06-2021
    Location
    Limerick
    MS-Off Ver
    2016
    Posts
    38

    Re: Two different rates of payment for duty during certain times

    it actually says 2016 in the product information, no idea why it would say 2010

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Two different rates of payment for duty during certain times

    Because your profile needs updating if you have upgraded from Excel 2010 to something newer. I mentioned this in my first post.

    Thanks for the workbook.
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    11-06-2021
    Location
    Limerick
    MS-Off Ver
    2016
    Posts
    38

    Re: Two different rates of payment for duty during certain times

    i've uploaded a sample, it should be up already, about 3 posts higher up. i will update the info in the profile, never realised that. apologies

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Two different rates of payment for duty during certain times

    Yes, I am looking at the workbook - thanks.

  10. #10
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Two different rates of payment for duty during certain times

    Formula in C2 then copied down:
    Please Login or Register  to view this content.
    Apply the same formula to D2 by replace range {"6:00 PM","8:00 PM"} with {"8:00 PM","8:00 AM"}
    Good luck

  11. #11
    Registered User
    Join Date
    11-06-2021
    Location
    Limerick
    MS-Off Ver
    2016
    Posts
    38

    Re: Two different rates of payment for duty during certain times

    @soledad

    thank you so much, it worked for me. I did two changes to the formula though, one being replacing the PM/AM with the 24 hour format (6:00 PM replaced with 18:00:00) and in the end of the formula, i replaced 6:0 pm with the 24 hour format too, as the part hour was not coming up properly.

    thank you again,

    kind regards,

    magic

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Two different rates of payment for duty during certain times

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Replies: 8
    Last Post: 02-28-2022, 04:16 PM
  2. Formulas to Add shift penalty rates to specific times & days
    By sman1 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-26-2020, 11:24 PM
  3. [SOLVED] Formulas for Different Rates Times Miles
    By crazyforexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2020, 11:38 AM
  4. One Fixed Loan Payment for X Periods Where Loans Have Different Interest Rates
    By COlonewolf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2019, 12:47 AM
  5. FAA Part 135 Pilot duty times
    By mbatp in forum Excel General
    Replies: 0
    Last Post: 03-25-2015, 07:32 PM
  6. Diffrent rates of pay dependent on times of the day and days of the week
    By seftonbarn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-23-2014, 01:45 PM
  7. Replies: 0
    Last Post: 09-24-2012, 07:23 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