I need to find out the YEAR, MONTH, DAY between two dates

G

Guest

I need to find out the YEAR, MONTH, DAY between two dates. for example:
A1:19/05/05 and A2: 30/06/06. How can I have to difference in year, month,
day.
If 0 year, automatically the result must be run out in month, day and so on.

Please send me the formula.

Thanks
 
B

Bob Phillips

=DATEDIF(A1,A2,"Y")

=DATEDIF(A1,A2,"YM")

=DATEDIF(A1,A2,"MD")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

=datedif(a1,a2,"y")& "years, "&datedif(a1,a2,"ym")&"months,
"&datedif(a1,a2,"md")&" days."

hth
regards from Brazil
Marcelo

"jimmy" escreveu:
 

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