mileage rates based on yearly total

jzinko

New Member
Joined
Apr 24, 2019
Messages
2
I'm a bit of an excel noob and need help with a formula.

I submit mileage expenses monthly. My mileage rate is based on yearly totals: 40 cents/mi for everything up to 5000 miles per year, 20 cents after that.

So I need to input the yearly total mileage from the previous monthly report, then determine the reimbursement rate for the current month only.

eg:
last month I had 4800 miles. This month I had 500 miles. I need to calculate 200 miles at 40 cents, then 300 miles at 20 cents. Then next month, all mileage will be at the 20 cents rate.

Any help is appreciated.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hey,

I'd have 3 (maybe 4) columns:
Column M: Miles
Column N: Accumulated Miles
Column O: Pay

In Column M fill in monthly miles (perhaps set Column L to the month)
In Column N (cell N2) accumulate the monthly miles =SUM($M$2:M2) and drag down from N2 to N13
In Column O (cell O2) use this formula: =IF(N2<5000,0.4*M2,IF(N(N1)-5000<0,(5000-N(N1))*0.4+(N2-5000)*0.2,0.2*(N2-N(N1))))

MNO
1MilesAcc. MilesPay
24800=SUM($M$2:M2)=IF(N2<5000,0.4*M2,IF(N(N1)-5000<0,(5000-N(N1))*0.4+(N2-5000)*0.2,0.2*(N2-N(N1))))
3500=SUM($M$2:M3)=IF(N3<5000,0.4*M3,IF(N(N2)-5000<0,(5000-N(N2))*0.4+(N3-5000)*0.2,0.2*(N3-N(N2))))
4400=SUM($M$2:M4)=IF(N4<5000,0.4*M4,IF(N(N3)-5000<0,(5000-N(N3))*0.4+(N4-5000)*0.2,0.2*(N4-N(N3))))

<tbody>
</tbody>

Which results in the following:

MNO
1MilesAcc. MilesPay
2480048001920
35005300140
4400570080

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,299
Members
448,885
Latest member
LokiSonic

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top