Data template

Rolling Z-Score & MAD Outlier Detection

A robust MAD score that finds the outliers an ordinary z-score hides inside its own standard deviation, and separates level shifts from errors.

Sheets 6 Live formulas 1,428 File .xlsx · 31 KB Category Data Level Advanced
Sign in to download →
Free account · 3 templates free, then unlimited on Pro · opens in Excel, Google Sheets, Numbers and LibreOffice

Rolling Z-Score & MAD Outlier Detection is a free Excel workbook: 6 sheets, 1,428 live formulas and realistic sample data throughout, 31 KB as .xlsx.

The formulas are printed on this page, unedited, so you can check the method before downloading anything. Swap in your own numbers and the whole file recalculates — which is the part no chat window can hand you. Opens in Excel, Google Sheets, Numbers and LibreOffice; no add-in and no macro.

A look inside

This is a real slice of the Detection sheet from the actual file — not a screenshot, and not a mock-up. Cells shown in violet are live formulas, exactly as they arrive.

#DateValueRoll meanRoll SDZRoll medianMAD
2=Series!A2=Series!B2=AVERAGE(Series!$B$2:$B$12)=STDEV.S(Series!$B$2:$B$12)=IFERROR((B2-C2)/D2,0)=MEDIAN(Series!$B$2:$B$12)=MEDIAN(ABS(Series!$B$2:$B$12-F2))
3=Series!A3=Series!B3=AVERAGE(Series!$B$2:$B$13)=STDEV.S(Series!$B$2:$B$13)=IFERROR((B3-C3)/D3,0)=MEDIAN(Series!$B$2:$B$13)=MEDIAN(ABS(Series!$B$2:$B$13-F3))
4=Series!A4=Series!B4=AVERAGE(Series!$B$2:$B$14)=STDEV.S(Series!$B$2:$B$14)=IFERROR((B4-C4)/D4,0)=MEDIAN(Series!$B$2:$B$14)=MEDIAN(ABS(Series!$B$2:$B$14-F4))
5=Series!A5=Series!B5=AVERAGE(Series!$B$2:$B$15)=STDEV.S(Series!$B$2:$B$15)=IFERROR((B5-C5)/D5,0)=MEDIAN(Series!$B$2:$B$15)=MEDIAN(ABS(Series!$B$2:$B$15-F5))
6=Series!A6=Series!B6=AVERAGE(Series!$B$2:$B$16)=STDEV.S(Series!$B$2:$B$16)=IFERROR((B6-C6)/D6,0)=MEDIAN(Series!$B$2:$B$16)=MEDIAN(ABS(Series!$B$2:$B$16-F6))
7=Series!A7=Series!B7=AVERAGE(Series!$B$2:$B$17)=STDEV.S(Series!$B$2:$B$17)=IFERROR((B7-C7)/D7,0)=MEDIAN(Series!$B$2:$B$17)=MEDIAN(ABS(Series!$B$2:$B$17-F7))
8=Series!A8=Series!B8=AVERAGE(Series!$B$2:$B$18)=STDEV.S(Series!$B$2:$B$18)=IFERROR((B8-C8)/D8,0)=MEDIAN(Series!$B$2:$B$18)=MEDIAN(ABS(Series!$B$2:$B$18-F8))
9=Series!A9=Series!B9=AVERAGE(Series!$B$2:$B$19)=STDEV.S(Series!$B$2:$B$19)=IFERROR((B9-C9)/D9,0)=MEDIAN(Series!$B$2:$B$19)=MEDIAN(ABS(Series!$B$2:$B$19-F9))
Rows 2 onward of ‘Detection’. The workbook ships with sample data throughout so every formula has something to calculate the moment you open it.

What’s in the file

Start hereSettingsSeriesDetectionSummaryResults

What it explains

Download it

The workbook is free with a DataHub Pro account. Free accounts download three templates and keep them forever — re-downloading one you already have never counts again. Pro accounts get all 201.

Sign in to download →
No card required for the free account.
Already filled it in? Upload it back and DataHub Pro recognises this workbook, calculates the totals, builds the KPI scorecard dashboard and watches its key numbers (Robust outliers, Points in a level shift, Flagged point rate). Upload next period’s version and it shows you what moved. Upload your filled-in file →

Related templates

ABC / XYZ Inventory ClassificationValue concentration crossed with demand predictability into a nine-box, each cell with iAnomaly Detection TemplateFlags values sitting outside the normal range using IQR and standard-deviation rules.Bank Reconciliation with Auto-MatchTwo matching passes — exact key, then amount within a date window — with the reconciliatCorrelation Matrix TemplateSee which columns move together in a colour-coded matrix.Data Cleaning Checklist TemplateEleven checks over a column, including the non-breaking space TRIM cannot remove.Data Validation Rulebook & Quality ScoreTwelve explicit rules, severity-weighted, scored per row and per field, with a fix-first

Learn the method

Anomaly Detection in Excel — Find Outliers and Revenue Spikes with Rolling Z-ScoresStep-by-step tutorialMoving Average in Excel — Simple, Weighted & Exponential (2026)Step-by-step tutorial

Writing about Rolling Z-Score & MAD Outlier Detection? Link to this page.

The preview above is a real slice of the file, so this page is worth citing on its own — readers can see the formulas without downloading anything or making an account. Copy the line below.

<a href="https://www.datahubpro.co.uk/excel-templates/robust-outlier-detection">Rolling Z-Score & MAD Outlier Detection</a> — free Excel template from DataHub Pro

What you may do: link to this page, quote from it, and screenshot the preview, with attribution to DataHub Pro. Use the workbook itself in your own business, commercially, with no restriction and no attribution required. What you may not do: host the .xlsx elsewhere or resell it — send people here instead, where it stays current.

Or skip the spreadsheet entirely

Upload your own file and DataHub Pro runs the same analysis on your numbers — free and unlimited, no add-in, no macro.

Analyse your own file free →
50+ analyses · works in the browser