Function · Forecasting and trends
Excel FORECAST.ETS function
The Excel FORECAST.ETS function predicts a future value with exponential smoothing. Monthly sales keep their seasonal pattern.
Syntax =FORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation])
=FORECAST.ETS(B10,C2:C9,B2:B9,4)Arguments
| Name | Required | What to pass |
|---|---|---|
| target_date | Required | The date or number you want a prediction for. It should continue the timeline. A target earlier than the end of the history is #NUM!. Text that is not a date or a number is #VALUE!. |
| values | Required | The historical values, such as monthly sales. The range has to be the same size as timeline. A different size is #N/A. |
| timeline | Required | The dates or index numbers paired with values. The step has to be constant. Month starts on the 1st qualify. A step Excel cannot treat as constant, including a step of 0, is #NUM!. The range does not have to be sorted. Duplicate timestamps are #VALUE!. |
| seasonality | Optional | 1, the default, detects the period. 0 means no seasonality, so the forecast is a smoothed trend without a repeating pattern. A positive whole number is the period length, up to 8,760. Any other value, including a period above 8,760, is #NUM!. |
| data_completion | Optional | How to fill a gap of up to 30% of the points. 1, the default, uses the average of the neighboring points. 0 treats the missing points as zeros. |
| aggregation | Optional | How to combine values that share a timestamp. Leave it blank and Excel averages them. 1 is AVERAGE, 2 is COUNT, 3 is COUNTA, 4 is MAX, 5 is MEDIAN, 6 is MIN, and 7 is SUM. Microsoft's support page says a value of 0 also uses AVERAGE. |
Examples
The next quarter after two seasonal years
=FORECAST.ETS(B10,C2:C9,B2:B9,4)Result The Q1 shape continues. Excel's ETS fit sets the dollar amount.
Seasonality turned off
=FORECAST.ETS(B10,C2:C9,B2:B9,0)Result A smoothed trend with the seasonal swing left out.
A missing March filled from its neighbors
=FORECAST.ETS(DATE(2026,6,1),C2:C5,B2:B5,1,1)Result 1 fills March from February and April. 0 treats March as zero.
| A | B | C | |
|---|---|---|---|
| 1 | Quarter | Index | Sales |
| 2 | 1/1/2025 | 1 | 10000 |
| 3 | 4/1/2025 | 2 | 14000 |
| 4 | 7/1/2025 | 3 | 12000 |
| 5 | 10/1/2025 | 4 | 18000 |
| 6 | 1/1/2026 | 5 | 11000 |
| 7 | 4/1/2026 | 6 | 15000 |
| 8 | 7/1/2026 | 7 | 13000 |
| 9 | 10/1/2026 | 8 | 19000 |
| 10 | 1/1/2027 | 9 |
FORECAST.ETS predicts one future value with the AAA form of exponential smoothing. It is not the straight line that TREND and FORECAST.LINEAR fit. The timeline needs a constant step. Month starts on the 1st count, which is the case Microsoft’s page gives. An index of 1, 2, 3 also counts. A step Excel cannot space evenly is #NUM!. Duplicate timestamps are #VALUE!. values and timeline of different lengths are #N/A.
Seasonality 1, the default, asks Excel to detect the period. 0 turns the repeating pattern off. A positive whole number, up to 8,760, is the period length, and 12 is a monthly year. Anything else is #NUM!. data_completion 1, the default, fills a gap of up to 30% with the average of the neighboring points. 0 fills that gap with zero. aggregation combines values that share a timestamp. Leave it blank and Excel averages them. 1 is AVERAGE, 2 is COUNT, 3 is COUNTA, 4 is MAX, 5 is MEDIAN, 6 is MIN, and 7 is SUM. The support page says 0 also uses AVERAGE. A target earlier than the last historical point is #NUM!.
Eight quarters from 1/1/2025 through 10/1/2026 rise $1,000 from one year to the next and peak in Q4. The forecast at index 9, labeled 1/1/2027, should keep that seasonal shape. This page does not print the dollar amount. Excel’s ETS fit sets it, and LibreOffice FORECAST.ETS.ADD can differ. FORECAST.ETS.CONFINT returns an interval around the forecast. FORECAST.ETS.SEASONALITY returns the period Excel detected. FORECAST.ETS.STAT returns a fit statistic. On Excel for Windows, Data, Forecast group, Forecast Sheet builds a new worksheet of those formulas and a chart. EDATE and the month sequence LAMBDA can write the month starts. The 13-Week Cash Flow Forecast lays out thirteen weeks of cash by date, and the Sales Pipeline Tracker weights open deals. Neither workbook is an ETS fit.