years-months-days-hours
Hmm,
I didn't test the time parts well enough, ignore those
Mike
"Mike H" wrote:
Hi,
Try these which assume dates/times in a1 & A2
=DATEDIF(A1,A2,"y")&" Years"
=DATEDIF(A1,A2,"ym")&" Months"
=DATEDIF(A1,A2,"md")&" Days"
=TEXT(A2-A1,"ss")& " Hours"
=TEXT(A2-A1,"m")& " Minutes"
=TEXT(A2-A1,"s")&" Seconds"
They can all be concatenated into a single cell if you want
=DATEDIF(A1,A2,"y")&" Years " & DATEDIF(A1,A2,"ym")&" Months " etc
Mike
"Raz" wrote:
can anyone tell me how to do this, might be very simple. thanks in advance
i have two dates/time in this format mm/dd/yyyy hh:mm:ss
17/10/2001 12:35:20
21/12/2009 09:40:00
on another cell I would like the difference between these two dates in this
format.
8 years, 11 months, 24 days, 00 hours, 20 min, 23 seconds.
or each in a different cell like these:
8 years
11 months
24 days
00 hours
20 min
23 seconds
|