Track how spread — or volatility — changes over time with a rolling standard deviation. Compute STDEV over a trailing window that slides forward each period.
The example
Volatility over a trailing window.
| A | B | |
|---|---|---|
| 1 | Period | Rolling SD |
| 2 | 5 | 3.2 |
| 3 | 6 | 4.1 |
The formula
The formula:
How it works
How it works:
OFFSET(currentCell, 0, 0, -5, 1)defines the last 5 rows (negative height counts upward).STDEVmeasures their spread — the rolling standard deviation, or volatility.- Copy down; each row’s window slides forward, building a volatility series.
- A rising rolling SD means the series is getting more erratic; a falling one, more stable.
Sturdier alternative: with a date column, a fixed-range STDEV(B2:B6) filled down avoids OFFSET’s volatility. Plot the rolling SD as a line to see volatility regimes — the basis of risk dashboards.
Try it: interactive demo
Series; rolling SD (window 5).
Variations
Fixed-range (sturdier)
No OFFSET:
Rolling average
Trend, not spread:
Coefficient of variation
Relative volatility:
Pitfalls & errors
Needs a full window. The first few rows can’t form a 5-value window — blank or skip them.
OFFSET is volatile. On big models it’s slow; the fixed-range fill-down is leaner.
Sample vs population. STDEV (sample) vs STDEVP — pick to match your convention.
Practice workbook
Frequently asked questions
How do I calculate a rolling standard deviation in Excel?
What does a rising rolling standard deviation mean?
How do I make a relative volatility measure?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class