Changing a Formula

M

Mark

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$1038))

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

Thank you.
 
P

Pete_UK

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top