Calculating Weighted Averages

HRPRGMNGT

New Member
Joined
Feb 2, 2009
Messages
26
Hi

I have the formula below to calculate the average scores for each year (the one below is for 2012 weighted average)

=sumproduct($B$2:$E$2,$B3:$E3)/sum($B$2:$E$2)

however in some of the questions were not asked so that the score for that year is blank, how do I modify the above formula to exclude those scores and the employee surveyed count for the 'empty' year. So just to clarify in my example below I want to include all in Q1, however I want to exclude 2009 from my Q2 weighted average and for my Q3 weighted average I want to exclude 2010

Thanks
[TABLE="width: 500"]
<TBODY>[TR]
[TD][/TD]
[TD]col B
[/TD]
[TD]col C
[/TD]
[TD]col D
[/TD]
[TD]col E
[/TD]
[/TR]
[TR]
[TD]survey year
[/TD]
[TD]2009
[/TD]
[TD]2010
[/TD]
[TD]2011
[/TD]
[TD]2012
[/TD]
[/TR]
[TR]
[TD]employees surveyed
[/TD]
[TD]125
[/TD]
[TD]175
[/TD]
[TD]230
[/TD]
[TD]550
[/TD]
[/TR]
[TR]
[TD]Q1
[/TD]
[TD]63%
[/TD]
[TD]72%
[/TD]
[TD]75%
[/TD]
[TD]85%
[/TD]
[/TR]
[TR]
[TD]Q2
[/TD]
[TD][/TD]
[TD]65%
[/TD]
[TD]72%
[/TD]
[TD]71%
[/TD]
[/TR]
[TR]
[TD]Q3
[/TD]
[TD]72%
[/TD]
[TD][/TD]
[TD]64%
[/TD]
[TD]75%
[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
try something like

=SUMPRODUCT($B$2:$E$2,$B3:$E3)/SUMIF($B3:$E3,">0",$B$2:$E$2)

OR

=SUMPRODUCT($B$2:$E$2,$B3:$E3)/SUMPRODUCT($B$2:$E$2*($B3:$E3>0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,695
Messages
6,192,475
Members
453,726
Latest member
JoeH57

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