#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Terry Bennett
 
Posts: n/a
Default Time formatiing

I need to express a period of time in terms of years, months and days.

The formula will be something like: TODAY()-A1

Obviously, I can divide by 365.26 to get the number of years but how can I
convert the decimal element into months/days?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Time formatiing

Assuming here

=DATEDIF(A1,TODAY(),"y")&" Year(s), "&DATEDIF(A1,TODAY(),"ym")&" Month(s)
and "&DATEDIF(A1,TODAY(),"md")&" Day(s)"

for info on DATEDIF see:

http://www.cpearson.com/excel/datedif.htm

--
Regards,

Peo Sjoblom

(No private emails please)


"Terry Bennett" wrote in message
...
I need to express a period of time in terms of years, months and days.

The formula will be something like: TODAY()-A1

Obviously, I can divide by 365.26 to get the number of years but how can I
convert the decimal element into months/days?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Terry Bennett
 
Posts: n/a
Default Time formatiing

Looks good! Many thanks.

"Peo Sjoblom" wrote in message
...
Assuming here

=DATEDIF(A1,TODAY(),"y")&" Year(s), "&DATEDIF(A1,TODAY(),"ym")&" Month(s)
and "&DATEDIF(A1,TODAY(),"md")&" Day(s)"

for info on DATEDIF see:

http://www.cpearson.com/excel/datedif.htm

--
Regards,

Peo Sjoblom

(No private emails please)


"Terry Bennett" wrote in message
...
I need to express a period of time in terms of years, months and days.

The formula will be something like: TODAY()-A1

Obviously, I can divide by 365.26 to get the number of years but how can
I convert the decimal element into months/days?




Reply
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
Entering Times Denise Excel Discussion (Misc queries) 9 November 15th 05 04:57 PM
Imported Date & Time format with calcs. managed in excel from imrp Todd F. Excel Worksheet Functions 0 July 8th 05 09:03 PM
time differences in a column 68magnolia71 Excel Worksheet Functions 3 May 9th 05 09:46 PM
Accumulate weekly time to total time in Excel. delve Excel Discussion (Misc queries) 0 May 4th 05 08:14 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM


All times are GMT +1. The time now is 07:18 PM.

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

About Us

"It's about Microsoft Excel"