add and multiply values based on date reference

fragelracken

New Member
Joined
Dec 2, 2005
Messages
21
Ultimately I'm trying to calculate Interest accrued from a specific date. The problem is payments can be interest only which when used should keep the next months interest at the same rate instead of decreasing because the principal hasn't been paid down.

Im having problems when over the course of a number of payments they are principal + Interest and Interest only which requires at times to add up the same interest amount for 2-3 months in a row, then add up a different interest rate, etc. Additionally if the reference date is say on the 15th and the interest date is the 1st then for the last month I need to calculate the interest on a daily basis based on the current interest rate for that month.

The reference cell is H5, the Date ranges are J2 - J12, and the principal fields are: K2 - K12.

In the next post I will include the Amortization schedule.

In this example the interest is accrued at the same rate months 1-7, then decreased for months 8 and 9. so the total interest accrued should be eqaual to: $7487.74 (see next post for schedule).
ZZ_Loan.Calculator-Update.1.1.xls
FGHIJKLM
1v 1.0PaymentApply DatePrincipal + InterestAdditional PrincipalInterest Only
21/1/2009833.33
32/1/2009833.33
4Quarter Close Backward3/1/2009833.33
5Close Date9/1/20094/1/2009833.33
6Days of Interest05/1/2009833.33
7Beg Principal Balance$100,000.006/1/2009833.33
8Paydowns$980.417/1/20091,321.51
9End Principal Balance$99,019.598/1/20091,321.51
10Net Principle Due$3,562.509/1/2009829.27
11Interest Due & Accrued10/1/20091,321.51
12Interest Earned (cummulative)$7,350.6611/1/20091,321.51
13Interest pymts (cummulative)$7,350.66
14Net Interest Receivable$0.00
TEST
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Amortization schedule

Amortization schedule.

In this example the interest is accrued at the same rate months 1-7, then decreased for months 8 and 9. so the total interest accrued should be eqaual to: $7487.74 (see next post for schedule).

=E37+E37+E37+E37+E37+E37+E37+E38+E39

Thank you for any help you can offer.
 
Last edited:
Upvote 0
hmmm... the specifics of this make it rather complicated.


Is interest ever to increase if it isn't paid? Does the interest level decrease more than one level if additional principal is added?
 
Upvote 0
Q. Is interest ever to increase if it isn't paid?
A. The loan is a fixed rate with fixed number of payments (not vairable). Interest Rate does not increase and will not decrease in amount unless principal is paid down. If there is an interest only payment, the current payment will be required to be paid again which could be a full payment of 1321.51, or interest only at 833.33 at the same rate since principal wasn't paid down.

All payments have the same fixed amount 1,321.51. the 1st payment is amoritized by 833.33 in Interest and 488.18 in principal. If there is an interest only payment (no principal), then the second payment will be identical to the 1st payment until principal is paid down. If they make 2 Interest only payments, their 3rd payment will still remain the same amount as the 1st @ 833.33 in Interest and 488.18 in principal. When the principal is finally paid down it wll decrease the next payment interest based on the amoritization schedule.

Q. Does the interest level decrease more than one level if additional principal is added?
A. My amoritization schedule automatically adjusts if there is an additional principal paid above the standard amount owed in column L (Anything entered in column L will subtract principal in column D of the amoritizaiton schedule and auto adjust the remaining payments accordingly. The number of payments and payment amount will not change, but the amount towards interest and principal will adjust automatically. If there is a way to reference cells J - M to calculate amounts in cells E as defined by the close date, there is no need to worry about decreasing interest.

My issue is in automating the ability to calculate the exact amount of interest accrued.

I posted a question similar in nature, but requesting a different type of outout. the syntax below seems to have the logic I need without the results I'm looking for. Here is the syntax:

=SUMPRODUCT(--(J2:J361<=H5),--(K2:K361&M2:M361<>""))

In this example it is doing a count of how many times a colum has data entered in it if another cell has a date less than a specific value and the cells are not empty.

http://www.mrexcel.com/forum/showthread.php?t=385986

thank you for your help and please let me know if I need to provide more informaiton.
 
Upvote 0
I'm not sure if this will help you, but here's what I've done...

On the first worksheet that you have posted, I inserted two columns N and O.

For Column N, I have the following formula in N2 (since you always pay the first interest on the first month?):

=INDEX(Lookup!$E$37:$E$49, 1, 0)

Then on N3 (and copied all the way down column N): I have called the second sheet you posted "Lookup".

=IF(K2="",N2,INDEX(Lookup!$E$37:$E$13,MATCH(Sheet1!N2,Lookup!$E$37:$E$49,0)+1))

This formula above says that if you didn't make a Principal + Interest Payment, then your interest for that month is the same as above. However, if you DID make a Principal + Interest that month, then your interest is one level decreased (on the lookup sheet).


Column O simply has a running sum of these interest amounts:

(In O2 copied all of the way down):

=SUM(N$2:N2)


Finally, for a way to look up a date, pull in the total amount of interest + the interest for that month/30 * extra days for that month:


In my sheet I do not have your columns A through H, so you'll have to adjust these formulas based on where you want to put them...

In my E5 I have the date you enter.
In my E6, I lookup the running Interest total (from column O) based on that date:

=VLOOKUP(E5,J2:O19,6)

In my E7 I count the number of extra days (not sure if it would be minus one or not...):

=DAY(E5)-1

Then in E8 In lookup the interest rate at that date, divide by 30, and multiply by that number of extra days:

=(VLOOKUP(E5,J2:N19,5)/30)*E7

Finally, I add up that extra amount to the original amount:

=E8+E6


I know this is super confusing and may need to be adjusted based on the assumptions, but maybe it is at least a little bit for you to work with?
 
Upvote 0
See the edit in red...

I'm not sure if this will help you, but here's what I've done...

On the first worksheet that you have posted, I inserted two columns N and O.

For Column N, I have the following formula in N2 (since you always pay the first interest on the first month?):

=INDEX(Lookup!$E$37:$E$49, 1, 0)

Then on N3 (and copied all the way down column N): I have called the second sheet you posted "Lookup".

=IF(K2="",N2,INDEX(Lookup!$E$37:$E$49,MATCH(Sheet1!N2,Lookup!$E$37:$E$49,0)+1))

This formula above says that if you didn't make a Principal + Interest Payment, then your interest for that month is the same as above. However, if you DID make a Principal + Interest that month, then your interest is one level decreased (on the lookup sheet).


Column O simply has a running sum of these interest amounts:

(In O2 copied all of the way down):

=SUM(N$2:N2)


Finally, for a way to look up a date, pull in the total amount of interest + the interest for that month/30 * extra days for that month:


In my sheet I do not have your columns A through H, so you'll have to adjust these formulas based on where you want to put them...

In my E5 I have the date you enter.
In my E6, I lookup the running Interest total (from column O) based on that date:

=VLOOKUP(E5,J2:O19,6)

In my E7 I count the number of extra days (not sure if it would be minus one or not...):

=DAY(E5)-1

Then in E8 In lookup the interest rate at that date, divide by 30, and multiply by that number of extra days:

=(VLOOKUP(E5,J2:N19,5)/30)*E7

Finally, I add up that extra amount to the original amount:

=E8+E6


I know this is super confusing and may need to be adjusted based on the assumptions, but maybe it is at least a little bit for you to work with?
 
Upvote 0
Thank you AnalyticsGuy7

It is very helpful. I have gotten the 1st 1/2 of your recommendation completed, but I am a little confused on the second 1/2; perhaps because the columns don't align or because I'm very tired.

You say:
Finally, for a way to look up a date, pull in the total amount of interest + the interest for that month/30 * extra days for that month:

In my sheet I do not have your columns A through H, so you'll have to adjust these formulas based on where you want to put them...

Everything below this doesn't work for me. I was hoping if I included a more complete spreadsheet you could help me understand what I'm entering wrong.

=VLOOKUP(E5,J2:O19,6)

I'm not sure exactly what column I reference as "6".

thank you,
ZZ_Loan.Calculator-Update.1.1.xls
ABCDEFGHIJKLMNOPQR
1Payment Calculatorv 1.0PaymentApply DatePrincipal + InterestAdditional PrincipalInterest OnlyOtherFeesInterest FeeZero OutInterestAccruedInterest Total
21/1/2009833.33 833.33833.33
3Loan #2/1/2009833.33 833.331,666.66
4InputsQuarter Close Backward3/1/2009833.33 833.332,499.99
5Loan Amount$100,000.00Close Date9/2/20094/1/2009833.33 833.333,333.32
6Annual Interest Rate10.00%Days of Interest15/1/2009833.33 833.334,166.65
7Term of Loan in Years10Beg Principal Balance$100,000.006/1/2009833.33 833.334,999.98
8First Payment Date1/1/2009Paydowns$980.417/1/20091,321.510.00833.335,833.31
9Frequency of PaymentMonthlyEnd Principal Balance$99,019.598/1/20091,321.510.00829.276,662.58
10Starting PrincipalNot Used YetNet Principle Due$3,580.039/1/2009829.27 825.167,487.74
11Interest Due & Accrued10/1/20091,321.510.00825.168,312.90
12Interest Earned (cummulative)$7,377.1811/1/20091,321.510.00821.039,133.93
13Summary (with no extra payments)Interest pymts (cummulative)$7,350.66 816.869,950.79
14Number of Payments120Net Interest Receivable$26.52 816.8610,767.65
15Rate (per period)0.8333% 816.8611,584.51
16Payment (per period)$1,321.51Arbitrary Payoff Date 816.8612,401.37
TEST
 
Upvote 0
The column 6 is my new column O which is a running sum of the interest paid at each month. Recall that I entered column N which does my formulaic calculations of the interest for that month (pulls off of my "lookup" sheet and adjusts depending on whether principal + interest was paid at the last month) and then column O does a running sum of those amounts.
 
Upvote 0
It looks like you have done that to columns Q and R, but I have them replace the current columns N and O. Sorry that wasn't clear.
 
Upvote 0
I guess that's where I'm confused. Colomn O would be column 15, but you say it's column 6. That is what I don't understand. I'm using this:

=VLOOKUP(H5,J2:R19,18)

but it doesn't work. It's the last number that I don't understand what "col_index_num" is supposed to be. I keep getting #REF for that no matter what number I put there.

Sorry I'm not getting it.
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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