Multiply each value by its weight, add them up, and divide by the total weight: =SUMPRODUCT(B2:B6, C2:C6)/SUM(C2:C6). A plain AVERAGE gives every row the same weight, which is wrong when the rows aren't equal, like a 1,000,000 loan and a 10,000 one.
{"cells": {"A1": "Question", "A10": "Car", "A11": "Consumer", "A12": "Card", "A13": "Business", "A2": "Weighted average rate", "A3": "Plain AVERAGE (wrong)", "A8": "Loan", "A9": "Mortgage", "B1": "Answer", "B10": 0.069, "B11": 0.099, "B12": 0.18, "B13": 0.055, "B2": "=SUMPRODUCT(B9:B13,C9:C13)/SUM(C9:C13)", "B3": "=AVERAGE(B9:B13)", "B8": "Rate", "B9": 0.045, "C10": 150000, "C11": 60000, "C12": 20000, "C13": 400000, "C8": "Amount", "C9": 1000000}, "focus": "B2", "formats": {"B2:B3": {"dec": 2, "fmt": "percent"}, "B9:B13": {"dec": 1, "fmt": "percent"}, "C9:C13": {"dec": 0, "fmt": "number"}}, "note": "The card rate is high but the amount is small, so it barely moves the weighted average."}
SUMPRODUCT ÷ SUM
The two ranges must be the same size.
=SUMPRODUCT(B2:B100, C2:C100)/SUM(C2:C100)The average rate weighted by amount.=SUMPRODUCT(B2:B10, C2:C10)On its own: the total of value × weight.Weighted average with a condition
Multiply by the condition inside SUMPRODUCT and use SUMIF for the weights.
=SUMPRODUCT((D2:D100="North")*B2:B100*C2:C100)/SUMIF(D2:D100, "North", C2:C100)The weighted rate for the North region.Grades with weights
When the weights are percentages that add up to 100%, the SUM part is 1.
=SUMPRODUCT(B2:B4, C2:C4)Exam 50%, project 30%, homework 20%.Common mistakes
- #VALUE! error
- The ranges have different sizes, or a value is text.
- The result looks like a plain average
- You used AVERAGE, or divided by the number of rows instead of the sum of the weights.
Frequently asked questions
Why is my weighted average different from AVERAGE?
Because big rows count more. If the weights were all equal, both would be the same.
Can a PivotTable calculate it?
Not directly; add a helper column with value × weight and divide the two sums.
Where can I practise SUMPRODUCT?
In the SUMPRODUCT exercise.