Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Calculating the number of months

I have a column for start date and end date. I would like a formular that
tells me how many months it is including the start month and end month.

ex. Start date: 11/1/2009 end date: 4/1/2010 this would be 6 months if you
include November and April.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Calculating the number of months

hi
assuming that start date is in A1 and end date is in b1....
=DATEDIF(A1,B1,"m")+1

regards
FSt1

"Philangr8" wrote:

I have a column for start date and end date. I would like a formular that
tells me how many months it is including the start month and end month.

ex. Start date: 11/1/2009 end date: 4/1/2010 this would be 6 months if you
include November and April.

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Calculating the number of months

forgot to add
format as general

regards
FSt1

"Philangr8" wrote:

I have a column for start date and end date. I would like a formular that
tells me how many months it is including the start month and end month.

ex. Start date: 11/1/2009 end date: 4/1/2010 this would be 6 months if you
include November and April.

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Calculating the number of months

Wouldn't that return 1 month if the dates were 20 May and 10 Jun? Doesn't
the OP want to include both months?

Mightn't he want
=DATEDIF(DATE(YEAR(A1),MONTH(A1),1),DATE(YEAR(B1), MONTH(B1),1),"m")+1 ?
--
David Biddulph


"FSt1" wrote in message
...
forgot to add
format as general

regards
FSt1

"Philangr8" wrote:

I have a column for start date and end date. I would like a formular that
tells me how many months it is including the start month and end month.

ex. Start date: 11/1/2009 end date: 4/1/2010 this would be 6 months if
you
include November and April.

Thanks in advance



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
Calculating last 3 months Nick Excel Discussion (Misc queries) 1 June 10th 08 10:56 AM
Calculating months with half months. adelaide Excel Discussion (Misc queries) 1 June 6th 08 08:36 PM
Excel for calculating stock cover based on a number of months sale DubaiGeorge Excel Worksheet Functions 2 November 1st 07 05:21 PM
What is the formula for calculating the number of months passed? Teri Excel Worksheet Functions 5 March 9th 06 02:05 AM
calculating number of months from today JNW Excel Worksheet Functions 5 September 15th 05 10:01 PM


All times are GMT +1. The time now is 06:49 PM.

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"