+ Reply to Thread
Results 1 to 10 of 10

[SOLVED] Mileage Log and Reimbursement Form with Split rates

  1. #1
    Registered User
    Join Date
    11-23-2012
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    [SOLVED] Mileage Log and Reimbursement Form with Split rates

    Good day all you Excel gurus!


    I've created a Mileage log and reimbursement form that tracks an employees annual mileage (in Canada, so should I say Kilometerage?? lol)
    The company pays .52c per km up to and including 5000 kms and then pays .46c for the remainder.
    The issue I'm running into is calculating when the kms break the 5000 threshold and some might pay at the .52 rate and the remainder pays at the .46. I've been mucking with this one for a while and tried quite a few variations I've found while surfing the web, none with the result I'm needing.
    In order to make this easier for our controller to administrate in future, I've created a cell that will SUM total kms entered, and also set up Rate cells, that show the split. (see attachment)
    My first attempt was the following:
    =IF($E$4<=5000,I7*$H$4,I7*$J$4)
    This works great below the 5000km threshold and above the 5000 km threshold, but doesn't calculate the split rate when your km are just below and just above the threshold.
    Any ideas?
    Attached Files Attached Files
    Last edited by robiniwitz; 11-28-2012 at 04:35 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Mileage Log and Reimbursement Form with Split rates

    I am having a problem opening files at the moment (setting up a new machine), so i cant look at you're file. try something like this...

    =if(a1<=5000,a1*.52,(a1-5000)*.46+2600)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Mileage Log and Reimbursement Form with Split rates

    I'm not sure where your formula is going, but using those totals you can use this:

    =MIN(5000,$E$4)*$H$4 + MAX(0,$E$4-5000)*$J$4

    to get the overall re-imbursement value. Do you really need it on every line?

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-16-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Mileage Log and Reimbursement Form with Split rates

    What about this in the J column?
    =IF(SUM($I$7:I7)>5000,(5000*$H$4)+((SUM($I$7:I7)-5000)*$J$4),SUM($I$7:I7)*$H$4)

    That should create a running total for reimbursement.

  5. #5
    Registered User
    Join Date
    11-23-2012
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Mileage Log and Reimbursement Form with Split rates

    Fdibbins, no go on that one and Pete_UK, yes it has to be on each line.

  6. #6
    Registered User
    Join Date
    11-23-2012
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Mileage Log and Reimbursement Form with Split rates

    QEJohn, that works great on a single line, but I will need to drag that formula all down the column.

  7. #7
    Registered User
    Join Date
    11-23-2012
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Mileage Log and Reimbursement Form with Split rates

    I tried to modify QEJohns formula to work down the column and to reference E4 as the running total but failed epically. Any other ideas?

  8. #8
    Registered User
    Join Date
    11-16-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Mileage Log and Reimbursement Form with Split rates

    you should be able to drag that down and it will keep a total. That will be a running total, i.e. - it will continue to add onto the amt. This is most useful if you're writing he/she one big check. If you want to write small ones for each trip, the formula in J7 should be what i posted previously, and J8's formula should look like this:
    =IF(SUM($I$7:I8)>5000,(5000*$H$4)+((SUM($I$7:I8)-5000)*$J$4),SUM($I$7:I8)*$H$4)-SUM($J$7:J7)
    (it's giving you the same number as the J7 formula - all the money already paid out.)
    Then you can drag J8 down however many rows you need.

    -QEJohn

  9. #9
    Registered User
    Join Date
    11-23-2012
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Mileage Log and Reimbursement Form with Split rates

    Eureka!!! Thanks QEJohn, that is the ticket!!! Thank you VERY much.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Mileage Log and Reimbursement Form with Split rates

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ 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