#1   Report Post  
ExcelMonkey
 
Posts: n/a
Default Month Counter

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
  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

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

--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )



"ExcelMonkey" wrote in message
...
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



  #3   Report Post  
 
Posts: n/a
Default

Try this formula:

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

Pip pip
Zorba Eisenhower

ExcelMonkey wrote:
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP - need to returns the current number of past month this year and ... elz64 Excel Worksheet Functions 6 April 6th 05 01:37 PM
Add one month to the previuos month heater Excel Discussion (Misc queries) 5 February 10th 05 12:33 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Accounting Month vs. Calendar Month JN Excel Worksheet Functions 4 January 31st 05 08:09 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM


All times are GMT +1. The time now is 07:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"