Hi Wayne!
Let's set up and test the age requirement first:
I've put the birthdate in A2 and compared it with the date of issue
using DATEDIF:
=IF(DATEDIF(A2,A1,"y")>40,IF(B1="",DATE(YEAR(A1),MONTH(A1)+7,1),IF(B1>
=DATE(YEAR(A1),MONTH(A1)+7,1)-60,IF(B1>DATE(YEAR(A1),MONTH(A1)+7,1),DA
TE(YEAR(B1),MONTH(B1)+7,1),DATE(YEAR(A1),MONTH(A1)+13,1)),DATE(YEAR(A1
),MONTH(A1)+7,1))),IF(B1="",DATE(YEAR(A1),MONTH(A1)+13,1),IF(B1>=DATE(
YEAR(A1),MONTH(A1)+13,1)-60,IF(B1>DATE(YEAR(A1),MONTH(A1)+13,1),DATE(Y
EAR(B1),MONTH(B1)+13,1),DATE(YEAR(A1),MONTH(A1)+13,1)),DATE(YEAR(A1),M
ONTH(A1)+7,1))))
Try that out and if OK we can progress to handling the warning.
--
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.