Statistical function

FORECAST.ETS.SEASONALITY function

Returns the length of the repeating seasonal pattern that Excel detects in a time series, e.g. 4 for quarterly data or 12 for monthly.

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

Excel 2016 and laterNot in Google Sheets

Syntax

FORECAST.ETS.SEASONALITY(values, timeline, [data_completion], [aggregation])
ArgumentWhat it means
valuesRequiredThe historical values.
timelineRequiredEvenly spaced dates or period numbers for values.
data_completionOptional1 = fill gaps by interpolation (default), 0 = treat gaps as zero.
aggregationOptionalHow to combine values that share a date; 1 = AVERAGE (default).

Returns: A whole number: the number of periods in one seasonal cycle that Excel found.

How FORECAST.ETS.SEASONALITY works

Before trusting an exponential-smoothing forecast you want to know what pattern Excel thinks it has found. FORECAST.ETS.SEASONALITY tells you: it returns the season length detected automatically by FORECAST.ETS when its seasonality argument is left at 1. Quarterly data with a yearly cycle should give 4, monthly data 12, daily data with a weekly rhythm 7.

If the number looks wrong (say 5 for monthly sales), the history may be too short, too noisy or contain one-off events. In that case you can force the correct length by typing it into the seasonality argument of FORECAST.ETS. The detection needs a reasonable amount of history: at least two full cycles, ideally three or more.

Examples

1Detect the quarterly cycle

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

Result: 4

Every fourth quarter repeats the same shape (low Q1, high Q4), so Excel reports a season length of 4. That is the value FORECAST.ETS uses automatically for this data.

2A school-term pattern of 3

E2fx=FORECAST.ETS.SEASONALITY(C2:C10, A2:A10)
ABCDE
1TermSeasonUniform sales
21Autumn8203
32Spring310
43Summer450
54Autumn860
65Spring330
76Summer470
87Autumn900
98Spring350
109Summer490

Result: 3

A uniform shop sells most in the autumn term, least in spring and a medium amount in summer, every school year. With three terms a year the detected cycle is 3, even though nothing in the data says "year".

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The timeline step is irregular or there are too few points.Use evenly spaced dates and more history.
#N/Avalues and timeline differ in size.Use equal-length ranges.

Tips

  • If the detected length disagrees with business sense, trust business sense and type the length into FORECAST.ETS directly.

Google Sheets

No exponential smoothing functions; inspect seasonality with a chart or with lagged CORREL checks.

FORECAST.ETS.SEASONALITY 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.SÆSONUDSVING
DutchVOORSPELLEN.ETS.SEASONALITY
FinnishENNUSTE.ETS.KAUSIVAIHTELU
FrenchPREVISION.ETS.CARACTERESAISONNIER
GermanPROGNOSE.ETS.SAISONALITÄT
HungarianELŐREJELZÉS.ESIM.SZEZONALITÁS
ItalianPREVISIONE.ETS.STAGIONALITÀ
Norwegian (Bokmål)PROGNOSE.ETS.SESONGAVHENGIGHET
PolishREGLINX.ETS.SEZONOWOŚĆ
Portuguese (Brazil)PREVISÃO.ETS.SAZONALIDADE
Portuguese (Portugal)PREVISÃO.ETS.SAZONALIDADE
RussianПРЕДСКАЗ.ETS.СЕЗОННОСТЬ
SpanishPRONOSTICO.ETS.ESTACIONALIDAD
SwedishPROGNOS.ETS.SÄSONGSBEROENDE
TurkishTAHMİN.ETS.MEVSİMSELLİK