Getting 106 for Birthday Formula

  • Thread starter Thread starter doblesb
  • Start date Start date
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
 
Put your formula in an IF statement, as in:

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

Does this help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top