+ Reply to Thread
Results 1 to 10 of 10

Formula(s) for choosing & calculating milage rates

  1. #1
    Registered User
    Join Date
    08-09-2021
    Location
    Dublin
    MS-Off Ver
    365
    Posts
    5

    Formula(s) for choosing & calculating milage rates

    Hi There,
    I'm trying to create an annual mileage expense document. We have three applicable milage rates depending on the amount of mileage covered over the calendar year. 0-1500 / 1501-5500 / 5501 - 25000
    Ideally, the overall mileage figure would accumulate over the monthly sheets and only the rate applicable to the mileage in the month would be used. So after 1500 kms the, every additional km to 5500 would be charged at the second rate.
    Potentially two rates might be used in one month as the crossover threshold is met.
    So, I'm looking to see if there is a formula or formulae to help achieve this.

    Im not sure if this is overly complex or if theres a simpler way of achieving same.
    Ive attached the document for reference.
    Thanks

    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,250

    Re: Formula(s) for choosing & calculating milage rates

    can you please add a few manual results to you file (distance and engine size)

  3. #3
    Registered User
    Join Date
    08-09-2021
    Location
    Dublin
    MS-Off Ver
    365
    Posts
    5

    Re: Formula(s) for choosing & calculating milage rates

    Hi John,
    Thanks for the response.
    Ive added in a few more distance to the document. The engine size will be the same for all vehicles even though theres three options on the document.
    amended file attached.

    Paul
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,250

    Re: Formula(s) for choosing & calculating milage rates

    TRY

    in C46

    =MIN(C43,1500)*F52+MAX(0,C43-1500)*F53+MAX(0,C43-5500)*F54
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-09-2021
    Location
    Dublin
    MS-Off Ver
    365
    Posts
    5

    Re: Formula(s) for choosing & calculating milage rates

    Hi John,
    Thanks for that, appreciate your time on this.
    Id need the formula to take into account that once a threshold has been met, cumulatively, that rate would no longer be used.
    So once a driver has passed the 1500km mark (in a calendar year... not just monthly), every km after that is charged at the second rate and likewise for the 5500 threshold and third rate.
    This is why I've added the annual cumulative cell on the sheet, to maybe reference it in some way.
    I may not have explained it 100% initially and again, not sure if I'm overly complicating it. We've been changing the rates manually up to now, just trying to streamline it a little.

    Let me know what you think or if it's possible.
    Thanks

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,250

    Re: Formula(s) for choosing & calculating milage rates

    That is what the formula does. Did you actual try it with higher mileages which is why I requested them in a previous post

    Or do you mean

    CM = Cumulative mileage

    =IF (CM <= limit1,rate1,if(cm<=limit2,Rate2,Rate3)

    e,g

    =if(E43<=1500,F52,if(E43<=5500,F53,F54)
    Last edited by JohnTopley; 08-09-2021 at 05:27 PM.

  7. #7
    Registered User
    Join Date
    08-09-2021
    Location
    Dublin
    MS-Off Ver
    365
    Posts
    5

    Re: Formula(s) for choosing & calculating milage rates

    Hi,
    Yes have tried it with more mileage cells filled in. The formula works perfectly Month 1.
    The problem i'm having is let's say I do exactly 1500kms in January, then every km in February should be charged at the second rate only and not use the first rate as we've already crossed that annual threshold.
    If I use the same formula in Feb's sheet then then it starts from 0kms again and charges from the first rate up to 1500.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,250

    Re: Formula(s) for choosing & calculating milage rates

    do you mean

    CM = Cumulative mileage

    =IF (CM <= limit1,rate1,if(cm<=limit2,Rate2,Rate3)

    e,g

    =if(E43<=1500,F52,if(E43<=5500,F53,F54)

    E43 = ANNUAL CUMULALATIVE

    In my view you would be better having an annual summary sheet with the 12 months on this.

    Off for the day (night) now!

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,250

    Re: Formula(s) for choosing & calculating milage rates

    See attached


    Uses same formula to calculate Year-to-Date and Cumulative- to -previous month to determine current month

    as per March in your posted file.
    Attached Files Attached Files
    Last edited by JohnTopley; 08-10-2021 at 02:38 AM.

  10. #10
    Registered User
    Join Date
    08-09-2021
    Location
    Dublin
    MS-Off Ver
    365
    Posts
    5

    Re: Formula(s) for choosing & calculating milage rates

    Hi John,
    That's great, this really helps.
    Thanks very much.
    Paul

+ 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: 3
    Last Post: 12-08-2020, 12:22 PM
  2. Formula for a Milage Chart Help please
    By RodneyB in forum Excel General
    Replies: 1
    Last Post: 08-21-2018, 12:24 PM
  3. Need formula for calculating daily labor rates including overtime.
    By Evilemonade in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2017, 03:10 AM
  4. Replies: 2
    Last Post: 09-17-2016, 05:33 AM
  5. [SOLVED] Formula for calculating a value based on tiered percentage rates
    By d_max_c in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2014, 04:04 AM
  6. [SOLVED] Formula Help... Calculating charges based on stepped rates.
    By HoosierIT in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-23-2014, 05:55 PM
  7. Gas and milage formula not working out.
    By hendrikbez in forum Excel General
    Replies: 3
    Last Post: 09-03-2008, 04:21 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