We’re improving Formula Genius. We’re redesigning the app and fixing issues along the way. Sorry for any disruption, and thank you for your patience.
Excel intermediate

Weighted Average Formula in Excel

Regular AVERAGE treats all values equally. Weighted average accounts for importance — grades, portfolio weights, survey responses.

Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.

The formula

Prompt

"Calculate weighted average of exam scores with different credit weights"

Excel
=SUMPRODUCT(B2:B10,C2:C10)/SUM(C2:C10)

SUMPRODUCT multiplies each score by its weight, sums the products, then divides by the total weight. This gives a true weighted average.

Step-by-step breakdown

  1. B2:B10 — the values (exam scores)
  2. C2:C10 — the weights (credit hours or importance)
  3. SUMPRODUCT(B2:B10,C2:C10) — sum of (score * weight) for each pair
  4. SUM(C2:C10) — total weight (denominator)
  5. Division gives the weighted average

Edge cases & warnings

  • Weights summing to 0 causes #DIV/0! — add IFERROR
  • Weights don't need to sum to 1 or 100 — the formula normalizes automatically
  • Empty cells are treated as 0 in both ranges
  • Mismatched range sizes cause #VALUE! error

Examples

Prompt

"Scores: [90, 80, 70], Weights: [3, 2, 1]"

Excel
(270+160+70)/6 = 83.33
Prompt

"Equal weights [1, 1, 1]"

Excel
Same as regular AVERAGE: 80

Frequently asked questions

Why not just use AVERAGE?

AVERAGE gives equal importance to all values. A 3-credit course should matter more than a 1-credit course in your GPA. Weighted average handles this correctly.

Can I add conditions to a weighted average?

Yes. Use the conditional SUMPRODUCT pattern: =SUMPRODUCT((A2:A10="Math")*B2:B10*C2:C10)/SUMPRODUCT((A2:A10="Math")*C2:C10) for weighted average of only Math scores.

Can't find what you need?

Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.