FORECAST.ETS.SEASONALITY Function

Excel Functions › Statistical

Excel 2016+ Statistical

The Excel FORECAST.ETS.SEASONALITY function returns the length of the repeating seasonal pattern that Excel detects in a time series — for example, 12 for a yearly cycle in monthly data.


Quick answer:
=FORECAST.ETS.SEASONALITY(values, timeline) detected season length, e.g. 12 months

Syntax

=FORECAST.ETS.SEASONALITY(values, timeline, [data_completion], [aggregation])
ArgumentDescription
valuesRequiredThe historical data range to analyse (e.g. monthly figures in B2:B40).
timelineRequiredThe matching, evenly spaced range of dates or numbers (e.g. A2:A40), the same size as values.
data_completionOptional1 (default) interpolates missing points; 0 treats gaps as zeros.
aggregationOptionalHow duplicate timeline entries are combined (1 = AVERAGE, the default).

How to use it

Before forecasting, it helps to know whether your data even has a season — and how long it is. FORECAST.ETS.SEASONALITY runs Excel's automatic detection and returns that length as a whole number:

=FORECAST.ETS.SEASONALITY(B2:B40, A2:A40) // e.g. 12 for a yearly cycle in monthly data

A result of 12 on monthly data means each year repeats; 7 on daily data means a weekly rhythm; 4 on quarterly data means an annual cycle. A result of 0 (or 1) means Excel found no meaningful seasonality.

Tip: feed the number you get back into the seasonality argument of FORECAST.ETS to lock the cycle in place, rather than letting each call auto-detect independently. This keeps a whole dashboard of ETS formulas consistent.

The detection needs enough history to see at least a couple of full cycles — two years of monthly data, for instance. Too little history, or a flat/noisy series, returns 0.

Try it: interactive demo

Live demo

Pick a FORECAST.ETS.SEASONALITY example to see the formula and its result.

Result:

Practice workbook

📊
Download the free FORECAST.ETS.SEASONALITY practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does the returned number mean?
It is the number of data points in one full seasonal cycle. On monthly data, 12 means a yearly season; on daily data, 7 means a weekly season. 0 means no seasonality was detected.
Why does it return 0?
Excel returns 0 when it can't find a reliable repeating pattern — usually too little history (fewer than about two full cycles), a flat trend, or very noisy data.
Should I use the result in FORECAST.ETS?
Yes — pass it as the seasonality argument so every forecast uses the same fixed cycle length instead of re-detecting it. This is faster and keeps related formulas consistent.
Which Excel versions support it?
FORECAST.ETS.SEASONALITY was added in Excel 2016 and is available in Microsoft 365. It is not in Excel 2013 or earlier.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: FORECAST.ETS.CONFINT · FORECAST.ETS.STAT · FORECAST.LINEAR · TREND · GROWTH