ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Data tools
  3. Add a Target or Average Line to an Excel Chart

Add a Target or Average Line to an Excel Chart

By ExcelReady Team·Updated November 3, 2026·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+
  1. How a target line works
  2. Step 1: build the helper column
  3. Step 2: add the target line to the Excel chart
  4. Step 3: format the line so it reads as a target
  5. How to add an average line instead
  6. Make the line span the full chart width
  7. Targets on line charts and changing targets
  8. Practise it

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:

ABC
1MonthSalesTarget
2Jan4250
3Feb5550
4Mar3850
5Apr6150
6May4750
7Jun5150

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:

Excel formula
=$E$1

Fill 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:

  1. Select A1:C7.
  2. Go to Insert > Insert Column or Bar Chart > Clustered Column. You'll see two sets of columns: Sales and Target.
  3. Right-click any Target column and choose Change Series Chart Type.
  4. In the dialog, set Target to Line and keep Sales as Clustered Column.
  5. 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:

Excel formula
=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:

  1. Right-click the line, choose Format Data Series and set Plot Series On to Secondary Axis.
  2. With the chart selected, go to Chart Design > Add Chart Element > Axes > Secondary Horizontal.
  3. Click the new top axis, open its format pane, and under Axis position choose On tick marks.
  4. Format the right-hand secondary vertical axis so its minimum and maximum match the left axis; otherwise the line sits at the wrong height.
  5. 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.

fx
ABCD
1
Month
Sales
Average
2
Jan
42
3
Feb
55
4
Mar
38
5
Apr
61
6
May
47
7
Jun
51
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

LessonAVERAGE, MIN and MAXSummarize a list with its average, smallest and largest values.LessonRelative vs absolute references ($)Lock a cell with $ so it doesn't move when you copy a formula, one of the most-tested Excel skills.Function guideAVERAGECalculate the mean in Excel with AVERAGE. See how it treats blanks and zeros, avoid common errors, and practice in a live sheet.

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.

Sources

  • Create a chart from start to finish - Microsoft Support
  • AVERAGE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How a target line works
  2. Step 1: build the helper column
  3. Step 2: add the target line to the Excel chart
  4. Step 3: format the line so it reads as a target
  5. How to add an average line instead
  6. Make the line span the full chart width
  7. Targets on line charts and changing targets
  8. Practise it

Keep reading

Data tools· 5 min read

Combo Chart With a Secondary Axis in Excel

To add a secondary axis in Excel, select your data and choose Insert > Insert Combo Chart > Clustered Column - Line on Secondary Axis. For an existing chart, right-click the series, choose Format Data Series and pick Secondary Axis under Series Options. Use it when two series have very different scales, such as revenue and margin %.

Data tools· 6 min read

How to Make a Line Chart in Excel

To make a line chart in Excel, put dates or months in the first column and values in the next, with headers in row 1. Select the data, go to Insert > Insert Line or Area Chart, and pick Line or Line with Markers. Add a chart title and axis titles, and use one line per series to compare trends over time.

Data tools· 6 min read

How to Make a Bar Chart in Excel

To make a bar chart in Excel, select your labels and numbers with their headers, go to Insert > Insert Column or Bar Chart, and pick Clustered Bar. Excel draws one horizontal bar per row. Add a title and data labels, and sort the data smallest to largest so the biggest bar is at the top.

More on data tools

  • Make a Chart in Excel: Column, Bar, Line and Pie
  • Combine Data From Multiple Sheets in Excel
  • Compare Two Excel Sheets and Highlight the Differences
  • Conditional Formatting in Excel: Highlight What Matters
  • Conditional Formatting With a Formula in Excel
  • Custom Sort in Excel: Sort by Your Own Order
All data tools articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free