Home  /  Blog  /  Finance & Stats
Finance & Stats

Weighted Average Formula in Excel — How to Calculate a Weighted Average

By admin 29 November 2026 Finance & Stats

Some numbers count more than others. A final exam worth 40% of the grade should pull the average more than a quiz worth 10%. A £25,000 holding should matter more than a £5,000 one. A support channel with 1,740 tickets behind its score should matter more than one with 260. The plain AVERAGE pretends every number counts the same — and that is why it gives the wrong answer on all three jobs. A weighted average fixes it: multiply each value by its weight, add the products, divide by the sum of the weights. Excel has no single function for it, but two familiar ones do the job in one line. This guide gives you that formula first, works it through on grades, a portfolio and satisfaction scores, and covers the two traps: the ranges that must line up, and the offset row that gives a wrong answer without any error.

Quick takeaway: Excel has no weighted average function. Two functions do the job.

  • =SUMPRODUCT(values, weights)/SUM(weights) — the formula.
  • SUMPRODUCT multiplies each value by its weight and adds the products. SUM totals the weights.
  • The two ranges must cover the same rows, or the answer is wrong — or #VALUE!.
  • The plain AVERAGE gives the wrong answer whenever the weights differ.
Weighted Average Formula in Excel — How to Calculate a Weighted Average

The Formula — SUMPRODUCT Divided by SUM

=SUMPRODUCT(B2:B6, C2:C6)/SUM(C2:C6)
  • B2:B6 is the values — the scores, prices or rates.
  • C2:C6 is the weights — how much each value counts: percentages, credit hours, quantities, ticket counts.
  • SUMPRODUCT multiplies each value by its weight, row by row, and adds the products.
  • SUM(C2:C6) totals the weights. Dividing by it turns the total back into an average.

The weights do not have to add up to 100%. Percentages, decimals, counts and hours all work, because dividing by SUM(weights) normalises them whatever their scale.

Worked Example — Exam Grades

Priya’s course grades. The final exam is worth 40%, the midterm 25%, homework 15%, and two quizzes 10% each:

ABC
ItemScoreWeight
Homework9815%
Quiz 17810%
Quiz 28510%
Midterm7425%
Final exam7040%
=SUMPRODUCT(B2:B6, C2:C6)/SUM(C2:C6)

Result: 77.5. Check it: 98 × 15% = 14.7, 78 × 10% = 7.8, 85 × 10% = 8.5, 74 × 25% = 18.5, 70 × 40% = 28. Add them: 14.7 + 7.8 + 8.5 + 18.5 + 28 = 77.5. The weights add to 100%, so the division leaves the total unchanged.

Now the plain average: =AVERAGE(B2:B6) gives 81. That is wrong for this job — it gives the 70 on the final exam the same pull as a quiz score, even though the final is worth four times as much. The weighted average is the grade. The plain average is not.

Worked Example — Portfolio Returns

Four holdings, four returns. The big holding should matter more than the small one:

HoldingValueReturn
A12,0004%
B8,000−2%
C5,0007%
D25,0003.5%
=SUMPRODUCT(C2:C5, B2:B5)/SUM(B2:B5)

Result: 3.09%. Check it: 12,000 × 4% = 480, 8,000 × −2% = −160, 5,000 × 7% = 350, 25,000 × 3.5% = 875. Add them: 480 − 160 + 350 + 875 = 1,545. Divide by the total value, 50,000: 1,545 / 50,000 = 3.09%. The plain average of the four returns is 3.13% — close, but wrong, because it lets the £5,000 holding count as much as the £25,000 one.

Worked Example — Satisfaction Scores

A support team reports customer satisfaction across five channels. The scores are 4.6, 4.1, 3.8, 3.4 and 4.8 out of 5 — but the ticket counts behind them are 1,250, 820, 430, 260 and 1,740:

=SUMPRODUCT(B2:B6, C2:C6)/SUM(C2:C6)

Result: 4.44. The plain average is 4.14 — a whole three tenths lower, because it gives the 260-ticket channel the same pull as the 1,740-ticket one. The real figure is 4.44, and the team that reported 4.14 was reporting a number that described no one’s experience. Whenever a score has a count behind it, weight by the count.

The Long Way — A Helper Column

If you are learning, or someone needs to audit the maths, a helper column makes each step visible. In D2, type =B2*C2 and copy it down — each row’s value times its weight. Then:

=SUM(D2:D6)/SUM(C2:C6)

Same answer, 77.5, with every step on screen. Use the helper column when the sheet will be checked by someone else. Use the one-line SUMPRODUCT version when the sheet is yours.

The Offset Trap — A Wrong Answer With No Error

This is the trap that catches people who copy a formula across a sheet. The two ranges must cover the same rows. Offset one of them by a single row, and Excel says nothing — it returns a plausible wrong answer:

ValuesWeights (offset by one row)
4.6820
4.1430
3.8260
3.41,740
4.8(blank)

Result: 3.83 — silently. No error, no warning, a perfectly plausible satisfaction score that describes nothing. The fix is boring and it works: check that both ranges start and end on the same row. If the values are B2:B6, the weights must be C2:C6, not C3:C7. One inserted row is the usual cause.

Common Mistakes

MistakeWhat happensFix
You used the plain AVERAGE81 instead of 77.5, 4.14 instead of 4.44 — wrong whenever weights differUse =SUMPRODUCT(values, weights)/SUM(weights)
The ranges are different lengths#VALUE!Both ranges must have the same shape and length
One range is offset by a rowA plausible wrong answer (3.83) with no errorCheck both ranges start and end on the same row
You forgot to divide by SUM(weights)The total (77.5 when weights sum to 1, but 1,545 when they do not)Dividing by SUM(weights) is what turns the total into an average
A value is missing but its weight is thereThe answer is dragged down — the weight stays in the denominatorExclude incomplete rows rather than leaving them blank
A weight is missingThat row drops out of both halves harmlesslyUsually fine — but check it is what you intended
You typed the weights as 15 instead of 15%The answer is 100 times too bigType 15% with the sign, so Excel stores 0.15

Frequently Asked Questions

What is the weighted average formula in Excel? =SUMPRODUCT(values, weights)/SUM(weights). For example, =SUMPRODUCT(B2:B6,C2:C6)/SUM(C2:C6) gives the weighted average of the values in B2:B6 with the weights in C2:C6.

Is there a WEIGHTEDAVERAGE function in Excel? No. Excel has no built-in weighted average function. Google Sheets has AVERAGE.WEIGHTED, but it does not survive a conversion to .xlsx — so use SUMPRODUCT divided by SUM in Excel.

How do I calculate a weighted average in Excel step by step? Put the values in one column and the weights in the next, with each pair on the same row. Type =SUMPRODUCT(values, weights)/SUM(weights) in an empty cell and press Enter.

Do the weights have to add up to 100%? No. Percentages, decimals, counts and hours all work, because dividing by SUM(weights) normalises them whatever their scale. If the weights do add to 100%, the division leaves the total unchanged.

Why is my weighted average wrong? The usual cause is misaligned ranges — one range offset by a row gives a plausible wrong answer with no error. Check both ranges start and end on the same row. Different lengths give #VALUE!.

What is the difference between AVERAGE and weighted average? AVERAGE gives every value the same pull. A weighted average gives each value a pull set by its weight. When the weights differ, the two answers differ — and the weighted one is the right one.

Can I use SUMPRODUCT for a weighted average with a condition? Yes. Multiply the arrays together instead of listing them separately — for example, =SUMPRODUCT((A2:A100="West")*B2:B100*C2:C100)/SUMPRODUCT((A2:A100="West")*C2:C100) restricts both the numerator and the denominator to the matching rows.

That is the weighted average formula in Excel: SUMPRODUCT to multiply each value by its weight and add the products, SUM to total the weights, and a division to turn the total back into an average. There is no single function for it, and there does not need to be — the two familiar ones do the job in one line, in every version of Excel. Remember the two things that matter: the plain AVERAGE is wrong whenever the weights differ, and the ranges must line up row for row, because an offset row gives a wrong answer without any error. From here, the next statistics to learn are the spread around the average — the standard deviation formula — and the centre itself, the average formula — and the full learning order for the whole site is on the Excel Formulas hub.


About admin

Author of Excel formula guides on this blog.

View all guides by admin →

Keep Learning

Related guides