Sumproduct workaround

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
375
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Wondering if there is a workaround for a sumproduct formula where I wouldnt have an equal array size. In the below, obviously it is erroring out due to the 5. Unfortunately, putting 5 in C32:C35 isn't an option, but I'd still like to calculate the sumproduct of A*B*5.

Is there a way to get around this issue? Thank you so much for any help.

=SUMPRODUCT(A32:A35,B32:B35,5/SUM(A32:A35))
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Is this what you're looking for?

erniepoe
ABCD
325230
33104
34156
35208
Sheet7
Cell Formulas
RangeFormula
D32D32=SUMPRODUCT(A32:A35,B32:B35,INDEX(5/SUM(A32:A35),SEQUENCE(ROWS(A32:A35),,,0)))
 
Upvote 0
SumProduct2022a.xlsm
ABCD
3211022
332522
3434
3543
7c
Cell Formulas
RangeFormula
D32D32=SUMPRODUCT(A32:A35,B32:B35)*5/SUM(A32:A35)
D33D33=SUMPRODUCT(A32:A35*B32:B35*5)/SUM(A32:A35)


It would be helpful if you posted the information with the forum's tool named XL2BB.

What is the expected result?
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,231
Members
449,091
Latest member
jeremy_bp001

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