# FORECAST.ETS.SEASONALITY Function

> Detect the length of the seasonal pattern in a time series with FORECAST.ETS.SEASONALITY in TX Sheet Control: values, timeline and approximate results.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > FORECAST.ETS.SEASONALITY Function
- **282 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets-seasonality/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets-seasonality/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets-seasonality/llms-full.txt

---

Return the length of the seasonal pattern that FORECAST.ETS detects in a series. `values` are the historical values and `timeline` their dates or numbers; `data_completion` and `aggregation` work as in [FORECAST.ETS](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets/llms-full.txt). The result is 0 when no seasonal pattern is found. The detection uses additive exponential smoothing and is approximate: it can differ from Excel.

### Syntax

```text
FORECAST.ETS.SEASONALITY(values, timeline, data_completion, aggregation)
```

Category: Statistics. Minimum arguments: 2. Maximum arguments: 4.

Available for supported offline calculation.

> Warning
>
> **Approximate Calculation.** Review accuracy for the application.

### Examples

```text
=FORECAST.ETS.SEASONALITY({2;4;6;8;10},{1;2;3;4;5})
```

The formula returns 0, because a series that grows linearly has no seasonal pattern.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [FORECAST.ETS.CONFINT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets-confint/llms-full.txt)
- **Next:** [FORECAST.ETS.STAT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets-stat/llms-full.txt)
