#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default sumproduct

I am using this function: =sumproduct((month(B5:B412)=1*D5:D412)

I can't get this function to work with Feburary, March....ect.

Basically I want "if B5:B412's date is January then add the cells in D5:D412
with the sum the D cells "answer" in cell E2"
Same with February, only answer in F2
Same with March, only answer in G2

What am I doing wrong?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default sumproduct

You're very close, just missing a couple parenthesis.

=SUMPRODUCT((MONTH(B5:B412)=1)*(D5:D412))

HTH,
Elkar


"RGlade" wrote:

I am using this function: =sumproduct((month(B5:B412)=1*D5:D412)

I can't get this function to work with Feburary, March....ect.

Basically I want "if B5:B412's date is January then add the cells in D5:D412
with the sum the D cells "answer" in cell E2"
Same with February, only answer in F2
Same with March, only answer in G2

What am I doing wrong?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default sumproduct

Thank you very much. It worked.

"Elkar" wrote:

You're very close, just missing a couple parenthesis.

=SUMPRODUCT((MONTH(B5:B412)=1)*(D5:D412))

HTH,
Elkar


"RGlade" wrote:

I am using this function: =sumproduct((month(B5:B412)=1*D5:D412)

I can't get this function to work with Feburary, March....ect.

Basically I want "if B5:B412's date is January then add the cells in D5:D412
with the sum the D cells "answer" in cell E2"
Same with February, only answer in F2
Same with March, only answer in G2

What am I doing wrong?


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
Need help with sumproduct and dynamic ranges Bill_S Excel Worksheet Functions 2 March 19th 06 01:19 AM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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

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"