Hi Wayne!
Maybe the best approach is to have a date for extension notice to be
given in A2 and then to may Y calculable:
A1:
Starting date
A2:
Renewal notice
B1:
=IF(A2="","",IF(A2<DATE(YEAR(A1),MONTH(A1)+7,1)-60,"Y",""))
C1:
=IF(B1="Y",DATE(YEAR(A1),MONTH(A1)+13,1),DATE(YEAR(A1),MONTH(A1)+7,1))
If no notice is given, then A2 is empty and B1 will return "" which
gives "normal" expiry from C1
If notice is given, then if it's not less than 60 days from expiry, B1
will return Y and C1 will return "extended" expiry
If notice is given, then if it is less than 60 days from expiry, B1
will return "" and C1 will return "normal" expiry
But I can do away with the B1 formula using:
C1:
=IF(A2="",DATE(YEAR(A1),MONTH(A1)+7,1),IF(A2<DATE(YEAR(A1),MONTH(A1)+7
,1)-60,DATE(YEAR(A1),MONTH(A1)+13,1),DATE(YEAR(A1),MONTH(A1)+7,1)))
I can't say I like that approach.
It's not been thoroughly tested so give it a good trial.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.