Date yearly series generation

Acekay

New Member
Joined
Oct 19, 2018
Messages
11
Hi all,

I need to generate date series in columnar form for many of Bond series from the date of purchase till Maturity date.
I do not want to use fill handle as for all bond series i can not use. Following is the required sheet;


NameBuy DateMaturity DateYear LeftYear 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8
Series130/04/201825/10/2023525/10/1825/10/1925/10/2025/10/2125/10/2225/10/23
Series231/01/201613/01/2024813/01/1713/01/1813/01/1913/01/2013/01/2113/01/2213/01/2313/01/24
Series325/09/201525/12/2022725/12/1525/12/1625/12/1725/12/1825/12/1925/12/2025/12/2125/12/22

<tbody>
</tbody>

please help me to generate formula from year 1 onward column.

Thankng you in advance.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Re: Date yearly series generatin

This formula produces same dates as your examples:

=IF(DATE(YEAR($B2)+(EDATE($C2,-$D2*12)<=$B2)+COLUMNS($A$1:A1)-1,MONTH($C2),DAY($C2))>$C2,"",DATE(YEAR($B2)+(EDATE($C2,-$D2*12)<=$B2)+COLUMNS($A$1:A1)-1,MONTH($C2),DAY($C2)))
 
Upvote 0
Re: Date yearly series generatin

Hi,

For your Series2 sample, shouldn't the "Year Left" be 7 rather than 8 ??, since "Buy Date" is After the "Maturity Date" given the same Year...

Assuming that's a typo:


Book1
ABCDEFGHIJKL
1NameBuy DateMaturity DateYear LeftYear 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8
2Series14/30/201810/25/2023510/25/201810/25/201910/25/202010/25/202110/25/202210/25/2023
3Series21/31/20161/13/202471/13/20171/13/20181/13/20191/13/20201/13/20211/13/20221/13/20231/13/2024
4Series39/25/201512/25/2022712/25/201512/25/201612/25/201712/25/201812/25/201912/25/202012/25/202112/25/2022
Sheet396
Cell Formulas
RangeFormula
E2=IF(EDATE($C2,-($D2-COLUMNS($E2:E2)+1)*12)>$C2,"",IF(COLUMNS($E2:E2)=1,EDATE($C2,-($D2-1-IF(EDATE($C2,-$D2*12)<$B2,1,0)+1)*12),EDATE(D2,12)))


Formula copied down and across.
 
Last edited:
Upvote 0
Re: Date yearly series generatin

Hi,
Thanx a lot for the quick reply. All are genius here.:)
 
Upvote 0
Re: Date yearly series generatin

You're welcome.
 
Upvote 0
Date series generation from F column onwards subject to criteria of Raw F1 onwards

hi,
for the same type of sample, please help to put formula for the following table.

ABCDEFGHIJKL
1NameBuy DateMaturity DateYear Left31-03-201531-03-201631-03-201731-03-201831-03-201931-03-202031-03-202131/03/2022
2Series130/04/201825/10/2023525/10/201825/10/201925/10/202025/10/2021
3Series231/01/201613/01/2024813/01/201713/01/201813/01/201913/01/202013/01/202113/01/2022
4Series331/10/201713/01/2024713/01/201813/01/201913/01/202013/01/202113/01/2022
5Series425/09/201525/12/2022725/12/201625/12/201625/12/1725/12/201825/12/201925/12/202025/12/202125/12/2022

<tbody>
</tbody>


Please help
 
Upvote 0
Re: Date series generation from F column onwards subject to criteria of Raw F1 onwards

I think you will probably have to explain the logic of the results rather than just state...
please help to put formula for the following table
 
Upvote 0
Re: Date series generation from F column onwards subject to criteria of Raw F1 onwards

Without you explaining the logic, this may be what you're after although my results differ slightly from yours.

Enter the following into E2 and copy down / across as required:

PHP:
=IF(AND(E$1>=$B2,E$1<=$C2),DATE(YEAR(E$1)-IF(MONTH(E$1)<MONTH($C2),1,0),MONTH($C2),DAY($C2)),"")
 
Last edited:
Upvote 0
Re: Date series generation from F column onwards subject to criteria of Raw F1 onwards

Hi,
This is basically bond interest chart where interest is received annually on maturity dates every year. The logic is that if the maturity date is falling below(less than) column header year end date then maturity date should reflect in that cell. Here year end date criteria would be 1st April to 31st March for respective column.
eg. in my example of Series 2 buy date is 31/01/2016 and maturity date is 13/01/2024, so its first year is interest would be for the year end 31-03-2017 as first interest will be received on 13/01/2017.
eg in series 3 buy date is 31/10/17 and maturity is 13/01/2024 so first year of interest would be for the year end 31-03-2018 as first interest will be received on 13/01/2018.

Your formula is good. But not fulfilling my crieteria as you mentioned that i have not explained logic earlier. Now its explained above. Please help to have a correct formula to give required result.
Do write back for any query.

Thanx.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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