Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I'm using this formula to count months: =DATEDIF(a1,TODAY(),"m")+1, but I
cannot count September and October.... any clue |
#2
![]() |
|||
|
|||
![]()
On Thu, 25 Aug 2005 12:40:04 -0700, Farrel
wrote: I'm using this formula to count months: =DATEDIF(a1,TODAY(),"m")+1, but I cannot count September and October.... any clue To not count Sep and Oct, try this **array** formula: =DATEDIF(A1,TODAY(),"m")+1-SUM( --(MONTH(DATE(YEAR(A1),MONTH(A1)+ ROW(INDIRECT("1:"&DATEDIF( A1,TODAY(),"m")+1))-1,1))={9,10})) To enter an array formula, after typing/pasting it in, hold down <ctrl<shift while hitting <enter. Excel will place braces {...} around the formula. The result should be as accurate as the results of the DATEDIF formula. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
months between 2 dates!!! | Excel Discussion (Misc queries) | |||
Counting months | Excel Worksheet Functions | |||
Why "datedif" function results sometimes negative numbers? | Excel Worksheet Functions | |||
Calculate number of months between 2 dates | New Users to Excel | |||
How do i change 15 months to read 1 year and 3 months? | Excel Discussion (Misc queries) |