WorkbookLogic
FormulaAggregationintermediateSUMPRODUCTSUMAVERAGETRANSPOSEIFROUND

Calculate a Weighted Average

By WorkbookLogic

Blend values according to unequal economic weights by dividing the SUMPRODUCT of aligned paired observations by total weight, with visible contributions and explicit zero-denominator controls.

ExcelLast reviewed Sep 11, 2026
weighted-average-v1.0.0.xlsx
Weighted Average, Formula Review
See how SUMPRODUCT, SUM, AVERAGE, and TRANSPOSE each support the pattern.
Column vectors, editableFunction review
TrancheBalance ($)RateWeighted interest ($)StepFormula syntaxResultInterpretation
Facility A$500,0005.0%$25,000SUMPRODUCT numerator=SUMPRODUCT($B$12:$B$16,$C$12:$C$16)$160,000Weighted numerator
Facility B$750,0006.0%$45,000SUM denominator=SUM($B$12:$B$16)$2,500,000Total weight
Notes$1,000,0007.0%$70,000Normalized weighted average=SUMPRODUCT($B$12:$B$16,$C$12:$C$16)/SUM($B$12:$B$16)6.4%Blended rate
Revolver$250,0008.0%$20,000AVERAGE contrast=AVERAGE($C$12:$C$16)7.0%Equal weighting
Undrawn option$09.0%$0
TRANSPOSE, align a horizontal weight vector
Horizontal balances$500,000$750,000$1,000,000$250,000$0
Aligned weighted average=SUMPRODUCT(TRANSPOSE($G$19:$K$19),$C$12:$C$16)/SUM($G$19:$K$19)6.4%
Reliability checks
Normalized result returns the expected 6.4%OK
SUMPRODUCT numerator ties to the visible row-level contributionsOK
TRANSPOSE orientation result ties to the column-vector resultOK

Overview

Return one representative value that gives larger observations more influence. The example blends financing rates by their associated balances, producing a weighted rate and reconciling it to visible interest contributions.

When to use it

Use it for blended borrowing rates, WACC components, portfolio returns, unit prices, production costs, or allocations where each observation’s economic size differs.

When not to use it

Use AVERAGE when every observation should count equally. Aggregate transactions first when the required weights or values exist at a different grain. SUMPRODUCT without division is appropriate only when weights are controlled proportions that already total exactly 100%.

Problem

A simple average gives a zero-balance or small observation the same influence as a large funded balance. SUMPRODUCT alone returns a weighted numerator, not an average, unless weights already sum to one. Paired values must be normalized by total weight.

Source data

The synthetic financing inputs in Combined Example!B12:C16 are:

Tranche

Balance

Rate

Weighted interest

Facility A

$500,000

5.0%

$25,000

Facility B

$750,000

6.0%

$45,000

Notes

$1,000,000

7.0%

$70,000

Revolver

$250,000

8.0%

$20,000

Undrawn option

$0

9.0%

$0

Weights and values must be numeric, row-aligned, and cover the same number of observations.

The balances are raw currency weights rather than percentages; the denominator converts them into relative influence automatically.

Calculations

  1. Multiply each balance by its paired rate.
  2. Sum the products to form the weighted numerator.
  3. Sum balances to form total weight.
  4. Divide the numerator by total weight.
  5. Compare the result with the simple average and reconcile to row-level contributions.

Outputs

Weighted interest is $160,000 on a total balance of $2,500,000, producing a weighted average rate of 6.4%. The simple average is 7.0% because it gives the undrawn 9.0% option equal influence.

Formula map

=SUMPRODUCT($B$12:$B$16,$C$12:$C$16)/SUM($B$12:$B$16)

SUMPRODUCT produces the numerator; SUM normalizes it by total balance. Both ranges are absolute, paired vertically, and used once to return a scalar rate.

Model checks

The workbook checks that SUMPRODUCT equals the visible weighted-interest column, weighted rate multiplied by total balance rebuilds weighted interest, and total weight is positive. All three controls return OK.

Edge cases

  • A zero weight gives its paired value no influence.
  • Raw weights need not total 100% because the denominator normalizes them.
  • Zero total weight makes the average undefined.
  • Negative weights calculate mathematically but may violate the business rule.
  • Different range sizes produce an error.
  • Different orientations require deliberate alignment, such as TRANSPOSE.

Common errors

  • Using AVERAGE: unequal observations receive equal influence. Identify and apply the economic weight.
  • Omitting the denominator: the output is a weighted total, not an average. Divide by total weight.
  • Misaligning ranges: values pair with the wrong weights. Use identical dimensions and row-level products.
  • Hardcoding total weight: edits do not flow through. Calculate it with SUM.

Example

The five weighted-interest contributions total $160,000. Dividing by $2,500,000 gives 0.064, or 6.4%. Multiplying 6.4% by the balance independently returns $160,000, while the zero-balance option contributes nothing despite its 9.0% rate.

Example workbook

Edit the cream balances and rates in Combined Example!B12:C16. Contributions, weighted output, simple comparison, and checks update automatically. Formula Review isolates numerator, denominator, normalization, and a TRANSPOSE orientation example.

Key takeaway

Multiply each value by its aligned weight, sum those contributions, and divide by total weight; normalization is what turns raw weights into a valid average.