Number of Months Counts

  • Thread starter Thread starter Jalal
  • Start date Start date
J

Jalal

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.
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top