Inverse SUMPRODUCT?

Moosles

New Member
Joined
Apr 1, 2021
Messages
23
Office Version
  1. 2019
Platform
  1. Windows
I'm probably missing something obvious here but I can't seem to work this out for the life of me. I have a target value that I am looking to aim for, and I have 2 variables which I want to apply proportionally to get a weighted average of that target value.

i.e. I have a target of 5.5, and variables of 2 and 6. I want to know how much of each variable I need to use in order to obtain a weighted average of the target value. In this case the ratio of Variable 1 to Variable 2 is 1:7, but I found this through trial and error applying a weighted SUMPRODUCT
Excel Formula:
=SUMPRODUCT(A2:B2,A3:B3)/SUM(A3:B3)
and manually adjusting the percentages rather than any kind of formulaic approach.

Variable 1Variable 2
26
12.5%87.5%

I would like to find a formula that tells me what the % would need to be for A3 and B3 in order to obtain a weighted average. Is this possible?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Are you only going to have two variables? I haven't done this sort of algebra in a while, but I can give it my best.
 
Upvote 0
ABCD
1Variable 1Variable 2Target Value
2
2​
6​
5.5
3
12.50%​
87.50%​

Target = D2
Variable1 = A2
Variable2 = B2

A3 =
Excel Formula:
=(Target-Variable2)/(Variable1-Variable2)
B3 =
Excel Formula:
1 - A3
 
Last edited:
Upvote 0
Solution
This was exactly what I needed, thank you. I actually have 3 variables but I was able to use what you provided and expand as needed. Thanks for your help!
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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