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;


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Buy Date[/TD]
[TD]Maturity Date[/TD]
[TD]Year Left[/TD]
[TD]Year 1[/TD]
[TD]Year 2[/TD]
[TD]Year 3[/TD]
[TD]Year 4[/TD]
[TD]Year 5[/TD]
[TD]Year 6[/TD]
[TD]Year 7[/TD]
[TD]Year 8[/TD]
[/TR]
[TR]
[TD]Series1[/TD]
[TD]30/04/2018[/TD]
[TD]25/10/2023[/TD]
[TD]5[/TD]
[TD]25/10/18[/TD]
[TD]25/10/19[/TD]
[TD]25/10/20[/TD]
[TD]25/10/21[/TD]
[TD]25/10/22[/TD]
[TD]25/10/23[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Series2[/TD]
[TD]31/01/2016[/TD]
[TD]13/01/2024[/TD]
[TD]8[/TD]
[TD]13/01/17[/TD]
[TD]13/01/18[/TD]
[TD]13/01/19[/TD]
[TD]13/01/20[/TD]
[TD]13/01/21[/TD]
[TD]13/01/22[/TD]
[TD]13/01/23[/TD]
[TD]13/01/24[/TD]
[/TR]
[TR]
[TD]Series3[/TD]
[TD]25/09/2015[/TD]
[TD]25/12/2022[/TD]
[TD]7[/TD]
[TD]25/12/15[/TD]
[TD]25/12/16[/TD]
[TD]25/12/17[/TD]
[TD]25/12/18[/TD]
[TD]25/12/19[/TD]
[TD]25/12/20[/TD]
[TD]25/12/21[/TD]
[TD]25/12/22[/TD]
[/TR]
</tbody>[/TABLE]

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

Thankng you in advance.
 

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.
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

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.

[TABLE="class: cms_table"]
<tbody>[TR]
[TH="align: center"]A[/TH]
[TH="align: center"]B[/TH]
[TH="align: center"]C[/TH]
[TH="align: center"]D[/TH]
[TH="align: center"]E[/TH]
[TH="align: center"]F[/TH]
[TH="align: center"]G[/TH]
[TH="align: center"]H[/TH]
[TH="align: center"]I[/TH]
[TH="align: center"]J[/TH]
[TH="align: center"]K[/TH]
[TH="align: center"]L[/TH]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Name[/TD]
[TD]Buy Date[/TD]
[TD]Maturity Date[/TD]
[TD]Year Left[/TD]
[TD]31-03-2015[/TD]
[TD]31-03-2016[/TD]
[TD]31-03-2017[/TD]
[TD]31-03-2018[/TD]
[TD]31-03-2019[/TD]
[TD]31-03-2020[/TD]
[TD]31-03-2021[/TD]
[TD]31/03/2022[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Series1[/TD]
[TD="align: right"]30/04/2018[/TD]
[TD="align: right"]25/10/2023[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]25/10/2018[/TD]
[TD="align: right"]25/10/2019[/TD]
[TD]25/10/2020[/TD]
[TD]25/10/2021[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Series2[/TD]
[TD="align: right"]31/01/2016[/TD]
[TD="align: right"]13/01/2024[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]13/01/2017[/TD]
[TD="align: right"]13/01/2018[/TD]
[TD="align: right"]13/01/2019[/TD]
[TD="align: right"]13/01/2020[/TD]
[TD="align: right"]13/01/2021[/TD]
[TD="align: right"]13/01/2022[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Series3[/TD]
[TD="align: right"]31/10/2017[/TD]
[TD="align: right"]13/01/2024[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]13/01/2018[/TD]
[TD="align: right"]13/01/2019[/TD]
[TD="align: right"]13/01/2020[/TD]
[TD="align: right"]13/01/2021[/TD]
[TD="align: right"]13/01/2022[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Series4[/TD]
[TD="align: right"]25/09/2015[/TD]
[TD="align: right"]25/12/2022[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]25/12/2016[/TD]
[TD="align: right"]25/12/2016[/TD]
[TD="align: right"]25/12/17[/TD]
[TD="align: right"]25/12/2018[/TD]
[TD="align: right"]25/12/2019[/TD]
[TD="align: right"]25/12/2020[/TD]
[TD="align: right"]25/12/2021[/TD]
[TD="align: right"]25/12/2022[/TD]
[/TR]
</tbody>[/TABLE]


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,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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