C
Craig
Hi,
In cell D6 I have a DOB entered....in cell E6 I have a datedif function that
has 3 conditional formatting set as:
1 - If D6 is blank, E6 is blank.
2 - If DOB in D6 is between 18 - 24 then E6 shows age and cell is yellow.
3 - If DOB in D6 is 25 or over then E6 shows age and cell is blue.
What I need is when a DOB is entered in D6 under 16 years old, then D6
returns an error message -" You have Entered an Age under 16 Years - Retry!!
".
I have tried Data Validation, but cant get a message from tha as I dont know
what to set as the date validation.
I do need any 16 or 17 year olds to show as they are included in my customer
age range so they can stay white background.
If there is vba code for this then more than happy to try that as am slowly
trying to lean as much as I can
Any ideas??
Thanks in anticipation
My datedif formula is: =IF(D6="","",DATEDIF(D6,TODAY(),"Y"))
In cell D6 I have a DOB entered....in cell E6 I have a datedif function that
has 3 conditional formatting set as:
1 - If D6 is blank, E6 is blank.
2 - If DOB in D6 is between 18 - 24 then E6 shows age and cell is yellow.
3 - If DOB in D6 is 25 or over then E6 shows age and cell is blue.
What I need is when a DOB is entered in D6 under 16 years old, then D6
returns an error message -" You have Entered an Age under 16 Years - Retry!!
".
I have tried Data Validation, but cant get a message from tha as I dont know
what to set as the date validation.
I do need any 16 or 17 year olds to show as they are included in my customer
age range so they can stay white background.
If there is vba code for this then more than happy to try that as am slowly
trying to lean as much as I can
Any ideas??
Thanks in anticipation
My datedif formula is: =IF(D6="","",DATEDIF(D6,TODAY(),"Y"))