Month Counter

G

Guest

Does anyone know how to count months between two dates. I want to be able to
go beyond 12 months. 01/01/2005 - 01/01/2004 = 13 months.

Month(Date2)- Month(Date1) = will only give me answers from 1 to 12


I was originally using the formula :
INT(Date2-Date1/28). But this does not hold longer term.

This formula works but is ugly:
Month(Date2)-Month(Date1)*12(Year(Date2)-Year(Date1))

Any thoughts on a simpler formula would be appreciated
 
A

Arvi Laanemets

Hi

=DATEDIF(Date1, Date2, "M")
(but there may be minor problems with some date combinations)
 
Z

Zorba.Eisenhower

Try this formula:

=12*(YEAR(A2)-YEAR(A1))+(MONTH(A2)-MONTH(A1))

Pip pip
Zorba Eisenhower
 

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

Top