Hello,
I am stuck. I need to calculate the number of months between two sets of dates: for example
5/08/2008-todays date 1/23/2009=
Please help.
Thanks
Cindy
Hello,
I am stuck. I need to calculate the number of months between two sets of dates: for example
5/08/2008-todays date 1/23/2009=
Please help.
Thanks
Cindy
Hi
For complete months use "Date one minus Date two" and format using Custom format as "MM", providing it is not more than one year.
Regards
Jeff
In most cases it is more than one year...How would I modify the formula?
Hi
Sorry I should have added
If your dates are in the relevant cells.Please Login or Register to view this content.
Regards
Jeff
That worked out great. But now Im being asked to show "x years, x months, x days". I know, I know this should be really easy to figure out...
A1: start
A2: end
A3: =A2-A1
A3 custom format of: y "Years, " m "Months & " d "Days"
(note you may need to add 1 to A3 result if dates are to be seen as inclusive).
EDIT: disregard -- safer to adopt DATEDIF as outlined by arthurbr and prior post... note though that earliest date should be listed first (the below is I suspect the opposite way around for you in reality - ie TODAY() > start date)
Last edited by DonkeyOte; 01-23-2009 at 04:38 PM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Try =DATEDIF(TODAY(),a1,"y")&" years "&DATEDIF(TODAY(),a1,"ym")&" months "&DATEDIF(TODAY(),a1,"md")&" days"
I still cant get it to work. I have changed the cells to reflect the ones in my spreadsheet. I cant upload my attachment so here is a summary of what i have on my spread sheet:
I4= 05/28/2008 the day the person began at a location
J4= 01/23/2009 todays date
K4= calculated the amount of time in x years, x months, x days (the amount of time the person has been at a location)
HI
With DATEDIF the first value is the startdate, so if you change around cell A1 and Today() the function should be okay.
Regards
Jeff
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks