Calculate Weighted Mean Given a Range of Values

wsnyder

Board Regular
Joined
Sep 23, 2018
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hi,

How can I calculate a weighted mean, give a range of values?
Let me explain

I have a range of values, 11% - 20%. 17% of all scores fell within that range

BucketLowHighScore
11 - 20 pcnt0.110.217%
21 - 30 pcnt0.210.317%
31 - 40 pcnt0.310.417%
41 - 50 pcnt0.410.533%
51 - 60 pcnt0.510.617%
100%


I tried Sumproduct/Sum on both ends of the spectrum
On Low, that is giving me 32.66%
On High that is giving me 41.66%

The final mean should fall closer but not over 41.66% since 67% of scores are 30 and higher.

Thanks,
-w

GroupFormula
Low=SUMPRODUCT(B2:B6,D2:D6)/SUM(D2:D6)
High=SUMPRODUCT(C2:C6,D2:D6)/SUM(D2:D6)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I used a helper field to calculate the average of the high & low

Weighted Average.xlsx
ABCDE
1BucketLowHighweightHelper
211 - 20 pcnt11%20%16.67%15.50%
321 - 30 pcnt21%30%16.67%25.50%
431 - 40 pcnt31%40%16.67%35.50%
541 - 50 pcnt41%50%33.33%45.50%
651 - 60 pcnt51%60%16.67%55.50%
7
8Weighted Avg:37.17%
9=SUMPRODUCT(Table3[Helper],Table3[weight])/SUM(Table3[weight])
Sheet4
Cell Formulas
RangeFormula
E2:E6E2=AVERAGE(Table3[@[Low]:[High]])
B8B8=SUMPRODUCT(Table3[Helper],Table3[weight])/SUM(Table3[weight])
 
Upvote 0
Solution
Thanks tjdrake,

That gives me a weighted avg of 37.16. Definitely better than simple average of 35.5. Still the data from the person that sent to me shows a mean of 39.17.

Thanks,
w
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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