Use
=Datedif(<<Beginning Date>>,<<Ending Date>>,"D")
for calculating difference in days,
=Datedif(<<Beginning Date>>,<<Ending Date>>,"M")
for calculating difference in months,
=Datedif(<<Beginning Date>>,<<Ending Date>>,"Y")
for calculating difference in years.
the main problem with DATEDIF is Microsoft doesn't document it (except in
version 2000).
But in your case Dave's solution is shorter.
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.