![]() |
weighted formula
How do I apply predefined weighting to a simple "average" formula in Excel?
For simplicity sake, I have 2 values that I would like to develop a weighted average for... let's say 80% and 20% respectively. How do I write the formula to account for those weighting values? -- Regards, Norm W |
weighted formula
With your values in A1 and A2, use:
=A1*80%+A2*20% If you have a big range of values, say in A1:A20, and their corresponding weights in say, B1:B20, then use: =SUMPRODUCT(A1:A20,B1:B20) Just make sure your weights in B1:B20 add up to 1. I would use: =IF(SUM(B1:B20)<1,"Error!",SUMPRODUCT(A1:A20,B1:B 20)) if I found myself changing weights frequently in B1:B20. HTH Jason Morin Atlanta, GA "Norm" wrote: How do I apply predefined weighting to a simple "average" formula in Excel? For simplicity sake, I have 2 values that I would like to develop a weighted average for... let's say 80% and 20% respectively. How do I write the formula to account for those weighting values? -- Regards, Norm W |
weighted formula
= SUMPRODUCT(A1:A2, B1:B2) / SUM(B1:B6)
Where A1 to A2 is the are the numbers of products and B1 B2 are the 80/20 weightings "Norm" wrote: How do I apply predefined weighting to a simple "average" formula in Excel? For simplicity sake, I have 2 values that I would like to develop a weighted average for... let's say 80% and 20% respectively. How do I write the formula to account for those weighting values? -- Regards, Norm W |
All times are GMT +1. The time now is 02:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com