# Weighted average

=SUMPRODUCT(numbers,weights)/SUM(weights)

To calculated a weighted average, you can use the SUMPRODUCT function together with the SUM function. In the example shown, the formula in G7 is:

=SUMPRODUCT(C5:C11,D5:D11)/SUM(D5:D11)

### How this formula works

The SUMPRODUCT function multiples arrays together and sums the result.

In this case, SUMPRODUCT returns the total of each number times its corresponding weight. This number is divided by the sum of all weights, calculated with SUM.

A nice feature of this formula is that the weights don't matter. In the example, they add up to 100%, but they can actually be any number that makes sense for your use case.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.