1SUMPRODUCT divided by the total weight
=SUMPRODUCT(B2:B7,C2:C7)/SUM(C2:C7)
- Put values in one column and weights in the next.
- Type =SUMPRODUCT(B2:B7,C2:C7)/SUM(C2:C7).
- Check the result sits between the smallest and largest value.
Work out a weighted average with SUMPRODUCT divided by the sum of the weights, including a weighted average for one category.
A plain average treats every value the same. A weighted average lets some values count more: course grades weighted by credit hours, prices weighted by quantity, scores weighted by importance.
The recipe is the same every time: multiply each value by its weight, add up those products, and divide by the total weight.
=SUMPRODUCT(B2:B7, C2:C7) / SUM(C2:C7)
SUMPRODUCT with two ranges multiplies them row by row and adds the results in one step, so there is no helper column. Dividing by the sum of the weights keeps the answer on the same scale as the values. If the weights already add to 100% (or 1), the division changes nothing, but leaving it in makes the formula correct when they do not.
A common slip is AVERAGE, which ignores the weights. Another is dividing by the sum of the values rather than the sum of the weights.
To weight within a category, such as only the East region, add the condition inside SUMPRODUCT as a TRUE/FALSE test that multiplies the rows you want by 1 and the rest by 0:
=SUMPRODUCT((H2:H7="East") * F2:F7 * G2:G7) / SUMIFS(F2:F7, H2:H7, "East")
The denominator is the total weight for the same rows, from SUMIFS. Both parts must use the same condition or the result is meaningless.
For a quick check, the weighted average always sits between the smallest and largest value. If it does not, a range is the wrong size or a weight is missing. The Analysis track works with SUMPRODUCT in depth.
=SUMPRODUCT(B2:B7,C2:C7)/SUM(C2:C7)
=SUMPRODUCT((H2:H7="East")*F2:F7*G2:G7)/SUMIFS(F2:F7,H2:H7,"East")
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B9, calculate the average grade points in B2:B7, weighted by the credits in C2:C7.
Answer in B9.
Excel foundations covers this in lesson 5, SUM and ranges.