A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel 97 - finding No. of Months between 2 date ranges



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2003, 05:39 PM
RoyB
external usenet poster
 
Posts: n/a
Default Excel 97 - finding No. of Months between 2 date ranges

Hi

I need to find how to work out the total number of months
where I have a list of fixed start and end dates, always
beging on the first day and end on the last day of a
calendar month;

Start - 01/02/03
End - 30/09/09

The number needs to be returned as an integer ranging
between 1 and 12, though I'll be working on quarters, so
the number will be between 0 and 3 maximum...any ideas?

Thanks
  #2  
Old September 18th, 2003, 01:34 AM
acw
external usenet poster
 
Posts: n/a
Default Excel 97 - finding No. of Months between 2 date ranges

Roy

One way is to use the YEARFRAC function. This can then be
multiplied by 12 to get the number of months. You can put
in different options to work out the number of days in the
month, days in year (30/360 etc).

Alternatively you can do the same sort of thing by
subtracting the 2 dates, divide by 365 and then mulitply
by 12. Again it will provide the number of months which
can be rounded to suit (there can be 7 or 8 months between
February and September depending on whether you count the
first month or not).


Tony
-----Original Message-----
Hi

I need to find how to work out the total number of months
where I have a list of fixed start and end dates, always
beging on the first day and end on the last day of a
calendar month;

Start - 01/02/03
End - 30/09/09

The number needs to be returned as an integer ranging
between 1 and 12, though I'll be working on quarters, so
the number will be between 0 and 3 maximum...any ideas?

Thanks
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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