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


Hi,
I have a formula :
=SUMPRODUCT((('Totals'!$A$5:$A$11=J5:J11)*('Totals '!$B$5:$M$11)))
but it only returns the values for J5 J8 and J9, not 6, 7, 10 or 11, as
you would expect it to do. I have checked and the values it is looking
up are accurate (they work individually). Is this a problem with
sumproduct or am I just being a bit dim?

Thanks


--
sanders
------------------------------------------------------------------------
sanders's Profile: http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=572127

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


"sanders" ha scritto
nel messaggio ...

Hi,
I have a formula :
=SUMPRODUCT((('Totals'!$A$5:$A$11=J5:J11)*('Totals '!$B$5:$M$11)))
but it only returns the values for J5 J8 and J9, not 6, 7, 10 or 11, as
you would expect it to do. I have checked and the values it is looking
up are accurate (they work individually). Is this a problem with
sumproduct or am I just being a bit dim?

Thanks


Hi Sanders,

The SUMPRODUCT function needs arrays of the same numbers of elements, but
you ar multiplying an array of 7 (7 rows * 1 column) elements
('Totals'!$A$5:$A$11=J5:J11) by an array of 84 (7 rows * 12 column) elements
('Totals'!$B$5:$M$11), so it's right that the result is not what you
think... You have to fix the two arrray to have the same number of
elements... Check the on line help.

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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


Thanks for the quick response. I tested out what you suggested and
modified the formula to read:
=SUMPRODUCT((('Totals'!$A$5:$A$11=J5:J11)*('Totals '!$B$5:$B$11)))
So it is only looking at one column of 7 at a time. But it is still
only adding together the corresponding values in the B column for J5,
9, 10 and 11. Any ideas why this would be happening?

Thanks again



Franz Verga Wrote:
"sanders" ha
scritto
nel messaggio
...

Hi,
I have a formula :
=SUMPRODUCT((('Totals'!$A$5:$A$11=J5:J11)*('Totals '!$B$5:$M$11)))
but it only returns the values for J5 J8 and J9, not 6, 7, 10 or 11,

as
you would expect it to do. I have checked and the values it is

looking
up are accurate (they work individually). Is this a problem with
sumproduct or am I just being a bit dim?

Thanks


Hi Sanders,

The SUMPRODUCT function needs arrays of the same numbers of elements,
but
you ar multiplying an array of 7 (7 rows * 1 column) elements
('Totals'!$A$5:$A$11=J5:J11) by an array of 84 (7 rows * 12 column)
elements
('Totals'!$B$5:$M$11), so it's right that the result is not what you
think... You have to fix the two arrray to have the same number of
elements... Check the on line help.

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



--
sanders
------------------------------------------------------------------------
sanders's Profile: http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=572127

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Sumproduct

=SUMPRODUCT((ISNUMBER(MATCH(J5:J11,Totals!$A$5:$A$ 11,0)))*(Totals!$B$5:$M$11
))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"sanders" wrote in
message ...

Hi,
I have a formula :
=SUMPRODUCT((('Totals'!$A$5:$A$11=J5:J11)*('Totals '!$B$5:$M$11)))
but it only returns the values for J5 J8 and J9, not 6, 7, 10 or 11, as
you would expect it to do. I have checked and the values it is looking
up are accurate (they work individually). Is this a problem with
sumproduct or am I just being a bit dim?

Thanks


--
sanders
------------------------------------------------------------------------
sanders's Profile:

http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=572127



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


Brilliant! That works a treat. Thanks for all your help.


--
sanders
------------------------------------------------------------------------
sanders's Profile: http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=572127

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 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
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 06:44 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"