LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default years-months-days-hours

See my second reply (at 22:17 last night), with a revised solution. The
problem with my first formula was that it was confusing months and minutes,
and I think that Mike fell into the same trap (& again spotted it and
commented to that effect in another message at 22:17). Unfortunately Excel
uses mm as the abbreviation for both months and minutes. :-)
--
David Biddulph

"Raz" wrote in message
...
Thanks David,
this is what Mike gave as well, but my minutes not calculating right, no
matter what date/hours i put, its calculating 1 or 01 minutes. any idea
why?



"David Biddulph" wrote:

=DATEDIF(A1,A2,"y")&" years, "&DATEDIF(A1,A2,"ym")&" months,
"&DATEDIF(A1,A2,"md")&" days, "&TEXT(A2-A1,"hh")&" hours,
"&TEXT(A2-A1,"mm")&" minutes, "&TEXT(A2-A1,"ss")&" seconds"
--
David Biddulph

"Raz" wrote in message
...
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




.





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting days to years & months & days oldLearner57 Excel Discussion (Misc queries) 4 October 2nd 09 01:57 PM
convert # of years, months and days catrrmg Excel Discussion (Misc queries) 4 February 1st 08 03:42 PM
how do i convert a number of days to years, months & days? SafetyLen Excel Discussion (Misc queries) 1 August 23rd 07 01:34 AM
convert Days to Years, Months, Days Klaudebou Excel Discussion (Misc queries) 3 December 29th 05 10:33 PM
SUM Days (to 30), Months (to 12) and Years an Excel Worksheet Functions 5 November 23rd 05 02:20 PM


All times are GMT +1. The time now is 09:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"