What is the formula for a weighted average with cells possibly containing 0s

aschenk21

New Member
Joined
Oct 12, 2015
Messages
2
Hello,

Please assist i am trying to write a formula that will take that weight average of the of cells and not count any cells that have a "0" in them.
my data set is;

count average
8 6.832638889
12 5.388657407
10 6.961319444
2 13.83506944
0 0
0 0
2 9.364583333
0 0
3 4.240740741
1 9.833333333
1 2.885416667
2 10.953125
2 13.88888889
0 0


my current formula that i thought to use is =SUMPRODUCT(AR291:AR303)/COUNTIF(AQ291:AQ303,">0"). however, the number i need to get is 7.22005814
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi. Try this:

=SUMPRODUCT(AQ291:AQ303*AR291:AR303)/SUM(AQ291:AQ303)
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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