#1   Report Post  
Posted to microsoft.public.excel.misc
Aaron
 
Posts: n/a
Default Help with SUMPRODUCT

I'm using the formula below to calculate the values in each row. Its not
working and I'm stummped as to why. Note that there are blank cells in the
ranges listed, whether or not that makes a difference I dont know. The sheet
is formatted as follows..

=SUMPRODUCT(--(MONTH(A1:A65536=7),--(B1:B65536=C1:C65536),B1:B65536)


A B C
7-JAN 10 10
12-JAN 5 8
6-MAR 4 6
22-MAR 11 11
3-May 7 9
17-MAY 8 8

I need it to calculate only the data in columns B & C that are equal and
then total that data from only column B that matches column C while breaking
it down by month.

So in the example above the correct value returned from the formula should
be

Jan 10
Mar 11
May 8

Help in what I'm doing wrong it appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Govind
 
Posts: n/a
Default Help with SUMPRODUCT

Hi,

Use

=SUMPRODUCT(--(MONTH(A2:A65536)=1),--(B2:B65536=C2:C65536),B2:B65536)
for Jan

=SUMPRODUCT(--(MONTH(A2:A65536)=3),--(B2:B65536=C2:C65536),B2:B65536)
for Mar

and so on.


regards

Govind.

Aaron wrote:
I'm using the formula below to calculate the values in each row. Its not
working and I'm stummped as to why. Note that there are blank cells in the
ranges listed, whether or not that makes a difference I dont know. The sheet
is formatted as follows..

=SUMPRODUCT(--(MONTH(A1:A65536=7),--(B1:B65536=C1:C65536),B1:B65536)


A B C
7-JAN 10 10
12-JAN 5 8
6-MAR 4 6
22-MAR 11 11
3-May 7 9
17-MAY 8 8

I need it to calculate only the data in columns B & C that are equal and
then total that data from only column B that matches column C while breaking
it down by month.

So in the example above the correct value returned from the formula should
be

Jan 10
Mar 11
May 8

Help in what I'm doing wrong it appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Help with SUMPRODUCT

You can't use the whole column.

I'd try to limit those ranges to just what you need (plus a bit more -- just in
case).



Aaron wrote:

I'm using the formula below to calculate the values in each row. Its not
working and I'm stummped as to why. Note that there are blank cells in the
ranges listed, whether or not that makes a difference I dont know. The sheet
is formatted as follows..

=SUMPRODUCT(--(MONTH(A1:A65536=7),--(B1:B65536=C1:C65536),B1:B65536)

A B C
7-JAN 10 10
12-JAN 5 8
6-MAR 4 6
22-MAR 11 11
3-May 7 9
17-MAY 8 8

I need it to calculate only the data in columns B & C that are equal and
then total that data from only column B that matches column C while breaking
it down by month.

So in the example above the correct value returned from the formula should
be

Jan 10
Mar 11
May 8

Help in what I'm doing wrong it appreciated.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default Help with SUMPRODUCT

Thanks a ton... it works.

Now, I didnt think about this before, but what if I wanted to do the same
thing only break it apart by month/year

Ex:

Jan-03 = x
Feb-03 =x
Jan-05 =x
Feb-05 =x

Thanks for the help.

"Govind" wrote:

Hi,

Use

=SUMPRODUCT(--(MONTH(A2:A65536)=1),--(B2:B65536=C2:C65536),B2:B65536)
for Jan

=SUMPRODUCT(--(MONTH(A2:A65536)=3),--(B2:B65536=C2:C65536),B2:B65536)
for Mar

and so on.


regards

Govind.

Aaron wrote:
I'm using the formula below to calculate the values in each row. Its not
working and I'm stummped as to why. Note that there are blank cells in the
ranges listed, whether or not that makes a difference I dont know. The sheet
is formatted as follows..

=SUMPRODUCT(--(MONTH(A1:A65536=7),--(B1:B65536=C1:C65536),B1:B65536)


A B C
7-JAN 10 10
12-JAN 5 8
6-MAR 4 6
22-MAR 11 11
3-May 7 9
17-MAY 8 8

I need it to calculate only the data in columns B & C that are equal and
then total that data from only column B that matches column C while breaking
it down by month.

So in the example above the correct value returned from the formula should
be

Jan 10
Mar 11
May 8

Help in what I'm doing wrong it appreciated.



  #5   Report Post  
Posted to microsoft.public.excel.misc
Govind
 
Posts: n/a
Default Help with SUMPRODUCT

Hi,

Just add one more condition for year. For eg

=SUMPRODUCT(--(MONTH(A2:A65536)=1),--(YEAR(A2:A65536)=2005),--(B2:B65536=C2:C65536),B2:B65536)

for Jan 2005

Regards

Govind.

Aaron Saulisberry wrote:
Thanks a ton... it works.

Now, I didnt think about this before, but what if I wanted to do the same
thing only break it apart by month/year

Ex:

Jan-03 = x
Feb-03 =x
Jan-05 =x
Feb-05 =x

Thanks for the help.

"Govind" wrote:


Hi,

Use

=SUMPRODUCT(--(MONTH(A2:A65536)=1),--(B2:B65536=C2:C65536),B2:B65536)
for Jan

=SUMPRODUCT(--(MONTH(A2:A65536)=3),--(B2:B65536=C2:C65536),B2:B65536)
for Mar

and so on.


regards

Govind.

Aaron wrote:

I'm using the formula below to calculate the values in each row. Its not
working and I'm stummped as to why. Note that there are blank cells in the
ranges listed, whether or not that makes a difference I dont know. The sheet
is formatted as follows..

=SUMPRODUCT(--(MONTH(A1:A65536=7),--(B1:B65536=C1:C65536),B1:B65536)


A B C
7-JAN 10 10
12-JAN 5 8
6-MAR 4 6
22-MAR 11 11
3-May 7 9
17-MAY 8 8

I need it to calculate only the data in columns B & C that are equal and
then total that data from only column B that matches column C while breaking
it down by month.

So in the example above the correct value returned from the formula should
be

Jan 10
Mar 11
May 8

Help in what I'm doing wrong it appreciated.



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
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
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 11:00 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"