Need help with sumproduct weighed average

krh96011

New Member
Joined
Aug 28, 2018
Messages
2
I am trying to write a formula that will ignore 0 or blanks with the sumproduct function. My current formula is =SUMPRODUCT(F47:F53,G47:G53)/SUM(G47:G53)

Now I need to ignore 0 or blanks in this formula to make it work correctly. Can someone help?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
See if this does what you want.
Excel Workbook
FGHI
470.2550.456667
480.510
490.853
5006
510
520.366
Sheet
 
Upvote 0
@ AhoyNC

A lesser specification would seem also to work:

=SUMPRODUCT($F$47:$F$53,$G$47:$G$53)/SUMIFS($G$47:$G$52,$F$47:$F$52,">0")
 
Upvote 0
@Aladin
I agree that's a better formula. If the OP could have a negative number in column F I think your formula would need to change to:

Code:
=SUMPRODUCT($F$47:$F$53,$G$47:$G$53)/SUMIFS($G$47:$G$52,$F$47:$F$52,[COLOR=#ff0000]"<>0"[/COLOR])
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,600
Members
452,658
Latest member
GStorm

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