Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how do i convert a number of days to years, months & days?

I have calculated the number of days between 2 dates. Now I need to convert
this answer (number of days) to the number of years, months & days.

xxx days = x years, xx months, xxx days
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default how do i convert a number of days to years, months & days?

In Range A1:C2 (below)

Start Day End Day Difference
11/27/1944 8/22/2007 62 years, 8 months and 26 days

Cell C2 = =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & "
months and " &DATEDIF(A2,B2,"md") & " days"

Watch for wrapping of this single formula...


"SafetyLen" wrote:

I have calculated the number of days between 2 dates. Now I need to convert
this answer (number of days) to the number of years, months & days.

xxx days = x years, xx months, xxx 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
How do I convert a number into Years, Months, Days format? K. Krishna Murthi Excel Worksheet Functions 6 December 24th 06 01:29 PM
how to convert 12/10/1970 to years/months/days doctor who golf New Users to Excel 3 October 30th 06 11:12 PM
Number of years/months/days between 2 dates Deborah Excel Worksheet Functions 4 July 7th 06 11:24 AM
convert Days to Years, Months, Days Klaudebou Excel Discussion (Misc queries) 3 December 29th 05 10:33 PM
how do I convert a number to number of years, months and days because Excel Worksheet Functions 2 October 12th 05 06:15 PM


All times are GMT +1. The time now is 04:42 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"