Extend a Goal Line to the Edges of an Excel Combination Chart
Question details
Extend a goal line across the entire plot area of an Excel combination chart.

- Product
- Microsoft Excel for Microsoft 365
- Device & OS
- not provided
- Scenario
- A combination chart displays bar series and a goal line, and the user wants the line to reach both edges of the plot area.
- Observed behavior
- The goal line stops short of the plot area edges.
Identify the goal value and check the minimum and maximum bounds of the chart's primary vertical axis. You will also need two empty columns or rows for the goal line's endpoint data.
Use an XY scatter series for the goal line
Create a two-point goal series and use a secondary horizontal axis to position its endpoints at the plot area edges.
The two X values define the line's endpoints, while identical Y values keep the line horizontal. The secondary vertical axis must use the same bounds as the primary vertical axis so the goal appears at the correct height.
In empty worksheet cells, create an X column containing 0 and 1 and a Goal column containing the same goal value in both rows.
Copy the Goal header and its two values, select the chart, and choose Home > Paste > Paste Special. Add the copied cells as a new series, using the first row as the series name.
Select the chart and choose Chart Design > Change Chart Type > Combo. Set the new Goal series to Scatter with Straight Lines and place it on the secondary axis.
Choose Chart Design > Select Data, select the new Goal series, and click Edit. Set Series X values to the cells containing 0 and 1, and Series Y values to the two goal-value cells.
Use Chart Design > Add Chart Element > Axes to show the secondary horizontal axis if it is not visible. Right-click it, choose Format Axis, and set Minimum to 0 and Maximum to 1. In Format Axis for the secondary vertical axis, set its minimum and maximum to match the primary vertical axis.
In Format Axis for each secondary axis, set Label Position to None and set the axis line to No line. Format the goal series to remove markers if desired, and remove the original goal series through Chart Design > Select Data if it is no longer needed.

Create and edit spreadsheet charts with WPS Office
WPS Office is a free, lightweight alternative for working with spreadsheets. Its familiar interface and Microsoft Office format compatibility make it easy to move existing files into WPS Spreadsheets.

Frequently Asked Questions
Why does my Excel goal line stop before the chart edges?
A line series in a category chart is normally plotted at category positions rather than at the plot area boundaries. An XY scatter series with endpoints set to the secondary horizontal axis bounds can span the full width.
How do I show the secondary horizontal axis?
Select the chart and choose Chart Design > Add Chart Element > Axes > Secondary Horizontal. If the option is unavailable, first place the scatter series on the secondary axis.
Why is the goal line at the wrong height?
The scatter series uses the secondary vertical axis. Right-click each vertical axis and choose Format Axis, then make sure their minimum and maximum bounds match.
Can I hide the secondary axes without removing the goal line?
Yes. In Format Axis, set Label Position to None and the axis line to No line. Keep the secondary axes in the chart so their bounds continue to position the scatter series.




