ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i convert a number of days to years, months & days? (https://www.excelbanter.com/excel-discussion-misc-queries/155381-how-do-i-convert-number-days-years-months-days.html)

SafetyLen

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

Jim May

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



All times are GMT +1. The time now is 09:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com