Spreading Months between Financial Year

Mahenderlalwani

New Member
Joined
Apr 8, 2017
Messages
12
I Want to spread Agreement months between each Financial Year (31st March in India) , Sample Contract Given below - for example in the first cast Agreement Started in Nov 2016 , So for the financial year Mar 2016 to Mar 2017 we have 4 months and Same concept for all.

Someone please help me get this results via excel Formula

[TABLE="width: 1091"]
<colgroup><col span="2"><col><col span="8"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 8"]No. Of months Spread for each Financial Year End[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date Agreement[/TD]
[TD]Agreement End Date[/TD]
[TD]No. Of Months[/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]
[TD]Total[/TD]
[/TR]
[TR]
[TD]05-11-2016[/TD]
[TD]05-07-2018[/TD]
[TD]20[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]12[/TD]
[TD]4[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]05-01-2017[/TD]
[TD]05-01-2019[/TD]
[TD]24[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]12[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]09-12-2016[/TD]
[TD]09-12-2018[/TD]
[TD]24[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]3[/TD]
[TD]12[/TD]
[TD]9[/TD]
[TD]0[/TD]
[T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
[TD]6[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
 

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

See if this helps:


Book1
ABCDEFGHIJKL
1Date AgreementAgreement End DateNo. Of Months31-3-201531-3-201631-3-201731-3-201831-3-201931-3-202031-3-202131-3-2022Total
25-11-20165-7-20182000412400020
35-1-20175-1-201924001121000024
49-12-20169-12-20182400312900024
530-11-201630-11-20182400412800024
621-10-201621-10-20182400512700024
726-10-201626-10-201936005121270036
86-8-20166-8-20182400712500024
915-11-201615-11-2020480041212128048
1011-3-201711-3-201924000121200024
116-9-20166-3-201930006121200030
Sheet1
Cell Formulas
RangeFormula
D2=INT(MOD(MAX(0,MIN(D$1,EOMONTH($B2,0)+1)-MAX(DATE(YEAR(D$1)-1,4,1),EOMONTH($A2,0))),366)/30)
 
Upvote 0
The Cell F3 shows 1 whereas it should be 2 .
Rest and all is fine.

Thank you so very much.

I was using =DATEDIF(A2,$F1,"M") in Cell F2 along with if formula -
=IFERROR(IF(DATEDIF(G6,$AL$5,"M")>AA6,(DATEDIF(G6,$AL$5,"M")-AA6),IF((DATEDIF(G6,$AL$5,"M"))>12,12,(DATEDIF(G6,$AL$5,"M")))),0) but some issue with that.
 
Upvote 0
Some issue with Jan month. Like in cell F3 it shows 1 where as it should be 2.
Rest all is perfect.
Thanks in advance.
Mahender Lalwani
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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