SUMPRODUCT including range and static values within

mike212

New Member
Joined
Aug 30, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
A basic sumproduct might look something like this with range a1:a3 and b1:b3. I'd like to do a variation of this where instead I reference a range for the first part but then substitute in static values for the second part (the b1:b3 part).

If I want to substitute in the array of values 3,2,1 then my guess to how this would look is:
=SUMPRODUCT(A1:A3,{3,2,1})
Based on the #VALUE! error I can see that my syntax is wrong if this is even possible. Google just leads me down the path of array formulas which isn't what I want. The result of the formula isn't an array, just an input. Is it possible to do what I want to do?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
try the following Since you have 365, the sum may be what you require,

SumProduct2022.xlsm
AB
1103
2202
3301
4
5100
6100
7100
8
6b
Cell Formulas
RangeFormula
A5A5=SUMPRODUCT(A1:A3,B1:B3)
A6A6=SUMPRODUCT(A1:A3,{3;2;1})
A7A7=SUM(A1:A3*{3;2;1})
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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