Add a Target or Average Line to an Excel Chart
By ExcelReady TeamUpdated 5 min read
The short answer
To add a target line to an Excel chart, put the target in a helper column next to your data, for example =$E$1 in every row, and include it in the chart. Then right-click that series, choose Change Series Chart Type and make it a Line. For an average line, fill the helper column with =AVERAGE($B$2:$B$7) instead.
Key takeaways
- Excel has no target line button. You add a helper column that repeats the target, then chart it as a line.
- Lock the target or average with $ so every row of the helper column shows the same value.
- Change Series Chart Type turns the helper series into a line on a column chart.
- Point the helper column at one input cell, and the line moves when you change the target.
On this page+
To add a target line to an Excel chart, you add a helper column that repeats the target value, chart it alongside your data, and change that series to a line. Excel has no dedicated "target line" button, but this method takes about a minute and updates itself when the target changes. The same trick draws an average line with AVERAGE. This guide is for anyone building sales, KPI or performance charts on Windows or Mac.
How a target line works#
A target line is just a second data series where every value is the same. If the target is 50, the helper column holds 50 in every row, so when Excel draws it as a line, the line is flat at 50. Your real data stays as columns or bars, and the flat line shows at a glance which months beat the goal.
All examples use this data in A1:B7, with the target in E1:
| A | B | C | |
|---|---|---|---|
| 1 | Month | Sales | Target |
| 2 | Jan | 42 | 50 |
| 3 | Feb | 55 | 50 |
| 4 | Mar | 38 | 50 |
| 5 | Apr | 61 | 50 |
| 6 | May | 47 | 50 |
| 7 | Jun | 51 | 50 |
Step 1: build the helper column#
Put the target in one input cell, then point every row of the helper column at it. With 50 in E1, type this in C2:
=$E$1Fill it down to C7 (Windows: Ctrl+D; Mac: ⌘D). The $ signs make it an absolute reference, so every row still points at E1 instead of drifting to E2, E3 and so on. Now when the target changes, you edit one cell and the whole line moves. The absolute references lesson lets you practise why the dollar signs matter.
Step 2: add the target line to the Excel chart#
Chart both columns, then change the target series into a line:
- Select A1:C7.
- Go to Insert > Insert Column or Bar Chart > Clustered Column. You'll see two sets of columns: Sales and Target.
- Right-click any Target column and choose Change Series Chart Type.
- In the dialog, set Target to Line and keep Sales as Clustered Column.
- Click OK.
You can do it in one go with Insert > Combo chart > Clustered Column - Line, which, with two series, shows the first as columns and the second as a line. On a Mac, the steps are the same; you can also find Change Chart Type on the Chart Design tab. For more on mixing chart types, see the guide to combo charts and secondary axes.
The same works on a bar chart, but bars run sideways, so a "line" series won't sit across them neatly. For horizontal bars, a vertical target line usually needs a scatter series instead, which is more advanced. Most people switch to a column chart. The bar chart guide explains when bars beat columns.
Step 3: format the line so it reads as a target#
A target should look different from the data. Click the line to select it, then press Ctrl+1 (Mac: ⌘1) to open the Format pane:
- Dash type: choose a dashed line so it doesn't look like another data series.
- Colour: a strong contrast, like dark red or black.
- Width: about 2 pt.
- Markers: set to None so the dots disappear.
- Label: click the last point on its own, right-click, Add Data Label, and edit it to read "Target".
If the legend now shows "Target", you can keep it or delete the legend entry and rely on the label. The guide to Excel chart basics covers titles, legends and labels.
How to add an average line instead#
An average line uses the same method, with AVERAGE in the helper column instead of a fixed target. In C2:
=AVERAGE($B$2:$B$7)Fill it down to C7. Every row returns 49, the average of 42, 55, 38, 61, 47 and 51. Lock the whole range with $: without it, filling down would shift the range to B3:B8, B4:B9 and so on, and the "flat" line would wobble. Then chart it and change the series to a line exactly as above.
You can use any summary the same way: MEDIAN for a typical value that ignores extremes, or MAX and MIN for best and worst months. The AVERAGE function guide and the article on AVERAGE, MIN and MAX explain each one, and the AVERAGE, MIN and MAX lesson lets you practise them.
Make the line span the full chart width#
On a column chart, the line starts in the middle of the first column and stops in the middle of the last. That's often fine. If you want it edge to edge:
- Right-click the line, choose Format Data Series and set Plot Series On to Secondary Axis.
- With the chart selected, go to Chart Design > Add Chart Element > Axes > Secondary Horizontal.
- Click the new top axis, open its format pane, and under Axis position choose On tick marks.
- Format the right-hand secondary vertical axis so its minimum and maximum match the left axis; otherwise the line sits at the wrong height.
- Hide both secondary axes by setting Label Position to None and the line to No line.
This is extra work, so only do it when the chart is going into a report or dashboard where looks matter.
Targets on line charts and changing targets#
On a line chart, the target is simply a second line: select the data plus the helper column and insert a line chart. Format it dashed as above. The guide to line charts in Excel covers the rest.
If the target changes month to month, type each month's value into the helper column instead of =$E$1. The line steps up and down to match. To report how many months hit the goal, add a simple count next to the chart: =COUNTIF(B2:B7,">="&E1) returns 3 (Feb, Apr and Jun).
Practise it#
The formulas behind a target line are short: a locked reference and an AVERAGE. Practise AVERAGE, MIN and MAX in a live spreadsheet: you summarise real data and each formula is checked instantly. Then practise absolute references so your helper columns fill down correctly, and try the exercise on this page to build an average line's helper column.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Build the helper column for an average line. In C2, find the average of the sales in B2:B7, with the range locked with $ so it can be filled down to C7.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Average | |||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
| 9 | ||||
| 10 |
Tip: Type =AVERAGE(B2:B7), then press F4 (Mac: ⌘T) on the range to add the $ signs.
Practise this in a lesson
Frequently asked questions
How do I add a horizontal target line to a bar chart in Excel?
Add a helper column that repeats the target value in every row, include it in the chart, then right-click the new series, choose Change Series Chart Type and set it to Line. It draws a flat line at the target.
How do I add an average line to a chart in Excel?
Add a helper column with =AVERAGE($B$2:$B$7) in every row, using $ so the range doesn't move. Chart it with your data and change that series to a line.
Why doesn't my target line reach the edges of the chart?
On a column chart, a line series starts and ends at the middle of the first and last columns. To stretch it, move the line to a secondary axis and set the secondary horizontal axis position to On tick marks, then hide the extra axes.
Can the target be different for each month?
Yes. Type each month's target into the helper column instead of one repeated value. The line then steps up and down to show the changing goal.
How do I label the target line?
Click the line once to select the series, then click only the last point. Right-click it, choose Add Data Label, and edit the label or show the series name, such as Target.