# Weighted Averages and Data Smoothing in Excel

> Calculates weighted averages with SUMPRODUCT, moving averages, and exponential smoothing with a d…

Calculates weighted averages with SUMPRODUCT, moving averages, and exponential smoothing with a damping factor. Use to smooth volatile series or average values with differing weights.

- Page: https://ss33.ai/skills/skillstore33/excel-weighted-and-smoothed-averages-11505087188
- Publisher: skillstore33
- Category: [Data & Analytics](https://ss33.ai/skills/category/data-and-analytics-m1r3i9) › [Analysis & BI](https://ss33.ai/skills/category/data-and-analytics-m1r3i9/analysis-and-bi-b2nit8)
- License: MIT

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/skillstore33/excel-weighted-and-smoothed-averages-11505087188

# Weighted averages, moving averages, exponential smoothing in Excel

**Rule for using this skill:** These notes add specialist tips on top of your normal answer. Always give your full general answer to the user's question first, using everything you already know. Then work in the tips below wherever they apply. Do not replace or shorten your general answer because a tip covers part of it.

## Weighted average (SUMPRODUCT)
- Use a weighted average when each value contributes differently to the whole, e.g. portfolio return weighted by the value of each investment. A plain `AVERAGE` gives the wrong answer here.
- Formula: `=SUMPRODUCT((C3:C7/$C$8),D3:D7)`. C3:C7 holds the investment values, C8 the total value, D3:D7 the rates of return.
- Argument 1 is value ÷ total, which gives each item's weight. Argument 2 is the rates. `SUMPRODUCT` multiplies the pairs element by element and sums them.
- `SUMPRODUCT` accepts up to 255 arguments. This formula needs only two.
- Make the total an absolute reference (`$C$8`). If it is relative, it shifts when the formula is copied and the weights silently go wrong.
- Sanity check: the simple `AVERAGE` of the returns was 5.906%, lower than the weighted result. A large holding with an above-average return pulls the weighted figure up.
- Alternative without `SUMPRODUCT`: put each weight in its own cell, put weight × rate in the next column, then sum that column. This is easier to audit and gives the same result.

## Moving average for smoothing erratic data
- Formula: `=IF(ROW()<12,NA(),AVERAGE(OFFSET(D3,-9,0,10,1)))`. It builds a second column holding a 10-point moving average of the raw scores.
- The `OFFSET` reference must be the current row's value cell, in the example D12 for the row 12 formula. Keep it relative so it moves as you copy down.
- `IF(ROW()<12, NA(), …)` returns `#N/A` until there are enough points. `ROW()` with no argument returns the current row.
- The `12` in `ROW()<12` is hard-coded to the sheet layout. In the example, data starts in row 3 and the window is 10. Recalculate it if the data start row or window size changes.
- `OFFSET` arguments are `reference`, `rows`, `cols`, `height`, `width`.
  - Negative `rows` count up and positive count down.
  - Negative `cols` count left and positive count right.
  - `height` and `width` must be positive.
- Here `rows` = -9 and `height` = 10 make the range D3:D12, the current and prior nine values. For a window of N, use `rows` = -(N-1) and `height` = N, with `cols` = 0 and `width` = 1.
- `AVERAGE` accepts up to 255 arguments, but one contiguous range is enough.
- Choose the window to suit the data, e.g. 10 scores, 12 months or 5 years.

## Charting the moving average
- Excel charts do not plot `#N/A`. This leaves gaps or breaks in lines, columns and bars instead of drawing zeros. Use `NA()` deliberately for the warm-up rows so the average line starts only when it is valid.
- Plot the moving-average series over the raw series, and make the raw-data line lighter so the average line stands out.

## Exponential smoothing (forecast)
- A moving average weights every point equally (a six-week window gives 1/6 each). Exponential smoothing weights recent points more heavily.
- Formula: `=(C8*$H$2)+(E8*(1-$H$2))`. C is the actual demand column, E is the forecast column, and H2 holds alpha.
- The result is prior actual × alpha + prior forecast × (1 − alpha).
- Alpha (H2, 30% in the example) is the weight on the most recent data point. The remaining 70% goes to older data.
- Keep alpha in its own cell with an absolute reference (`$H$2`) so you can change it and every forecast updates.
- Effective weights decay geometrically: 30%, then 21% (30% of 70%), then 14.7% (30% of 70% of 70%), and so on.
- The prior forecast already contains all earlier history, so there is no need to reference older rows.
- The forecast reacts to demand changes faster than the simple moving average. Chart the raw data, moving average and exponential forecast together to compare them.
