Blended Average in Excel: How to Calculate Weighted Means
In this article
A blended average (also known as a weighted average) is calculated by multiplying each value by its corresponding weight, summing those results, and then dividing by the total sum of the weights. Unlike a simple average, which treats all data points equally, a blended average ensures that items with a higher "weight" (such as a larger investment or a higher credit hour) have a proportional impact on the final result.
What You'll Need
- Microsoft Excel (any version)
- A dataset consisting of two columns: one for the Values (the numbers you want to average) and one for the Weights (the importance or quantity of each value).
Step-by-Step
- Organize Your Data: Arrange your data in two adjacent columns. For example, place your "Price" or "Score" in Column A and your "Quantity" or "Weight" in Column B. Ensure there are no empty rows within your data range.
- Select the Output Cell: Click on the empty cell where you want the blended average to appear.
- Enter the SUMPRODUCT Formula: Type
=SUMPRODUCT(. This function multiplies the corresponding items in two or more ranges and then sums the products. - Define the Ranges:
- Highlight the range of Values (e.g., A2:A10).
- Type a comma (
,). - Highlight the range of Weights (e.g., B2:B10).
- Type a closing parenthesis (
)).
=SUMPRODUCT(A2:A10, B2:B10). - Divide by Total Weight: To complete the weighted average, you must divide the result of the SUMPRODUCT by the sum of the weights. Immediately after the closing parenthesis, type a forward slash (
/) and then the SUM function for the weight column:SUM(B2:B10). - Finalize the Formula: The complete formula should look like this:
=SUMPRODUCT(A2:A10, B2:B10)/SUM(B2:B10). Press Enter to see the result.
Common Mistakes
- Using the AVERAGE function: The most common error is using
=AVERAGE(A2:A10). This calculates a simple mean and ignores the weights entirely, leading to inaccurate data if the quantities are not equal. - Mismatched Range Sizes: If your value range is A2:A10 but your weight range is B2:B11, Excel will return a
#VALUE!error. The two ranges must be exactly the same size and shape. - Including Header Rows: Do not include the column headers (e.g., "Price" and "Quantity") inside the SUMPRODUCT or SUM ranges. Including text in these mathematical functions can cause errors or unexpected results.
- Dividing by the Count instead of the Sum: Some users divide by
COUNT(B2:B10). This is incorrect; you must divide by the sum of the weights to get a true blended average.
Tips
- Use Named Ranges: If you use this calculation frequently, highlight your value range and name it "Values" and your weight range "Weights" in the Name Box (top left). Your formula becomes much easier to read:
=SUMPRODUCT(Values, Weights)/SUM(Weights). - Absolute References: If you plan to drag the formula across other cells, use dollar signs (e.g.,
$A$2:$A$10) to lock the ranges so they do not shift. - Verify with a Manual Check: For a small dataset, multiply the first two values by their weights, add them, and divide by the sum of those two weights to ensure your Excel formula is mirroring your logic.
Troubleshooting
If your blended average is not working as expected, try these steps in order:
- Check for Text-Formatted Numbers: Ensure your numbers are actually formatted as "Number" or "General." If a number is stored as text, SUMPRODUCT may treat it as zero. Highlight the column, go to the Home tab, and change the format dropdown to Number.
- Look for Hidden Rows: If you have filtered your data, SUMPRODUCT still calculates the hidden rows. If you only want to average visible cells, you will need a more complex formula using
SUBTOTALorAGGREGATE. - Check for Division by Zero: If the
#DIV/0!error appears, it means the SUM of your weight column is zero or the range is empty. Verify that your weight column contains positive numbers. - Clear Circular References: Ensure the cell where you are typing the formula is not inside the ranges you are selecting (e.g., don't put the formula in cell B10 if your range is B2:B10).
Frequently Asked Questions
What is the difference between a simple average and a blended average?
A simple average adds all numbers and divides by the count, giving every number equal importance. A blended average assigns a weight to each number, meaning larger weights have a greater influence on the final result.
Can I use a blended average for GPA calculations?
Yes. In this scenario, the "Value" is the grade earned in the class, and the "Weight" is the number of credit hours for that class.
Does SUMPRODUCT work if the columns are not next to each other?
Yes. The columns can be anywhere in the spreadsheet, as long as the ranges you select are the same size (e.g., A2:A10 and Z2:Z10).
What happens if my weights are percentages?
If your weights are percentages that add up to 100% (or 1.0), the /SUM(B2:B10) part of the formula is technically optional because dividing by 1 does not change the value. However, keeping it ensures the formula remains accurate if the percentages ever sum to something other than 100%.
Can I use this for inventory cost averaging?
Yes, this is the standard way to calculate the Weighted Average Cost (WAC) of inventory. The "Value" is the unit cost and the "Weight" is the quantity of units purchased at that cost.