J Jalal Feb 23, 2008 #1 Would like to know the function that returns the number of months, for example to return 20 for the months from Feb-2008 to Sep-2009.
Would like to know the function that returns the number of months, for example to return 20 for the months from Feb-2008 to Sep-2009.
B Bernard Liengme Feb 23, 2008 #2 Have a look at DATEDIF. This is undocumented but Chip tells all at www.cpearson.com best wishes
R Rick Rothstein \(MVP - VB\) Feb 23, 2008 #3 And if you weren't aware of the DATEDIF function that Bernard referred you to, you could always do it the long way... =12*(YEAR(B10)-YEAR(A10))+MONTH(B10)-MONTH(A10)+1 where it is assumed your begin date is in A1 and your end date is in B1. Rick
And if you weren't aware of the DATEDIF function that Bernard referred you to, you could always do it the long way... =12*(YEAR(B10)-YEAR(A10))+MONTH(B10)-MONTH(A10)+1 where it is assumed your begin date is in A1 and your end date is in B1. Rick
J Jalal Feb 23, 2008 #4 Thanks guys. Rick Rothstein (MVP - VB) said: And if you weren't aware of the DATEDIF function that Bernard referred you to, you could always do it the long way... =12*(YEAR(B10)-YEAR(A10))+MONTH(B10)-MONTH(A10)+1 where it is assumed your begin date is in A1 and your end date is in B1. Rick Click to expand...
Thanks guys. Rick Rothstein (MVP - VB) said: And if you weren't aware of the DATEDIF function that Bernard referred you to, you could always do it the long way... =12*(YEAR(B10)-YEAR(A10))+MONTH(B10)-MONTH(A10)+1 where it is assumed your begin date is in A1 and your end date is in B1. Rick Click to expand...