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  

Changing a Formula



 
 
Thread Tools Display Modes
  #1  
Old September 18th, 2008, 03:07 PM posted to microsoft.public.excel.worksheet.functions
Mark
external usenet poster
 
Posts: 1,534
Default Changing a Formula

I am using the following formula to add up a series of cells by a specific
month. The formula is:
=SUMPRODUCT((MONTH(RBS!A$2:A$1038)=5)*(RBS!N$2:O$1 038))

I now wish to add up the cells by month and year. For example April 08, May
08 etc.

Thank you.
  #2  
Old September 18th, 2008, 03:50 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Changing a Formula

Include a YEAR() test as well as your MONTH() test.
--
David Biddulph

"Mark" wrote in message
...
I am using the following formula to add up a series of cells by a specific
month. The formula is:
=SUMPRODUCT((MONTH(RBS!A$2:A$1038)=5)*(RBS!N$2:O$1 038))

I now wish to add up the cells by month and year. For example April 08,
May
08 etc.

Thank you.



  #3  
Old September 18th, 2008, 03:54 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Changing a Formula

You can do that like this:

=SUMPRODUCT((YEAR(RBS!A$2:A$1038)=2008)*(MONTH(RBS !A$2:A$1038)=4)*(RBS!
N$2:O$1038))

for April 2008.

Hope this helps.

Pete

On Sep 18, 3:07*pm, Mark wrote:
I am using the following formula to add up a series of cells by a specific
month. The formula is:
=SUMPRODUCT((MONTH(RBS!A$2:A$1038)=5)*(RBS!N$2:O$1 038))

I now wish to add up the cells by month and year. For example April 08, May
08 etc.

Thank you.


 




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