Getting 106 for Birthday Formula

D

doblesb

I have created a form in excel which has a place for the person's date
of birth(DOB). When I enter the DOB the year shows up in the "age"
space. I am using the formula, =DATEDIF(E6, NOW(),"y")&"", in the "age"
space to create the correct age.

Here's my problem, when I do not have a DOB the number 106 shows up in
the "age" space. How can I stop this from happening?

Thanks in advance,

Steve
 
F

Fred Smith

Put your formula in an IF statement, as in:

=if(e6="","",datedif(e6,now(),"y"))

Does this help?
 
Top