To add a target line to a bar chart in Excel, you must first create the bar chart using your actual data, then add a secondary data series representing the target value and format it as a line. This helps compare actual results against a benchmark or goal at a glance. You’ll need Excel installed (Windows, Mac, or online), a dataset with categories and values, and the target value you want to display.

What You’ll Need

  • Microsoft Excel (any recent version: 2016, 2019, 2021, Microsoft 365, or Excel for the web)
  • A dataset with at least two columns: one for categories (e.g., departments, months) and one for values (e.g., sales, costs)
  • The target value or values you want to compare against (e.g., 100 units, 5% growth)
  • Basic familiarity with Excel charts (inserting, selecting data)

Step-by-Step

  1. Prepare your data: Ensure your source data is clean and organized in two columns (or two rows). For example, column A might list product names, and column B their sales figures. Add a third column (e.g., column C) labeled “Target” and enter the same target value in every row (e.g., 150). This ensures the target line spans all categories.
  2. Select the data for the chart: Highlight the entire data range, including category names, actual values, and the target column. For instance, select A1:C6 if you have five products plus headers.
  3. Insert the bar chart: Go to the Insert tab, click Insert Column or Bar Chart, and choose Clustered Bar (or Clustered Column if you prefer vertical bars). Excel will generate a basic chart showing both actual values and the target series as separate bars.
  4. Change the target series to a line: Right-click any bar representing the target values (usually the lighter or differently colored bars) and select Change Series Chart Type. In the dialog box, ensure your primary chart type is still a bar (e.g., Clustered Bar), then find the “Target” series in the list on the right and change its chart type to Line. Confirm with OK. The target now appears as a line instead of bars.
  5. Adjust the line appearance: Click the target line once to select it (you’ll see small squares on the line). Right-click and choose Format Data Series. Under Fill & Line, set the line color to something high-contrast (e.g., red or dark green), and increase the width to 2–3 pt for visibility. You can also enable Smoothed line if desired, though it’s usually unnecessary for a constant target.
  6. Add data labels to the line (optional but helpful): Right-click the line and choose Add Data Labels. Then right-click the labels and select Format Data Labels. In the options, check Value and uncheck others like Series Name. You can also position labels above or below the line for clarity.
  7. Format the chart for readability: Add a chart title (e.g., “Sales vs. Target”), axis titles (e.g., “Product” for category axis, “Units Sold” for value axis), and a legend if needed. Use the Chart Elements button (+ icon next to chart) to toggle elements quickly.

Common Mistakes

  • Forgetting to duplicate the target value: If you only enter the target once (e.g., in one row), Excel will plot only one point, resulting in a line that doesn’t span all categories. Always fill the entire target column with the same value.
  • Selecting only the actual data first: If you create the chart before adding the target column, you’ll have to recreate the chart or manually add the series later—more work. Include all relevant columns before inserting the chart.
  • Using a column chart by accident: Excel defaults to column charts, not bar charts. If you want horizontal bars, explicitly choose Clustered Bar in the Insert tab, not Clustered Column.
  • Incorrect chart type change: In Step 4, if you change the *primary* chart type to line instead of just the target series, your actual data bars will disappear. Always leave the primary chart as bar and only change the target series.
  • Overcomplicating the target series: Using different target values per category is possible but unnecessary for a simple horizontal line. Stick to a constant value unless you need a dynamic or stepped target.

Tips

  • Use conditional formatting for dynamic targets: If your target changes based on a formula (e.g., 110% of last month’s average), reference a cell in your target column (e.g., =B$10 in each row, where B10 holds the formula). This lets you adjust the target once instead of updating every row.
  • Color-code for quick interpretation: Use red for below-target performance (if the line marks a minimum) and green for above-target. Keep the target line distinct—dashed or dotted lines stand out against bars.
  • Lock the axis scale: Right-click the value axis > Format Axis > set Fixed minimum and maximum to ensure the line stays proportional. This prevents Excel from auto-scaling and distorting the comparison.
  • Use Excel Tables: Convert your data range to a Table (Ctrl+T), then build the chart from the Table. When you add new rows, you can easily refresh the chart with Refresh under Chart Tools.
  • For Excel for the web: The steps are nearly identical, but some formatting options (like right-click context menus) may require clicking the chart > Chart Elements > Axis or Data Series to access settings.

Troubleshooting

If your target line isn’t appearing or behaves unexpectedly, try these fixes in order:

  • No line visible: Ensure the target series is set to Line (not bar or area) and that the target column contains numeric values—not text (e.g., “150” won’t work; use 150). Check the chart legend to confirm “Target” is listed.
  • Line appears but only on one category: You likely entered the target value in only one row. Go back to your data and copy the target value down the entire column (drag the fill handle or double-click the cell’s bottom-right corner).
  • Line is behind or obscured by bars: Right-click the line > Format Data Series > under Series Options, set Plot Series On to Secondary Axis. Then add a secondary axis (right-click value axis > Format Axis > check Secondary Axis). This places the line on top of the bars.
  • Chart updates incorrectly after data changes: If you added new categories, reselect the full data range and recreate the chart. Excel charts don’t auto-expand when you add rows outside the original selection.
  • Line appears jagged or misaligned: Verify that your target values are truly constant. Check for accidental spaces, decimals, or formulas that might introduce tiny variations (e.g., 150.0001 instead of 150). Use ROUND in your target column: =ROUND(150,0).

Frequently Asked Questions

Can I add a target line to a stacked bar chart?

Yes, but it’s less effective. Stacked charts combine multiple series, making a single target line ambiguous. If you must, add the target series as a separate stack element and change it to a line—but consider using a clustered bar chart instead for clearer comparisons.

How do I make the target line dashed or dotted?

Right-click the target line > Format Data Series > under Line, choose Dashed or Dotted from the Line Style dropdown. This works on all Excel versions.

Can I use different targets for each category?

Absolutely. Instead of repeating one value, enter unique targets in the third column (e.g., 100 for Product A, 120 for Product B). The line will still appear, but it may not be perfectly horizontal—it will follow each category’s target value. This is useful for tiered goals.

Why does my target line show up as a bar instead of a line?

You likely skipped Step 4 or applied the chart type change to the wrong series. Revisit Change Series Chart Type, select only the “Target” series, and ensure its chart type is set to Line, not Clustered Bar.

Does this work in Excel for Mac or Excel Online?

Yes. The core steps are identical. On Mac, use Chart Design > Change Chart Type instead of right-clicking. In Excel Online, right-clicking is limited—use the Chart Elements menu and Format Data Series panel from the right sidebar.

Can I add a target line to a pivot chart?

Not directly, because pivot charts don’t allow adding new series easily. Workaround: Create a regular (non-pivot) chart from your raw data alongside the pivot table, or use Excel’s Get & Transform Data to add a target column in Power Query, then refresh the pivot chart.