Consideration of renewal term in formula

beachdrop

New Member
Joined
Aug 28, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a contracts spreadsheet containing all our suppliers that contain contract renewal dates, contract duration and monthly cost. I'm trying to work out a formula to display the cost to terminate a supplier 18 months from now which takes into consideration the remaining term of the contract and therefore whether that contract will also need to be renewed within the 18 months.

As an example, if todays date is 01/01/20, a supplier has a monthly cost of $1000, a contract duration of 60 months and a renewal date of 01/01/2021, the cost to terminate that supplier between now and 02/07/2022 (18 months time) would be $12,000 + $60,000.

If the renewal date in the same example was instead 01/01/23, then the cost to terminate would be $18,000 (no renewal).

Any help would be massively appreciated - I think I need to use some IF statements and an array to find the possible renewal dates in the range but I just can't work out how to do it!

Many thanks,
BD
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
As an example, if todays date is 01/01/20, a supplier has a monthly cost of $1000, a contract duration of 60 months and a renewal date of 01/01/2021, the cost to terminate that supplier between now and 02/07/2022 (18 months time) would be $12,000 + $60,000.
Could you explain how you reach that figure please?

Assuming that your dates are in US format of mm/dd/yyyy, I'm coming up with a figure of $18,000 (5 months left on existing contract plus first 13 months of renewal) + $47,000 (47 months of renewed contract unused).
 
Upvote 0
Sorry - I incorrectly converted from UK to US dates. It should have read:

As an example, if todays date is 01/01/20, a supplier has a monthly cost of $1000, a contract duration of 60 months and a renewal date of 01/01/21, the cost to terminate that supplier between now and 07/02/2022 (18 months time) would be $12,000 + $60,000.

That figure comprises 12 months remaining on the existing contract and than a commitment of 60 months to cover the remaining 6.

Hopefully that makes sense!
 
Upvote 0
Something is still not adding up correctly, did you mean 07/02/2021 for the last date?

See if this helps, I've used long date format to try and reduce confusion.

Please note that this only allows for one contract renewal, if you had a 12 month contract which needed to be renewed twice in order to cover the 18 month period until termination then the formula will need to be modified to cater for that. I've tried to keep it simple to start with.

Book2
ABCDEF
1Current DateRenewal DateTermination DateDurationMonthly CostTermination Cost
201 January 202001 January 202102 July 2021601000.0072000.00
301 January 202001 January 202302 July 2021601000.0036000.00
Sheet8
Cell Formulas
RangeFormula
F2:F3F2=DATEDIF(A2,IF(B2>C2,B2,EDATE(B2,D2)),"M")*E2
 
Upvote 0
Thank you so much for this - that's amazing and yes that was a typo (the last date should have been 07/02/2021).

Given that a contract could be short and therefore need to be renewed at least once in order to cover the 18 month period until termination have you got any ideas how to go about amending this formula?

Thank you so much again! You have no idea how much head scratching I've been up to trying to resolve this.
 
Upvote 0
I had a quick look and came up with this formula which appears to work with a quick test.
Excel Formula:
=DATEDIF(A2,IF(B2>C2,B2,EDATE(B2,CEILING(DATEDIF(B2,C2,"M"),D2))),"M")
One thing that I missed (which applies to this formula and the original one) is that a renewal could get missed if it is due less than one month before the termination date.

In such cases, should the renewal still be applied, or is there a point where termination should be brought forward instead of renewing?
 
Last edited:
Upvote 0
That's awesome - thanks so much for this. The renewal should still apply if it's due less than one month before the termination date... presumably we can resolve that using an IF statement?

Thanks again.
 
Upvote 0
Yes, that should be possible. I did try a couple of things but not working as expected. I'll have another look at it later to see if I can figure out what I'm missing, that might not be until tomorrow though.
 
Upvote 0
I think that I have this right now, this is based on the same data layout as post 4.

=DATEDIF(A2,IF(B2>=C2,B2,EDATE(B2,CEILING(DATEDIF(B2,C2-1,"M")+1,D2))),"M")*E2

The part in bold calculates the end of contract date including any renewals, that can be entered as a formula on its own if you want to verify the dates.

The formula will include any renewals up to and including 1 day before the termination date.
I've assumed that contracts will expire at the end of the business day and that renewal on the termination date would not be necessary, if renewal is required in such cases then you will need this version instead.

=DATEDIF(A2,IF(B2>C2,B2,EDATE(B2,CEILING(DATEDIF(B2,C2,"M")+1,D2))),"M")*E2

I've done some testing with random dates on both versions of the formula and the results appear to be correct, hopefully I'm not missing anything.
 
Upvote 0

Forum statistics

Threads
1,215,563
Messages
6,125,572
Members
449,237
Latest member
Chase S

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