Number of Days in First, Mid, Last Quarter of Contract

Dmat

Board Regular
Joined
Mar 2, 2009
Messages
54
So I'm running into a snag and need some help.

I'm trying to write a dynamic formula that gives me the number of days in my contract every quarter. I'm trying to formulate my support documentation to match IT logic.

My known, I have a start date, end data, and current quarter/year that i'm in.

I can figure out the first quarter, mid term, and last quarter by the contract dates but manually input the end date of the first quarter or beginning date of the last quarter. Can that be done automatically?

I need to manually spread the mid term amount for each quarter in between but need to ignore that spread for the first and last quarter. The mid term spread will be a decimal between 90-92 days depending on the quarter.

The formula I'm looking for:
Row 2, I would take my contract value/29 days (first quarter of deal)
Row 3, I would take my contract value/91.45 days (mid term)
Row 4, I would take my contract value/89 days (last quarter of deal)

I know this is a unique ask but it's what I'm working with. I appreciate any help I can get. Thanks in advance.

1632769130225.png
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Here's what I came up with, but I have a few questions:

Book1
ABCDEF
1Current QuarterContract Start DateContract End DateFirst QuarterMid TermLast Quarter
2Q3 20219/1/20218/30/202629173560
3Q3 20216/1/20215/30/202429100659
4Q3 20219/29/20209/28/2021127489
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=EOMONTH(B2,2-MOD(MONTH(B2)-1,3))-B2
E2:E4E2=C2-B2-D2-F2
F2:F4F2=C2-EOMONTH(C2,-MOD(MONTH(C2)-1,3)-1)-1
A2:A4A2="Q"&INT((MONTH(TODAY())-1)/3)+1&" "&YEAR(TODAY())


For the D column, shouldn't it be 30? 9/1-9/30? Same type of question for column F?
 
Upvote 0
In that case, try:

Book1
ABCDEF
1Current QuarterContract Start DateContract End DateFirst QuarterMid TermLast Quarter
2Q3 20219/1/20218/30/202630173361
3Q3 20216/1/20215/30/202430100460
4Q3 20219/29/20209/28/2021227290
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=EOMONTH(B2,2-MOD(MONTH(B2)-1,3))-B2+1
E2:E4E2=C2-B2-D2-F2
F2:F4F2=C2-EOMONTH(C2,-MOD(MONTH(C2)-1,3)-1)
A2:A4A2="Q"&MROUND(MONTH(TODAY()),3)/3&" "&YEAR(TODAY())
 
Upvote 0

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

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