Period and Number of sub-period closed

Sunil Pinto

New Member
Joined
Jul 31, 2024
Messages
20
Office Version
  1. 2016
Dear All,

"My rental contract spans from June 15, 2024, to September 14, 2027. Rent is paid quarterly on the 20th of each quarter, the first payment beginning on June 20, 2024. How many quarterly cheques will I be issuing till the end of the contract?

The result is 13 cheques.

I found it by using this function as =DATE(2024,SEQUENCE(13,1,6,3),20)

But in the above formula, 13 is manually quoted and tested in the series.

My requirement here is how I can link the period <15/06/2024 to 14/06/2027> to get the result 13. when I change the period I need the result to be changed accordingly.

Can you please help me to fix this task?

regards,

Sunil Pinto
 
Thanks, Felixstraube,

Your formula is working fine, if the question is taken from another perspective, it is excellent. Only I struck one of the raw do not know the reason.

31/12/2022​
14-Feb-2213-Feb-23
#SPILL!​
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Indeed, Felixstraube's formula is excellent. The reason why it is not calculating is because it cannot spill as there is some data in G6 - if you delete it, it should work as intended...
 
Upvote 0
Would this work?:

Book6.xlsx
ABCD
1
2Calculation to:31-Dec-2022
3Sl.No.FromToLast quarter cheque issue date
4115-Jul-202114-Jul-202215-Apr-2022
5201-Oct-202130-Sep-202201-Jul-2022
6315-Oct-202114-Oct-202215-Jul-2022
7415-Oct-202114-Oct-202215-Jul-2022
8515-Nov-202114-Nov-202215-Aug-2022
9615-Nov-202114-Nov-202215-Aug-2022
10701-Jan-202231-Dec-202201-Oct-2022
11801-Jan-202231-Dec-202201-Oct-2022
12914-Feb-202213-Feb-202314-Nov-2022
131021-Feb-202220-Feb-202321-Nov-2022
141101-Mar-202228-Feb-202301-Dec-2022
151212-Mar-202211-Mar-202312-Dec-2022
161315-Mar-202214-Mar-202315-Dec-2022
171426-Mar-202225-Mar-202326-Dec-2022
181515-Apr-202214-Apr-202315-Oct-2022
191605-Sep-202204-Sep-202305-Dec-2022
201701-Sep-202209-Sep-202301-Dec-2022
211801-Oct-202230-Sep-202301-Oct-2022
221910-Oct-202209-Oct-202310-Oct-2022
232018-Oct-202217-Oct-202318-Oct-2022
242115-Nov-202219-Jan-202315-Nov-2022
252226-Nov-202225-Nov-202326-Nov-2022
262301-Jan-202331-Jan-2024 
rental (2)
Cell Formulas
RangeFormula
D4:D26D4=LET( s, B4, e, MIN(C4, $D$2), d, SEQUENCE(e-s+1,,s), dates, TAKE((FILTER(d, (DAY(d)=DAY(s))*(MOD(MONTH(d), 3)=MOD(MONTH(s), 3)))), -1), IFERROR(dates, "") )
 
Upvote 1
Would this work?:

Book6.xlsx
ABCD
1
2Calculation to:31-Dec-2022
3Sl.No.FromToLast quarter cheque issue date
4115-Jul-202114-Jul-202215-Apr-2022
5201-Oct-202130-Sep-202201-Jul-2022
6315-Oct-202114-Oct-202215-Jul-2022
7415-Oct-202114-Oct-202215-Jul-2022
8515-Nov-202114-Nov-202215-Aug-2022
9615-Nov-202114-Nov-202215-Aug-2022
10701-Jan-202231-Dec-202201-Oct-2022
11801-Jan-202231-Dec-202201-Oct-2022
12914-Feb-202213-Feb-202314-Nov-2022
131021-Feb-202220-Feb-202321-Nov-2022
141101-Mar-202228-Feb-202301-Dec-2022
151212-Mar-202211-Mar-202312-Dec-2022
161315-Mar-202214-Mar-202315-Dec-2022
171426-Mar-202225-Mar-202326-Dec-2022
181515-Apr-202214-Apr-202315-Oct-2022
191605-Sep-202204-Sep-202305-Dec-2022
201701-Sep-202209-Sep-202301-Dec-2022
211801-Oct-202230-Sep-202301-Oct-2022
221910-Oct-202209-Oct-202310-Oct-2022
232018-Oct-202217-Oct-202318-Oct-2022
242115-Nov-202219-Jan-202315-Nov-2022
252226-Nov-202225-Nov-202326-Nov-2022
262301-Jan-202331-Jan-2024 
rental (2)
Cell Formulas
RangeFormula
D4:D26D4=LET( s, B4, e, MIN(C4, $D$2), d, SEQUENCE(e-s+1,,s), dates, TAKE((FILTER(d, (DAY(d)=DAY(s))*(MOD(MONTH(d), 3)=MOD(MONTH(s), 3)))), -1), IFERROR(dates, "") )

Would this work?:

Book6.xlsx
ABCD
1
2Calculation to:31-Dec-2022
3Sl.No.FromToLast quarter cheque issue date
4115-Jul-202114-Jul-202215-Apr-2022
5201-Oct-202130-Sep-202201-Jul-2022
6315-Oct-202114-Oct-202215-Jul-2022
7415-Oct-202114-Oct-202215-Jul-2022
8515-Nov-202114-Nov-202215-Aug-2022
9615-Nov-202114-Nov-202215-Aug-2022
10701-Jan-202231-Dec-202201-Oct-2022
11801-Jan-202231-Dec-202201-Oct-2022
12914-Feb-202213-Feb-202314-Nov-2022
131021-Feb-202220-Feb-202321-Nov-2022
141101-Mar-202228-Feb-202301-Dec-2022
151212-Mar-202211-Mar-202312-Dec-2022
161315-Mar-202214-Mar-202315-Dec-2022
171426-Mar-202225-Mar-202326-Dec-2022
181515-Apr-202214-Apr-202315-Oct-2022
191605-Sep-202204-Sep-202305-Dec-2022
201701-Sep-202209-Sep-202301-Dec-2022
211801-Oct-202230-Sep-202301-Oct-2022
221910-Oct-202209-Oct-202310-Oct-2022
232018-Oct-202217-Oct-202318-Oct-2022
242115-Nov-202219-Jan-202315-Nov-2022
252226-Nov-202225-Nov-202326-Nov-2022
262301-Jan-202331-Jan-2024 
rental (2)
Cell Formulas
RangeFormula
D4:D26D4=LET( s, B4, e, MIN(C4, $D$2), d, SEQUENCE(e-s+1,,s), dates, TAKE((FILTER(d, (DAY(d)=DAY(s))*(MOD(MONTH(d), 3)=MOD(MONTH(s), 3)))), -1), IFERROR(dates, "") )
Wow, felixstraube, that's an amazing formula! Thank you so much for explaining it. I'm really impressed.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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