Practice free

FORECAST.ETS.SEASONALITY function

FORECAST.ETS.SEASONALITY returns the length of the repeating pattern Excel detects in your data, such as 12 for monthly data with a yearly cycle. It returns 0 if no pattern is found.

Example

Practice this in the app

Syntax

FORECAST.ETS.SEASONALITY(values, timeline, [data_completion], [aggregation])

Arguments in [square brackets] are optional.

values (required)
Historical values.
timeline (required)
Dates or numbers with a constant step.
data_completion (optional)
1 interpolate (default), 0 zeros.
aggregation (optional)
How to merge duplicate timestamps.

Returns: The length of the repeating pattern Excel detects in the data.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=FORECAST.ETS.SEASONALITY(Data!AF1:AF24,Data!AE1:AE24) 4 Detected period
=FORECAST.ETS.SEASONALITY(Data!F1:F5,Data!F1:F5) 0 Linear data (no season)
=FORECAST.ETS.SEASONALITY(Data!AH1:AH6,Data!AG1:AG6) 0 Duplicate timeline
=FORECAST.ETS.SEASONALITY(Data!AH1:AH6,Data!AG1:AG6,1,2) 0 Aggregation 2
=FORECAST.ETS.SEASONALITY(Data!AF1:AF23,Data!AE1:AE24) #N/A Different sizes

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Returns 0 when no seasonal pattern is found.
  • Needs enough history to see the cycle.

Where it works

Excel
FORECAST.ETS.SEASONALITY arrived in Excel 2016. Older versions do not have it.
Google Sheets
No direct equivalent. No Sheets counterpart.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .