Statistical function

FORECAST.ETS function

Forecasts a future value of a time series with exponential smoothing (AAA), automatically detecting trends and seasonal patterns.

Available in Microsoft 365, Excel 2016 and later, Excel for the web

Excel 2016 and laterNot in Google Sheets

Syntax

FORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation])
ArgumentWhat it means
target_dateRequiredThe date or period number to forecast. Must be after the end of the timeline.
valuesRequiredThe historical values (sales, visits, demand).
timelineRequiredDates or period numbers that go with values, evenly spaced (every day, week, month or period number).
seasonalityOptional1 (default) = detect the season length automatically; 0 = no seasonality; a whole number such as 4, 7 or 12 = use that season length (maximum 8,760).
data_completionOptionalHow to treat missing points: 1 (default) fills them by averaging neighbours; 0 treats them as zero.
aggregationOptionalHow to combine values that share the same date: 1 = AVERAGE (default), 2 COUNT, 3 COUNTA, 4 MAX, 5 MEDIAN, 6 MIN, 7 SUM.

Returns: A number: the forecast for target_date.

How FORECAST.ETS works

FORECAST.ETS is Excel's built-in time-series forecaster. It uses the AAA version of exponential smoothing: Additive error, Additive trend and Additive seasonality. In plain words, it keeps three running estimates (the current level, the current trend and how much each point of the season sits above or below normal) and updates them as it walks through your history, giving more weight to recent data. The forecast is level + trend + the seasonal effect for the target period.

Its big advantage over FORECAST.LINEAR is seasonality. Retail sales that peak every December, ice-cream demand every summer or website visits that dip every weekend are learned automatically. The timeline must have a constant step (every month, every quarter, every day); a few missing points are filled in for you, and duplicates are combined with the aggregation method.

Excel chooses the smoothing parameters by optimisation, so results can differ slightly between Excel versions and cannot be reproduced exactly with a hand formula. The values shown below are therefore approximate ("about"). Use FORECAST.ETS.CONFINT for the uncertainty range, FORECAST.ETS.SEASONALITY to see the season length it detected, and Data > Forecast Sheet to build the same model with a chart in one click.

Examples

1Quarterly sales with a regular pattern

E2fx=FORECAST.ETS(12, C2:C12, A2:A12)
ABCDE
1Quarter no.QuarterSales (k€)
212024 Q1175about 280
322024 Q2210
432024 Q3225
542024 Q4240
652025 Q1195
762025 Q2230
872025 Q3245
982025 Q4260
1092026 Q1215
11102026 Q2250
12112026 Q3265

Result: about 280

Sales follow a clear 4-quarter pattern (Q1 low, Q4 high) on top of growth of 5 k€ a quarter. FORECAST.ETS detects the season length of 4 and forecasts quarter 12 (2026 Q4) at about 280 k€: last Q4's 260 plus 20 for a year of growth. Because the history is perfectly regular, Excel's fitted model lands on 280 or within a fraction of it.

2Real-world, noisier history

E2fx=FORECAST.ETS(12, C2:C12, A2:A12, 4)
ABCDE
1Quarter no.QuarterSales (k€)
212024 Q1179about 282
322024 Q2204
432024 Q3228
542024 Q4238
652025 Q1200
762025 Q2226
872025 Q3242
982025 Q4266
1092026 Q1210
11102026 Q2252
12112026 Q3269

Result: about 282

With small random ups and downs the forecast is no longer exact. Here the season length is fixed at 4 instead of being detected. Our own AAA fit gives roughly 282 k€; Excel's optimiser may return a figure a few units different, so treat it as approximate and report it together with FORECAST.ETS.CONFINT.

3Compare with a straight line

E2fx=FORECAST.LINEAR(12, C2:C12, A2:A12)
ABCDE
1Quarter no.QuarterSales (k€)
212024 Q1175264.73
322024 Q2210
432024 Q3225
542024 Q4240
652025 Q1195
762025 Q2230
872025 Q3245
982025 Q4260
1092026 Q1215
11102026 Q2250
12112026 Q3265

Result: 264.73

A straight line through the same data ignores the season and predicts 264.73 k€ for quarter 12 (2 decimals), well below the Q4 peak of about 280 that FORECAST.ETS expects. This is why ETS is the better tool for seasonal businesses.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 17 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The timeline does not have a constant step, target_date is before the end of the timeline, or seasonality is outside 0–8,760.Sort the timeline, make the step regular and forecast a later date.
#VALUE!seasonality, data_completion or aggregation is not a valid number, or target_date is text.Check the optional arguments.
#N/Avalues and timeline have different sizes.Use ranges of equal length.

Tips

  • Give the model at least two or three full seasons of history; with less, seasonality detection is unreliable.
  • Sort by date is not required, but the step between dates must be consistent once sorted.
  • Data > Forecast Sheet writes these same formulas for you, with upper and lower confidence bounds and a chart.

Questions

Why doesn't my result match another tool's exponential smoothing?

Excel picks its own starting values and smoothing parameters by optimisation. Other tools use different starting rules, so forecasts usually differ by a small amount.

Can the timeline be monthly dates?

Yes. Use the same day each month (e.g. the 1st). Excel recognises a monthly step even though months have different numbers of days.

Google Sheets

No exponential smoothing forecast; use FORECAST/TREND for a linear forecast or a chart trendline.

FORECAST.ETS in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishPROGNOSE.ETS
DutchVOORSPELLEN.ETS
FinnishENNUSTE.ETS
FrenchPREVISION.ETS
GermanPROGNOSE.ETS
HungarianELŐREJELZÉS.ESIM
ItalianPREVISIONE.ETS
Norwegian (Bokmål)PROGNOSE.ETS
PolishREGLINX.ETS
Portuguese (Brazil)PREVISÃO.ETS
Portuguese (Portugal)PREVISÃO.ETS
RussianПРЕДСКАЗ.ETS
SpanishPRONOSTICO.ETS
SwedishPROGNOS.ETS
TurkishTAHMİN.ETS