#1   Report Post  
Farrel
 
Posts: n/a
Default Counting Months

I'm using this formula to count months: =DATEDIF(a1,TODAY(),"m")+1, but I
cannot count September and October.... any clue
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

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
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
months between 2 dates!!! speary Excel Discussion (Misc queries) 1 August 19th 05 03:22 PM
Counting months Aaron Howe Excel Worksheet Functions 5 July 11th 05 07:35 PM
Why "datedif" function results sometimes negative numbers? Ambrosiy Excel Worksheet Functions 1 July 8th 05 11:29 AM
Calculate number of months between 2 dates john liem New Users to Excel 4 June 1st 05 02:08 PM
How do i change 15 months to read 1 year and 3 months? Marty Excel Discussion (Misc queries) 1 February 17th 05 11:21 PM


All times are GMT +1. The time now is 05:39 AM.

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

About Us

"It's about Microsoft Excel"