Formula for Weighted Average

  • Thread starter Thread starter MJ
  • Start date Start date
M

MJ

Is there a general formula for Weighted average? I have a row of numerical
data, from 1 to 5. If it's 1, the weight is 0%, 2 - 25%, 3 - 50%, 4 - 75%, 5
- 100%. Is there a formula which I can do this?

Thanks
 
In this case I would use sumif and count as shown below:

=((0.25*SUMIF(A1:A100,2))+(0.5*SUMIF(A1:A100,3))+(0.75*SUMIF(A1:A100,4))+(1*SUMIF(A1:A100,5)))/COUNT(A1:A100)
 
MJ,

I think you want 100% if they're all 5s, 25% if they're all 2's, and stuff like that. This
will treat the 1s as 0, but will still count them in the average, which I think you want.
That is, it won't ignore them. Empty cells, or cells with 0 will change the result.

=(AVERAGE(A4:E4-1))/4

It's entered as an array formula -- press Ctrl - Shift - Enter, not just Entter, any time
you've edited it. Format for %.

If that don't get it, give examples of some data, and the expected result.
 
Back
Top