Worked example

Data: 80	2
90	3
(80 × 2 + 90 × 3)/(2 + 3) = 430/5 = 86

→ Σw=5; μw=86

Method and scope

Each row contains a value and a nonnegative weight. Up to 1,000 rows; total weight must be positive. Weights are normalized by their sum, not assumed to total 100. Zero-weight rows do not affect the mean.

μw = Σ(xᵢwᵢ)/Σwᵢ