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





<tbody>
</tbody>



<colgroup><col><col><col></colgroup><tbody>
</tbody>



<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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