Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
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.


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
Help with changing a formula JBoyer Excel Worksheet Functions 4 August 25th 08 12:16 PM
how to edit formula without changing formula of each cell sadat Excel Worksheet Functions 2 April 24th 07 02:02 PM
Changing Formula Secret Squirrel Excel Discussion (Misc queries) 4 March 13th 07 08:10 PM
Changing a Formula Skip Excel Worksheet Functions 1 August 13th 06 11:49 PM
Copy Formula Down Without Changing Entire Formula roy.okinawa Excel Discussion (Misc queries) 3 March 16th 06 01:54 AM


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

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

About Us

"It's about Microsoft Excel"