Create Actual and Forecast Series in an Excel Line Chart
Question details
Create an Excel line chart that displays actual and forecast values as separate, differently colored series.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A monthly chart needs to distinguish completed actual values from future forecast values.
- Observed behavior
- Actual and forecast months should appear in separate chart series, with unwanted points omitted.
Arrange the months in order and place actual and forecast values in separate columns. Check that the values are numeric and that the month labels cover the full chart period.
Add separate actual and forecast series to the Excel chart
Use helper columns and NA() to plot actual values and forecast-only months in different colors.
The example assumes months are in column A, actual values are in column B, and forecast values are in column C. Adjust the cell references to match your worksheet.
The two lines will be separate at the transition unless both series share a point.
In D1, enter Actual Series. In D2, enter =IF(ISNUMBER(B2),B2,NA()) and fill the formula down through the month rows.
In E1, enter Forecast Series. In E2, enter =IF(ISNUMBER(B2),NA(),IF(ISNUMBER(C2),C2,NA())) and fill it down. This plots forecasts only where no numeric actual value exists.
Select the chart and choose Chart Design > Select Data. Add columns D and E as the series values, and set the horizontal axis labels to the month cells in column A.
Click each line, open Format Data Series, and choose a different line color for Actual Series and Forecast Series.
To join the lines, replace the Forecast Series formula in column E for the last actual month with a reference to that month's actual value, such as =B6. Leave the forecast formulas in the following rows.

Build an actual and forecast line chart in WPS Spreadsheets
Use helper columns in WPS Spreadsheets to separate actual and forecast values, then add both series to a line chart and format them with different colors.
- 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your Excel workbook.
- 2. Prepare the series: Add Actual Series and Forecast Series columns. With actual values in B and forecasts in C, enter =IF(ISNUMBER(B2),B2,NA()) in D2 and =IF(ISNUMBER(B2),NA(),IF(ISNUMBER(C2),C2,NA())) in E2, then fill both formulas down.
- 3. Insert a line chart: Select the month labels and the two helper columns, then choose Insert > Line Chart. If the columns are not adjacent, create the chart and use its Select Data option to add the series and month labels.
- 4. Set series colors: Select each line and open Format Data Series to assign different colors. To connect the lines at the transition, replace the forecast helper formula for the last actual month with a reference to that month's actual value.

Frequently Asked Questions
Why does the forecast line start after the actual line ends?
The forecast formula omits every month with an actual value, so the series do not share a point. To connect them, replace the forecast helper formula for the last actual month with a reference to that month's actual cell.
Will NA() values appear as zero on the chart?
Excel normally does not plot #N/A values returned by NA(). Use NA() in the helper cells where a series should have no point rather than entering zero.
How do I change the forecast line color in Excel?
Click the forecast line, open Format Data Series, and choose a line color. You can also choose a different color for the actual series.
How do I show empty cells as gaps?
Select the chart and choose Chart Design > Select Data > Hidden and Empty Cells, then select Gaps. This setting concerns empty cells; cells containing an NA() formula are not empty.




