Calcualating age by month day and year

C

CandiCorn5000

I am trying to calculate the age of employees on the date of the injury...not
just by the year. I have been trying this formula...

=DateDiff("yyyy",[DOB],[Date of Injury])+(Format([DOB],"mmdd")>Format[Date
of Injury],"mmdd"))

any suggestions?
 
J

John W. Vinson

I am trying to calculate the age of employees on the date of the injury...not
just by the year. I have been trying this formula...

=DateDiff("yyyy",[DOB],[Date of Injury])+(Format([DOB],"mmdd")>Format[Date
of Injury],"mmdd"))

any suggestions?

You want the age in the form 31 years, 2 months, 6 days? If so try Graham
Seach's Diff2Dates function as posted by Doug Steele:

http://www.accessmvp.com/djsteele/Diff2Dates.html
 

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

Top