![]() |
Formula for Weighted Average
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 |
Formula for Weighted Average
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" wrote: 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 |
Formula for Weighted Average
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. -- Regards from Virginia Beach, Earl Kiosterud www.smokeylake.com ----------------------------------------------------------------------- "MJ" wrote in message ... 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 |
All times are GMT +1. The time now is 06:53 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com