Why does this SumProduct get a Value error?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,691
Office Version
  1. 365
Platform
  1. Windows
Can anyone tell me why the Avg 2 column gets a value error. It seems to me that it should be the same as the one in the Avg 1 column. And a different version in e# also gets a value error. But the one in E6 works. Is SumProduct not capable of multiplying a horizontal range and a vertical one?

SumProduct.xlsx
BCDEFGH
2WeightRanks
31Rank 1#VALUE!
41Rank 2
51Rank 31111
61Rank 46
74Weight sum
8
9TeamAvg 2Avg 1Rank 1Rank 2Rank 3Rank 4
10A#VALUE!1.501212
11B#VALUE!2.252133
12C#VALUE!2.503421
13D#VALUE!3.754344
Table Columns
Cell Formulas
RangeFormula
E3E3=SUMPRODUCT(E10:H10,B3:B6)
E6E6=SUMPRODUCT(E10:H10,E5:H5)
B7B7=SUM(Weights)
C10:C13C10=SUMPRODUCT(Table1[@[Rank 1]:[Rank 4]],Weights)/WtSum
D10:D13D10=([@[Rank 1]]*WtRank1 + [@[Rank 2]]*WtRank2 + [@[Rank 3]]*WtRank3 + [@[Rank 4]]*WtRank4) / WtSum
Named Ranges
NameRefers ToCells
'Table Columns'!Weights=OFFSET('Table Columns'!WtHdr,1,0):OFFSET('Table Columns'!WtSum,-1,0)B7, E3, C10:D13
'Table Columns'!WtHdr='Table Columns'!$B$2C10:C13, B7
'Table Columns'!WtRank1='Table Columns'!$B$3B7, E3, C10:D13
'Table Columns'!WtRank2='Table Columns'!$B$4B7, E3, C10:D13
'Table Columns'!WtRank3='Table Columns'!$B$5B7, E3, C10:D13
'Table Columns'!WtRank4='Table Columns'!$B$6B7, E3, C10:D13
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I got it to work with Transpose. I thought I tried it and failed, but now it works. Sorry for the bother.

SumProduct.xlsx
BCDEFGH
2WeightRanks
31Rank 1
41Rank 2
51Rank 3
61Rank 4
74Weight sum
8
9TeamAvg 2Avg 1Rank 1Rank 2Rank 3Rank 4
10A1.501.501212
11B2.252.252133
12C2.502.503421
13D3.753.754344
Table Columns
Cell Formulas
RangeFormula
B7B7=SUM(Weights)
C10:C13C10=SUMPRODUCT(Table1[@[Rank 1]:[Rank 4]],TRANSPOSE(Weights))/WtSum
D10:D13D10=([@[Rank 1]]*WtRank1 + [@[Rank 2]]*WtRank2 + [@[Rank 3]]*WtRank3 + [@[Rank 4]]*WtRank4) / WtSum
Named Ranges
NameRefers ToCells
'Table Columns'!Weights=OFFSET('Table Columns'!WtHdr,1,0):OFFSET('Table Columns'!WtSum,-1,0)B7, C10:D13
'Table Columns'!WtHdr='Table Columns'!$B$2C10:C13, B7
'Table Columns'!WtRank1='Table Columns'!$B$3B7, C10:D13
'Table Columns'!WtRank2='Table Columns'!$B$4B7, C10:D13
'Table Columns'!WtRank3='Table Columns'!$B$5B7, C10:D13
'Table Columns'!WtRank4='Table Columns'!$B$6B7, C10:D13
 
Upvote 0
That bullet point just says that it cannot do it.
The bullet point tells you why you got the #VALUE, which is your thread title and your initial question that I quoted in my post & the one I was providing an answer to.
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,919
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top