I want to convert the number of days calculated into the number of months, days and years
For example:
Cell A1 = February 18 2007
Cell A2 = November 20 2011
If I am going to subtract A2 to A1, the result in A3 must be in days.
Thanks
I want to convert the number of days calculated into the number of months, days and years
For example:
Cell A1 = February 18 2007
Cell A2 = November 20 2011
If I am going to subtract A2 to A1, the result in A3 must be in days.
Thanks
Last edited by bokals; 11-20-2011 at 01:41 PM.
How are the cells that contain the date formatted? is it text with the date typed as shown?
If so, then you need to convert the text to dates as follows:
Under Data, select "Text to Columns"
Select Delimited then next
Select Tab then next
Select Date, MDY then Finish
Then you can simply subtract the two dates
Last edited by optomyst; 11-20-2011 at 01:38 PM. Reason: Updated with alternate answer
For the result in years, months and days try this formula
=DATEDIF(A1,B1,"y")&" years "&DATEDIF(A1,B1,"ym")&" months "&DATEDIF(A1,B1,"md")
&" days"
as suggested here
Audere est facere
just change the format of results column to number from date
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks