Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Is there are easy way to tell the number of months between two dates (such as Mar-2003 and June-2005). Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In VBA, look at the DateDiff function.
-- Regards, Tom Ogilvy "Bill" wrote in message nk.net... Hello, Is there are easy way to tell the number of months between two dates (such as Mar-2003 and June-2005). Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=(year(second date)-year(first date))*12+(month(second
date)-month(first date)) Substitute real dates for the 'first date" and "second date", of course. ---- Nick Hebb BreezeTree Software http://www.breezetree.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could write a function for it or use what the help gives as an example.
=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3) |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can find lots of info at Chip Pearson's site:
http://www.cpearson.com/excel/datedif.htm (=datedif() was only documented in xl2k's help.) Bill wrote: Hello, Is there are easy way to tell the number of months between two dates (such as Mar-2003 and June-2005). Thanks. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
3 months prior and 3 months post a date | Excel Worksheet Functions | |||
Adding months to dates should account for 28-30-31 day months | Excel Worksheet Functions | |||
converting months to years and months??? | Excel Discussion (Misc queries) | |||
How do i change 15 months to read 1 year and 3 months? | Excel Discussion (Misc queries) | |||
Dates to months and calculating values for their months | Excel Programming |