Populate Values According to Year

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
951
Office Version
  1. 365
Hi,

I have the following table:

Book2
BCDEFGHIJ
4Maturity Period5YearFace ValueInitialFace Value-Bond PriceInterestTotal
5Coupon Rate6%1100095050601060
6Frequency of Coupon1.002601120
7Current Bond Price9503601180
8Face Value10004601240
95601300
10Adjusted Coupon Payment60
11Adjusted No of Period5
Bond
Cell Formulas
RangeFormula
G5G5=C7
H5H5=F5-G5
I5:I9I5=$C$10*$C$6
J5J5=G5+I5+H5
J6:J9J6=J5+I6
C10C10=IF(C6>0,C5*C8/C6,C5*C8)
C11C11=IF(C6>0,C4*C6,C4)


I would like to populate the values in column E, I and J to column J according to value in cell C11. In other words, since cell C11 only has a value of 5, then the values in column E, I and J should only populate up to year 5. Is there a way to do this ? Appreciate all the help.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Like this?

24 02 11.xlsm
BCDEFGHIJ
4Maturity Period5YearFace ValueInitialFace Value-Bond PriceInterestTotal
5Coupon Rate0.061100095050601060
6Frequency of Coupon12601120
7Current Bond Price9503601180
8Face Value10004601240
95601300
10Adjusted Coupon Payment60
11Adjusted No of Period5
Years
Cell Formulas
RangeFormula
E5:E9E5=SEQUENCE(C11)
G5G5=C7
H5H5=F5-G5
I5:I9I5=SEQUENCE(C11,,C10*C6,0)
J5:J9J5=SEQUENCE(C11,,G5+H5+I5,I5)
C10C10=IF(C6>0,C5*C8/C6,C5*C8)
C11C11=IF(C6>0,C4*C6,C4)
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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