When some values count more than others — a course grade where the final exam is worth more than homework, a portfolio return by position size — a plain AVERAGE is wrong. A weighted average with SUMPRODUCT gives each value its proper pull.
The example
A course grade: each component has a score and a weight.
| A | B | C | |
|---|---|---|---|
| 1 | Component | Score | Weight |
| 2 | Homework | 80 | 20% |
| 3 | Midterm | 75 | 30% |
| 4 | Final | 90 | 50% |
| 5 | Weighted grade: | 83.5 |
The formula
The weighted grade:
How it works
SUMPRODUCT does the multiply-and-add in one step:
SUMPRODUCT(B2:B4, C2:C4)multiplies each score by its weight and sums:16 + 22.5 + 45 = 83.5.- Dividing by
SUM(C2:C4)(the total weight) normalizes the result. Here the weights total 100%, so dividing by 1 leaves 83.5. - If your weights don’t add to 1 (e.g. they’re raw points like 2, 3, 5), the division is what makes the average correct.
Try it: interactive demo
Set each score; weights are 20% / 30% / 50%. See the weighted grade vs the plain average.
Variations
Weights as raw points
Works the same when weights are 2/3/5 instead of percentages — the SUM divisor handles it:
Weighted average price across orders
Average price weighted by quantity sold:
Pitfalls & errors
#VALUE! The value and weight ranges are different sizes. SUMPRODUCT needs them to line up one-to-one.
Don’t forget to divide. =SUMPRODUCT(values, weights) alone is a weighted total, not an average. Divide by the sum of the weights.
Blank weights skew the result. A missing weight counts as 0 in SUMPRODUCT but the SUM still excludes it — make sure every value has a weight.
Practice workbook
Frequently asked questions
How do I calculate a weighted average in Excel?
What's the difference between AVERAGE and a weighted average?
Do the weights have to add up to 100%?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class