Calculate a Weighted Average
A plain average treats every row equally — but selling 1 unit at $189 and 100 units at $4.50 shouldn't average to $96.75. You need each value weighted by how much it matters.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
SUMPRODUCT multiplies each value by its weight and adds the results — price × units for every row, summed. Dividing by the total of the weights turns that back into an average where heavy rows pull harder. With prices 10, 20, 30 and units 1, 3, 6, the weighted average is (10 + 60 + 180) ÷ 10 = 25 — versus a plain AVERAGE of 20, which pretends one unit of each was sold.
When to use it
Use it whenever rows differ in importance: average selling price weighted by units, blended interest rates weighted by balance, assessment scores weighted by credit, cost per unit across warehouses.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08