Matrix multiplication on loans & repayments with different interest rates (MMULT?)

Galileo

New Member
Joined
Apr 17, 2013
Messages
1
Sorry for the long post, I tried to give a little background but I believe the basic excel question boils down to how to do matrix multiplications.


I have 3 loans of $30 each, which started in different years. They all have a repayment schedule of 10 every year but every repayment has a different interest rates. On the first loan, the first repayment is calculated with an interest rate of 5%, the second repayment has 6%, etc. (the longer the tenor/maturity, the higher the interest rate).


Repayments:
Loan 1Loan 2Loan 3
Year 110--
Year 21010-
Year 3101010
Year 4-1010
Year 5--10

<tbody>
</tbody>


Rate:
Loan 1Loan 2Loan 3
Payment 15%3%1%
Payment 26%4%2%
Payment 37%5%3%

<tbody>
</tbody>


The interest payments calculate as follows:
Loan 1Loan 2Loan 3Total
Year 1$0,50+$0,60+$0,70n.a. (does not yet exist)n.a. (does not yet exist)$1,80
Year 2$0,60+$0,70$0,30+$0,40+$0,50n.a. (does not yet exist)$2,50
Year 3$0,70$0,40+$0,50$0,10+$0,20+$0,30$2,20
Year 4n.a. (fully repaid)$0,50$0,20+$0,30$1,00
Year 5n.a. (fully repaid)n.a. (fully repaid)$0,30$0,30

<tbody>
</tbody>


Which formula would be best suited to give me in 1 cell the total interest payment by year, taking into account all tranches and different rates? I tried using an MMULT formula, but I can't seem to get it working, I could be doing something wrong on the number of array dimensions.

For 3 loans & 3 sets of rates I could do it manually, but in reality the number of tranches/maturities goes up to 60 months and there are 36 loans that were generated over 3 years. Then the array becomes interesting, 36 loans @ 60 maturities not one of them with a single similar interest rate. :confused:
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Assume:
Repayment numbers are in B2:D6
Int Rates are in B10:D12

Enter this formula in B15 and copy down and across to D19:
=IF(B2=0,0,IF(COUNTIF(B$2:B2,">"&0)=1,SUM(B$10:B$12)*B2,IF(COUNTIF(B$2:B2,">"&0)=2,SUM(B$11:B$12)*B2,B$12*B2)))
 
Upvote 0

Forum statistics

Threads
1,214,431
Messages
6,119,462
Members
448,899
Latest member
maplemeadows

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