Date Calculation

KonstantinN

New Member
Joined
Aug 6, 2014
Messages
10
Dear Excel experts,

I need help on the following problem in excel involving the calculation of a date:

I do have a column (A) that shows the contract end date (01/05/2012), then there is another column (B) that shows if the contract is autorenewing (TRUE/FALSE) and another column (C) that shows the renewal term as a number in years (2).

If the contract end date (A) is smaller than TODAY() and B is TRUE, then the formula should calculate the new contract end date. The renewal term should be added until the new contract date is bigger/equal than TODAY().

Many thanks in advance,
Konstantin




[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]

[/TR]
</tbody>[/TABLE]


[TABLE="width: 212"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 341"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
i think this should work for you

=IF(AND(B2=TRUE,A2 < TODAY(),TODAY() < = DATE(YEAR(A2)+C2,MONTH(A2),DAY(A2))),DATE(YEAR(A2)+C2,MONTH(A2),DAY(A2)),"")

see here

https://www.dropbox.com/s/9jag45c8mcmmcly/contract.xlsx?dl=0

Yellow shows where the renewal would be before today and so is blank

The file will only stay on dropbox for a few days
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,157
Messages
6,170,419
Members
452,325
Latest member
BlahQz

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