Functions and operators : WEIGHTEDAVERAGE( )

WEIGHTEDAVERAGE( )

Calculates the weighted average for a set of values, given specified weights. In a weighted average, some numbers carry more importance, or weight, than others.

Syntax

WEIGHTEDAVERAGE(value, weight)

Arguments

value

The values to use in the calculation. The data type must be numeric.

weight

The weight to apply to each value.

Returns

The weighted average of a set of values.

Example

The following example calculates the weighted average of values in the Score data field, given the weight values in the Weight data field.

WEIGHTEDAVERAGE([Score], [Weight])

For example, given the following set of scores and weights, WEIGHTEDAVERAGE( ) returns 81.75.

Score           Weight (counts toward n% of grade)
50                 10
75                 25
80                 15
90                 30
95                 20