Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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) "jimmy" wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=datedif(a1,a2,"y")& "years, "&datedif(a1,a2,"ym")&"months,
"&datedif(a1,a2,"md")&" days." hth regards from Brazil Marcelo "jimmy" escreveu: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort by Month and Year | Excel Discussion (Misc queries) | |||
Dates of a Day for a month & year cell formulas | Excel Discussion (Misc queries) | |||
How sort dates just by day/month and NOT year if all 3 given in ce | Excel Worksheet Functions | |||
How to sort by day and month while ignoring year? | Excel Worksheet Functions | |||
Insert Month and Year in my worksheet | Excel Worksheet Functions |