How to Forecast a Trend in Excel
In this article
To forecast a trend in Excel, put your dates in one column and values in the next, select the data, then use the Forecast Sheet feature on the Data tab. Excel builds a chart with a confidence interval and writes a new worksheet containing the forecast values. For a quick single number you can instead use the FORECAST.LINEAR function. The steps below cover both methods, plus what to check when the result looks wrong.
What You'll Need
- Excel for Microsoft 365, Excel 2021, 2019, or 2016 on Windows or Mac. The Forecast Sheet button is not available in Excel for the web or in Excel 2013 and earlier.
- At least two historical data points, ideally 10 or more, with dates or times in one column and numeric values in the next.
- Dates entered as real Excel dates, not text. If they are left-aligned in the cell, Excel may be treating them as text.
- Values in a consistent unit and at a consistent interval (daily, weekly, monthly). Gaps or mixed units distort the trend.
Step-by-Step
- Open your workbook and lay out the data in two adjacent columns. Put dates in column A and the values you want to forecast in column B, with a header row such as Date and Sales. Do not leave blank rows inside the range.
- Select the entire range including headers, for example A1:B25. If you select only the values, Excel may not recognise the timeline.
- Go to the Data tab on the ribbon and click Forecast Sheet. The button sits in the Forecast group. Labels can differ slightly by version, device or region, so if you do not see it, check that your Excel version supports it and that the selected range has dates and numbers.
- In the Create Forecast Worksheet dialog, choose a line chart or column chart. The line chart is easier to read for a trend.
- Set the Forecast End date. This is the last date you want predicted. Pick a date that matches your data interval, for example the end of the next quarter if your data is monthly.
- Open Options if you need to change the confidence interval or the seasonality. The default confidence interval is 95%. Leave seasonality on Automatic unless you know your data has a fixed cycle that Excel is missing.
- Click Create. Excel inserts a new worksheet with a chart and a table. The table includes the forecast values and lower and upper confidence bounds.
- Read the result. The solid line is history, the dotted line is the forecast, and the shaded band is the confidence interval. A wide band means the forecast is less certain.
- For a single forecasted value without a chart, type
=FORECAST.LINEAR(new_x, known_ys, known_xs)in an empty cell. For example,=FORECAST.LINEAR(D30, B2:B25, A2:A25)predicts the value at the date in D30. In older workbooks the function isFORECAST, which works the same way. - Save the workbook. If you change the historical data later, rerun Forecast Sheet or refresh the formula to update the prediction.
Common Mistakes
- Dates stored as text. If Excel does not recognise the timeline, Forecast Sheet is greyed out or produces an error. Convert the column with Text to Columns or re-enter the dates in a recognised format.
- Too few data points. Two points draw a straight line but tell you nothing about reliability. Use at least 10 points where possible.
- Irregular intervals. Mixing weekly and monthly rows, or leaving gaps, skews the trend. Keep one consistent interval.
- Forecasting across a structural change. A price change, a new competitor, or a one-off event can break the pattern. Excel extrapolates the past; it does not know about events outside the data.
- Ignoring the confidence interval. Treating the dotted line as a guarantee is the most common error. The band shows the range the actual value is likely to fall in.
- Using the wrong function argument order. FORECAST.LINEAR expects the new x value first, then the known y values, then the known x values. Reversing the last two gives a wrong result.
Tips
- Plot the raw data first with an Excel line chart. A quick look shows whether a straight-line forecast makes sense or whether the data is seasonal.
- Keep the forecast worksheet separate from your source data so you can rerun the forecast without overwriting history.
- Use a shorter forecast horizon for more reliable results. Predicting one or two periods ahead is safer than predicting a year out.
- If your data is seasonal, let Excel detect seasonality automatically, or set the seasonality length manually if you know the cycle, such as 12 for monthly data.
- Label the forecast clearly in the chart title and note the date it was generated, so readers know how current it is.
Troubleshooting
- Forecast Sheet is greyed out. Check that you selected a range with a date column and a numeric column, that the dates are real dates, and that your Excel version includes the feature. Excel for the web does not offer it.
- The forecast looks flat or wrong. Check for text-formatted numbers, blank rows, or duplicate dates. Also confirm the interval is consistent.
- An error such as #VALUE! appears. One of the ranges contains text or empty cells. Clean the data and try again.
- The confidence band is very wide. This usually means the historical data is noisy or too short. Add more data points or shorten the forecast horizon.
- The function returns a different result from Forecast Sheet. The two methods use the same linear model, but Forecast Sheet may apply seasonality. Compare with seasonality turned off in Options.
- The file will not recalculate. Check that calculation is set to Automatic under Formulas. If it is set to Manual, press F9 to recalculate.
Frequently Asked Questions
Can I forecast a trend in Excel for the web?
No. The Forecast Sheet feature is not available in Excel for the web. You can still use FORECAST.LINEAR in a formula, but the chart and confidence interval are not generated for you.
What is the difference between FORECAST.LINEAR and Forecast Sheet?
FORECAST.LINEAR returns a single predicted value from a straight-line fit. Forecast Sheet builds a full table and chart, can detect seasonality, and adds confidence bounds.
How many data points do I need?
Two is the technical minimum, but 10 or more gives a more meaningful trend. More data points generally narrow the confidence interval.
Can I forecast more than one column at once?
Yes. Select multiple value columns alongside the date column and Forecast Sheet creates a forecast for each one.
Does Forecast Sheet work with weekly or daily data?
Yes, as long as the dates are real dates and the interval is consistent. Set the forecast end date to match the same interval.
Why does my forecast ignore a recent spike?
Excel fits a trend to the whole series. A single spike is treated as noise unless it repeats as part of a seasonal pattern. Consider whether the spike represents a permanent change before relying on the forecast.