Calculating Years, Months & Days

P

Phillip Holdsworth

I want to calculate a period of time between two dates
and return a number in years, months and days in a single
cell, taking account of leap years.

Can anyone tell me how this could be done.

Thanks.
 
P

Peo Sjoblom

With a few exceptions this will work

=DATEDIF(A1,B1,"y")&" year(s), "&DATEDIF(A1,B1,"ym")&" month(s) and
"&DATEDIF(A1,B1,"md")&" day(s)"

where A1 is the start date and B1 the end date

for the exceptions make a google search on DATEDIF
 

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