=AVERAGE.WEIGHTED(values, weights, [additional_values, additional_weights, ...])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| values | Yes | The values to average. Can be a range or array. |
| weights | Yes | The weight for each value. Must be the same size as values. |
| additional_values, additional_weights, ... | No | More pairs of values and weights to include in the same weighted average. |
AVERAGE.WEIGHTED calculates a mean in which some values count more than others. Each value is multiplied by its weight, the products are added up, and the total is divided by the sum of the weights. This is the right calculation whenever items differ in importance or size, such as course grades with different credit values or prices across orders of different quantities.
A plain AVERAGE treats every value equally, which can give a misleading answer when, say, one order is for 1,000 units and another is for 2.
The calculation is:
weighted average = (value₁ × weight₁ + value₂ × weight₂ + …) ÷ (weight₁ + weight₂ + …)
The values and weights ranges must be the same size, and they are paired by position: the first value goes with the first weight, and so on. Weights do not need to add up to 1 or 100. Google Sheets divides by their total, so weights of 2, 3, and 5 behave exactly like 20%, 30%, and 50%.
Scores in B2:B4 (85, 92, 78) and weights in C2:C4 (20%, 30%, 50%):
=AVERAGE.WEIGHTED(B2:B4, C2:C4)Returns 83.6: (85×0.2 + 92×0.3 + 78×0.5) ÷ 1.
=AVERAGE.WEIGHTED(C2:C100, D2:D100)With unit prices in C and quantities in D, this returns the true average price paid per unit across all orders.
=AVERAGE.WEIGHTED({10, 20, 30}, {1, 1, 2})Returns 22.5, because the 30 counts twice.
=AVERAGE.WEIGHTED(B2:B10, C2:C10, F2:F10, G2:G10)Treats both value/weight pairs as one data set.
Before AVERAGE.WEIGHTED existed, people wrote:
=SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4)Both formulas return the same answer. AVERAGE.WEIGHTED is shorter and states the intent more clearly. The SUMPRODUCT version is still useful when you need to add conditions inside the calculation.
A teacher grades homework at 20%, quizzes at 30%, and the final exam at 50%. Listing a student's three scores in B2:B4 and the weights in C2:C4, =AVERAGE.WEIGHTED(B2:B4, C2:C4) gives the correct final grade without a manual calculation.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.