Chart & Visualization Issues

Create Actual and Forecast Series in an Excel Line Chart

Steve KSteve K Dec 2, 2026 868 views

Question details

Create an Excel line chart that displays actual and forecast values as separate, differently colored series.

Create Actual and Forecast Series in an Excel Line Chart
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the actual series

In D1, enter Actual Series. In D2, enter =IF(ISNUMBER(B2),B2,NA()) and fill the formula down through the month rows.

2
Create the forecast series

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.

3
Add both series to the chart

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.

4
Format the lines

Click each line, open Format Data Series, and choose a different line color for Actual Series and Forecast Series.

5
Connect the transition if needed

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.

Add separate actual and forecast series to the Excel chart
Empty cells and NA(): NA() returns #N/A, which Excel normally does not plot. For genuinely empty cells, use Chart Design > Select Data > Hidden and Empty Cells and choose Gaps if needed; this setting applies to empty cells, not the #N/A values returned by NA().
Create charts in WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your Excel workbook.
  2. 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. 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. 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.
Distinguish actual and forecast months with separate chart seriesUse formulas to omit points that should not be plottedOpen and edit Microsoft Excel XLSX and XLS filesCreate and format charts in a familiar spreadsheet interface
microsoft office alternative - wps office

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.