The FORECAST.ETS.CONFINT function returns a confidence interval for the forecast value at the specified target date.

A confidence interval of 95% means that 95% of future points are expected to fall within this radius from the result FORECAST.ETS forecasted (with normal distribution). Using confidence interval can help grasp the accuracy of the predicted model. A smaller interval would imply more confidence in the prediction for this specific point.

**Syntax**:= FORECAST.ETS.CONFINT(target_date, values, timeline, [confidence_level], [seasonality], [data_completion], [aggregation])

The FORECAST.ETS.CONFINT function syntax has the following arguments:

**Target_date**Required. The data point for which you want to predict a value. Target date can be date/time or numeric. If the target date is chronologically before the end of the historical timeline, FORECAST.ETS.CONFINT returns the #NUM! error.**Values**Required. Values are the historical values, for which you want to forecast the next points.**Timeline**Required. The independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can’t be zero. The timeline isn’t required to be sorted, as FORECAST.ETS.CONFINT will sort it implicitly for calculations. If a constant step can’t be identified in the provided timeline, FORECAST.ETS.CONFINT will return the #NUM! error. If timeline contains duplicate values, FORECAST.ETS.CONFINT will return the #VALUE! error. If the ranges of the timeline and values aren’t of same size, FORECAST.ETS.CONFINT will return the #N/A error.**Confidence_level**Optional. A numerical value between 0 and 1 (exclusive), indicating a confidence level for the calculated confidence interval. For example, for a 90% confidence interval, a 90% confidence level will be computed (90% of future points are to fall within this radius from prediction). The default value is 95%. For numbers outside of the range (0,1), FORECAST.ETS.CONFINT will return the #NUM! error.**Seasonality**Optional. A numeric value. The default value of 1 means Excel detects seasonality automatically for the forecast and uses positive, whole numbers for the length of the seasonal pattern. 0 indicates no seasonality, meaning the prediction will be linear. Positive whole numbers will indicate to the algorithm to use patterns of this length as the seasonality. For any other value, FORECAST.ETS.CONFINT will return the #NUM! error.Maximum supported seasonality is 8,760 (number of hours in a year). Any seasonality above that number will result in the #NUM! error.**Data completion**Optional. Although the timeline requires a constant step between data points, FORECAST.ETS.CONFINT supports up to 30% missing data, and will automatically adjust for it. 0 will indicate the algorithm to account for missing points as zeros. The default value of 1 will account for missing points by completing them to be the average of the neighboring points.**Aggregation**Optional. Although the timeline requires a constant step between data points, FORECAST.ETS.CONFINT will aggregate multiple points which have the same time stamp. The aggregation parameter is a numeric value indicating which method will be used to aggregate several values with the same time stamp. The default value of 0 will use AVERAGE, while other options are SUM, COUNT, COUNTA, MIN, MAX, MEDIAN.

**Example**: Let’s look at some Excel FORECAST.ETS.CONFINT function examples and explore how to use the FORECAST.ETS.CONFINT function as a worksheet function in Microsoft Excel:

Typically, you’ll use the FORECAST.ETS.CONFINT function in conjunction with the FORECAST.ETS function to calculate the upper and lower confidence intervals for your forecast.

The Excel Forecast.Ets.Confint function can be used to calculate a confidence interval (with a confidence level of 95%) for this forecast earnings value, as follows:

**Syntax**: =FORECAST.ETS.CONFINT(B14,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 912.6283959

Based on the Excel spreadsheet above, the following FORECAST.ETS.CONFINT examples would return:

**Syntax**: =FORECAST.ETS.CONFINT(B15,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 919.2520039

**Syntax**: =FORECAST.ETS.CONFINT(B16,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 927.345869

**Syntax**: =FORECAST.ETS.CONFINT(B17,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 934.6615174

**Syntax**: =FORECAST.ETS.CONFINT(B18,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 942.4022828

**Syntax**: =FORECAST.ETS.CONFINT(B19,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 949.7127071

**Syntax**: =FORECAST.ETS.CONFINT(B20,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 957.6785994

**Syntax**: =FORECAST.ETS.CONFINT(B21,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 965.3399926

**Syntax**: =FORECAST.ETS.CONFINT(B22,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 972.807408

**Syntax**: =FORECAST.ETS.CONFINT(B23,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 980.9392586

**Syntax**: =FORECAST.ETS.CONFINT(B24,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 988.5089951

**Syntax**: =FORECAST.ETS.CONFINT(B25,$C$2:$C$13,$B$2:$B$13,0.95,3,1,1)

**Result**: 996.6340838

Therefore 95% of the time, the earnings value for January 2020 is expected to fall within 912.6283959 of the calculated value 10498.62063.

I.e. 95% of the time, the earnings value for January 2020 is expected to fall in the range:

When using FORECAST.ETS.CONFINT in conjunction with other FORECAST.ETS functions, ensure the arguments are consistent, e.g. seasonality, aggregation etc. should be the same in all functions.

**Chart Forecast Data**

Of course, the real benefits of tabling this data is realised when we visualise it in a chart:

**Tip:** Make sure the last Sales figure is repeated in the Forecast column (in cell C13 in this example), to ensure continuity in the chart line:

**Note**:

- FORECAST.ETS.CONFINT Function is added in Excel 2016.
- This Function uses advanced machine learning algorithms, such as Exponential Triple Smoothing (ETS).
- If the target date is chronologically before the end of the historical timeline, FORECAST.ETS.CONFINT returns the #NUM! error.
- If a constant step cannot be identified in the provided timeline, FORECAST.ETS.CONFINT returns the #NUM! error.
- If timeline contains duplicate values, FORECAST.ETS.CONFINT returns the #VALUE! Error.
- If the ranges of the timeline and values are not of same size, FORECAST.ETS.CONFINT returns the #N/A error.
- If the Confidence level is outside the range (0,1), FORECAST.ETS.CONFINT returns the #NUM! error.
- If the Seasonality is <0, or >8760, or a non-numeric value, FORECAST.ETS.CONFINT returns the #NUM! error.