ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Creating a List of Loan Periods Dynamically (https://www.excelbanter.com/excel-worksheet-functions/115195-creating-list-loan-periods-dynamically.html)

David Treptor

Creating a List of Loan Periods Dynamically
 
I am creating a Loan Amortization schedule and would like to configure it to
autmatically populate the list of periods based on the number of periods in
the loan. Is this possible, and if so, how would one do it. Thanks.

Bernie Deitrick

Creating a List of Loan Periods Dynamically
 
David,

You can use an event. For example, the code below will copy row 5 down for enough rows to match the
number entered in cell C2. This assumes that Row 5 has the formulas needed to created the
amortization table.

Copy the code, right-click the sheet tab, and select "View Code", then paste the code in the window
that appears.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$C$2" Then Exit Sub
Application.EnableEvents = False
Range("6:65536").Clear
Range("5:5").Copy Range("5:" & Target.Value + 4)
Application.EnableEvents = True
End Sub



"David Treptor" wrote in message
...
I am creating a Loan Amortization schedule and would like to configure it to
autmatically populate the list of periods based on the number of periods in
the loan. Is this possible, and if so, how would one do it. Thanks.




Gary L Brown

Creating a List of Loan Periods Dynamically
 
I am creating a Loan Amortization schedule and would like to configure it to
autmatically populate the list of periods based on the number of periods in
the loan. Is this possible, and if so, how would one do it. Thanks.

Assume cell B4 contains the Loan Start Date.
Assume cell A7 is the first period
Assume cell A8 is the second period
Assume each period is one month

1) make sure the 'Analysis ToolPak' addin is active
2) format cells A7 and A8 as DATE (mmm-yyyy)
3) formula in A7...
=EOMONTH(B4,0)+1
4) formula in A8...
=EOMONTH(A7,1)
5) copy the formula in A8 down the appropriate # of rows for the
amortization table

HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"David Treptor" wrote:

I am creating a Loan Amortization schedule and would like to configure it to
autmatically populate the list of periods based on the number of periods in
the loan. Is this possible, and if so, how would one do it. Thanks.



All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com