How to Insert a Target Line in Excel Chart
In this article
Adding a target line to an Excel chart is the most effective way to visually compare actual performance against a goal. While Excel does not have a single "Insert Target Line" button, you can achieve this by adding a secondary data series that represents your constant target value. This method works for column, bar, and line charts, providing a clear visual benchmark that updates automatically if your target changes.
What You'll Need
- An existing Excel chart (column, bar, or line) with at least one data series.
- A cell containing your target value (e.g., B1).
- Optional: A helper column in your data table if you prefer using a range instead of a single cell reference.
Step-by-Step
- Prepare your data: Ensure your source data table includes your actual values. For the target, you can either use a single cell containing the number or create a new column next to your actual data filled with the same target number for each row. Using a single cell is often cleaner for static targets.
- Select your chart: Click on the chart to activate it. Notice the Chart Design tab appears in the ribbon.
- Open Select Data: Right-click anywhere inside the chart area and choose Select Data.... Alternatively, go to the Chart Design tab and click Select Data.
- Add the target series: In the Select Data Source dialog box, under "Legend Entries (Series)," click the Add button.
- Define the series name: In the "Edit Series" dialog, click the "Series name" field. Then, click the cell in your worksheet that contains the label for the target (e.g., "Target"). This will appear as the legend entry.
- Define the series values: Click the "Series values" field. If you used a single cell for the target, select that specific cell (e.g., $B$1). If you created a helper column, select the entire range of cells in that column. Click OK to close the Edit Series dialog.
- Confirm the addition: Click OK again to close the Select Data Source dialog. Your chart now displays the target line, but it may look like another bar or point depending on the chart type.
- Change the chart type for the target: Right-click on the newly added target series (it might be hidden behind other bars or appear as a dot). Select Change Series Chart Type....
- Select Line Chart: In the combo chart options, find the "Target" series in the list. Change its chart type from Column/Bar to Line. Ensure it is plotted on the Primary Axis unless your scale requires otherwise. Click OK.
- Format the line: The target line now appears across the chart. To make it distinct, right-click the line and select Format Data Series. Here you can change the color (often red or green), adjust the width, and choose a dashed style to differentiate it from actual data lines.
Common Mistakes
One frequent error is forgetting to change the chart type of the target series to a line. If left as a column or bar, the target will appear as a solid block obscuring your actual data, making the chart unreadable. Another mistake is selecting the wrong range for "Series values." If you accidentally select a blank cell or a text header, the line will disappear or show an error. Always verify that the selected range contains numerical data.
Tips
If your target line spans the entire width of the chart but you only want it to cover specific categories, consider using a scatter plot with connecting lines or manually adjusting the X-axis bounds. For dynamic targets that change based on filters or slicers, link the target cell to a formula rather than hardcoding a number. This ensures the line moves automatically when the underlying conditions change. Additionally, using a dashed line style for the target helps distinguish it clearly from solid trend lines representing actual performance.
Troubleshooting
If the target line does not appear after following the steps, check the "Select Data" dialog again. Ensure the series was actually added and not just attempted. If the line appears but is flat at zero, verify that the cell referenced in "Series values" contains the correct number and not a formula returning zero. If the line cuts off halfway, ensure the range selected matches the number of categories in your main data series. Sometimes, resizing the chart window can refresh the rendering if the line looks jagged or misplaced.
Frequently Asked Questions
Can I add a target line to a pie chart?
No, pie charts represent parts of a whole and do not have axes where a horizontal or vertical target line makes sense. Use column, bar, or line charts for target comparisons.
How do I make the target line update automatically?
Link the target series to a cell that contains a formula. If the formula result changes based on other inputs, the chart will redraw the line to match the new value without manual intervention.
Why is my target line behind the columns?
This happens if the target series is plotted before the main data series in the order list. Go to Select Data, select the target series, and use the up arrow to move it to the top of the list so it renders in front.
Can I add multiple target lines?
Yes, repeat the process for each target. Add separate series for each goal (e.g., "Budget," "Stretch Goal") and format them with different colors or dash styles to keep them distinct.