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  

counting months from dates



 
 
Thread Tools Display Modes
  #1  
Old March 31st, 2004, 01:13 AM
newbie
external usenet poster
 
Posts: n/a
Default counting months from dates

PERSON: Dave PRJ A
Col. b Col. c Col M
row18 4/1/2004 5/1/2004 50%
row19 5/1/2004 2/1/2005 10%
row20 2/1/2005 4/1/2005
row21 4/1/2005 9/1/2005 10%

I am trying to calculate the number of months between
4/1/2004 to 9/1/2005 but if there is no value or 0 in
Collumn M then to exclude counting those associated months
e.g. in this case period 2/1/2005 to 4/1/2005.

Thanks in advance!


  #2  
Old March 31st, 2004, 07:11 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default counting months from dates

Hi
try the following (works only for complete months)
=SUMPRODUCT((M1:M100"")*(M1:M1000),(MONTH(C1:C 100)-MONTH(B1:B100)))


--
Regards
Frank Kabel
Frankfurt, Germany

"newbie" schrieb im Newsbeitrag
...
PERSON: Dave PRJ A
Col. b Col. c Col M
row18 4/1/2004 5/1/2004 50%
row19 5/1/2004 2/1/2005 10%
row20 2/1/2005 4/1/2005
row21 4/1/2005 9/1/2005 10%

I am trying to calculate the number of months between
4/1/2004 to 9/1/2005 but if there is no value or 0 in
Collumn M then to exclude counting those associated months
e.g. in this case period 2/1/2005 to 4/1/2005.

Thanks in advance!



 




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 01: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.