FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to sumproduct weighted average in Excel

Calculate a grade weighted by credit hours, a sales average weighted by volume, or a multi-condition count that COUNTIFS cannot handle alone.

intermediateArray FormulasSUMPRODUCT reference

Step-by-step instructions

How to sumproduct weighted average3 steps

1

Enter the values array as the first argument and the weights array as the second — both must be the same size.

2

SUMPRODUCT multiplies each pair of values and sums all the products.

3

Divide by SUM of the weights to convert from a weighted total to a weighted average.

Example data

Worked example

GradeCredit Hours
903
854
782
923

Common mistakes

Errors to watch out for

Arrays are different sizes

Both arrays in SUMPRODUCT must have the same number of rows and columns. If they differ, SUMPRODUCT returns a #VALUE error.

Dividing by zero

If the weights column is all zeros or empty, SUM(C2:C10) returns 0 and the formula errors. Wrap the denominator in an IF to guard against this case.

FAQ

Frequently asked questions

How do I use SUMPRODUCT as a conditional count?

Use boolean arrays — =SUMPRODUCT((A2:A100="East")*(B2:B100>1000)) counts rows where region is East AND amount exceeds 1000, with no Ctrl+Shift+Enter needed.

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.