Hi Matt and welcome to the forum,
To solve it reasonably easy with formulas, you need to sort your debts in order of expected date of repaiment (shortest to longest).
The easy way to check it is using ratio
=E2/H2
so as you write it in for instance I2 and copy down, you can sort B2:I6 on I ascending.
now headings in 2 next tables:
B13 and B2:
=B2
and copy down
Now for the quickest to pay one (L13) formula would be quite obvious:
so the smaller of two numbers: calculated payment and whole remaining part of loan.
(orange cell and copied right)
The other will be calculated as the smaller of remaining payment, and ratio of "% of FCF for debt used for paying off that specific loan" to sum of "% of FCF for debt used for paying off that specific loan and all loans below" multiplied by "remaining money" = difference of money available and used already for paying loans above current one.
Putting it into formula for L14 (green cell and copy down and right) we have:
In real life, one would probably need some rounding and/or displaying more decimal places.
especially if rounding is used, I'd change formula for last (lowest in sheet) payment to calculate the difference of available funds and used above for all other loans).
Bookmarks