To draw an average line in an Excel bar chart, you must create a helper column that calculates the average of your data and then add that column as a second data series to your chart, changing its chart type to a line. This allows you to visualize the mean value across all categories, making it instantly clear which bars are performing above or below the average. This is essential for performance tracking, quality control, and comparative data analysis.
What You'll Need
- Microsoft Excel installed on your PC or Mac.
- A dataset consisting of labels (categories) and corresponding numerical values.
- Basic knowledge of how to create a standard clustered column chart.
Step-by-Step
- Prepare Your Data Table: Start with your existing data. For example, if you have "Sales Rep" in Column A and "Revenue" in Column B, you need a third column for the average. Label Column C as "Average".
- Calculate the Average: In the first cell of your Average column (C2), enter the formula
=AVERAGE($B$2:$B$10). It is critical to use absolute references (the dollar signs) for the range. This ensures that when you drag the formula down, Excel always references the same set of data points rather than shifting the range downward. - Fill the Average Column: Click the bottom-right corner of cell C2 and drag it down to the end of your data set. Every cell in this column should now display the exact same number—the mean of your dataset.
- Create the Initial Bar Chart: Highlight all three columns (Labels, Values, and Average). Go to the Insert tab on the ribbon, click the Insert Column or Bar Chart icon, and select Clustered Column. At this stage, you will see two bars for every category: one for the actual value and one for the average.
- Change the Chart Type for the Average Series: Right-click on any of the bars that represent the Average value. From the context menu, select Change Series Chart Type....
- Configure the Combo Chart: In the Change Chart Type dialog box, you will see a list of all data series. Look for the "Average" series at the bottom. Change the dropdown menu for the Average series from "Clustered Column" to Line. Ensure the "Secondary Axis" checkbox is left unchecked unless your average values are on a completely different scale than your primary values. Click OK.
- Format the Average Line: To make the line look professional, right-click the line and select Format Data Series. In the Format pane, go to the Fill & Line (paint bucket) icon. Here you can change the color to red or orange for visibility, adjust the width, or change the Dash type to a dotted or dashed line to distinguish it from a trend line.
- Add a Data Label: To show the exact average value on the chart, right-click the line and select Add Data Labels. To clean this up, click on one of the labels and delete the duplicates, leaving only the label at the far right end of the line.
Common Mistakes
One of the most frequent errors is forgetting to use absolute references (the $ signs) in the AVERAGE formula. If you use =AVERAGE(B2:B10) and drag it down, the second cell becomes =AVERAGE(B3:B11), which shifts the calculation range and creates a slanted line rather than a flat average line. This fundamentally breaks the logic of the visualization.
Another common mistake is selecting the wrong chart type in the Combo menu. Users sometimes select a "Line with Markers," which puts a dot on every single bar. For a clean average line, a standard "Line" is usually preferred. Additionally, some users accidentally check the "Secondary Axis" box. This creates a second Y-axis on the right side of the chart. If the scales of the two axes are different, your average line will appear at the wrong height relative to the bars, leading to incorrect data interpretation.
Finally, users often try to manually draw a line using the Shapes tool. While this looks correct initially, it is not dynamic. If your data changes, a manually drawn line will stay in the same place while the bars move, rendering the chart inaccurate. Always use the helper column method to ensure the line updates automatically when data is edited.
Tips
To make your chart more readable, consider removing the "Average" series from the legend if it is obvious, or renaming the series to something more descriptive like "Company Target" or "Regional Mean." You can also use a "Stepped Line" if you are dealing with specific thresholds that change over time, though a standard line is best for a single average.
If you have a very large dataset, you can use a Named Range for your data. Instead of $B$2:$B$100, you can name that range "SalesData". Your formula then becomes =AVERAGE(SalesData), which is much easier to read and manage across multiple sheets.
For a more polished look, remove the gridlines from the chart background. This makes the average line stand out more prominently against the bars. You can do this by clicking the Chart Elements (plus sign) button and unchecking Gridlines.
Troubleshooting
If the average line does not appear across the whole chart, check your data range. Ensure that the Average column has a value for every single row that has a bar. If there are gaps in the helper column, the line will have breaks in it. You can fix this by selecting the line, going to Select Data, and clicking Hidden and Empty Cells to choose how Excel handles gaps (e.g., "Connect data points with line").
If the line is appearing at the very bottom or top of the chart regardless of the data, check if you have a Secondary Axis enabled. Right-click the line, go to Format Data Series, and ensure Primary Axis is selected. If the axes are mismatched, the line will not align with the bars.
If the formula is returning a #DIV/0! error, it means your data range contains only text or is entirely empty. Ensure your value column is formatted as "Number" or "General" and not as "Text." You can change this by highlighting the column and using the dropdown menu in the Home tab under the Number group.
Frequently Asked Questions
Can I make the average line update automatically when I add new rows?
Yes, if you convert your data range into an official Excel Table (Ctrl + T). When you add a new row to a Table, the formulas in the Average column and the chart's data range expand automatically to include the new entry.
How do I add a second line for a different metric, like a median?
Follow the exact same process: create a helper column using the =MEDIAN($B$2:$B$10) formula, add it to the chart, and change its series type to a line in the Combo Chart settings.
Why is my average line a different color than I want?
Excel assigns default colors to series. To change it, right-click the line, select Format Data Series, and use the paint bucket icon to select a custom color from the palette.
Does this method work in Excel for Web or mobile?
Yes, the helper column and Combo Chart logic work in Excel for the Web. However, the mobile app has limited chart formatting options, so it is recommended to set up the chart on a desktop and then view/edit the data on mobile.
Can I use a trendline instead of an average line?
A trendline shows the general direction of data (upward or downward) using regression, whereas an average line is a flat horizontal mark of the mean. If you need a trendline, right-click a bar and select Add Trendline, but this will not provide a flat average.