To make a bar chart with a line in Excel, you need to create a Combo Chart. This is achieved by selecting your data, inserting a clustered column chart, and then changing the chart type for one specific data series to a line. This allows you to compare two different types of data—such as total sales (bars) and profit margin percentage (line)—on the same graph.
What You'll Need
- Microsoft Excel installed on your computer.
- A dataset containing at least two sets of numerical values (e.g., one for the bars and one for the line) and one set of labels (e.g., dates or categories).
- Your data organized in a clean table with clear headers.
Step-by-Step
- Prepare Your Data: Organize your data in columns. For example, Column A should be your labels (Months), Column B should be your primary data (Revenue), and Column C should be your secondary data (Growth %).
- Select the Data: Click and drag your mouse to highlight all the cells containing the data you want to include in the chart, including the column headers.
- Insert Initial Chart: Go to the Insert tab on the top ribbon. In the Charts group, click the Insert Column or Bar Chart icon and select Clustered Column. Excel will create a standard bar chart with two sets of bars.
- Open Change Chart Type: Right-click on any of the bars in the chart. From the context menu that appears, select Change Series Chart Type....
- Configure the Combo Chart: A dialog box will open. In the left-hand pane, ensure Combo is selected at the bottom. You will now see a list of your data series names.
- Assign Chart Types:
- For the series you want as bars, keep the dropdown set to Clustered Column.
- For the series you want as a line, click the dropdown menu next to its name and select Line.
- Add a Secondary Axis: If the two data sets use different scales (e.g., one is in thousands of dollars and the other is a percentage), check the Secondary Axis box next to the line series. This creates a second vertical axis on the right side of the chart.
- Confirm Changes: Click OK. Your chart will now display bars and a line simultaneously.
- Final Polish: Use the Chart Design and Format tabs to add a chart title, axis titles, and a legend to make the data easy to read.
Common Mistakes
- Ignoring the Secondary Axis: The most common mistake is forgetting to check the "Secondary Axis" box when the data scales are vastly different. Without this, a percentage line (e.g., 0.10) will appear as a flat line at the bottom of a chart where the bars represent thousands.
- Selecting Empty Cells: Including empty rows or columns in your data selection can lead to gaps in your line or bars, making the chart look broken.
- Overcrowding the Chart: Trying to put too many line series on one bar chart can make the visualization cluttered and difficult to interpret. Limit yourself to one or two lines.
Tips
- Use Markers: To make the line easier to read, right-click the line, select Format Data Series, go to the Fill & Line (paint bucket) icon, click Marker, and choose a marker style.
- Smooth the Line: In the same Format Data Series menu under the Fill & Line tab, check the Smoothed line box at the bottom to turn jagged angles into curves.
- Color Contrast: Use a high-contrast color for the line (e.g., a bright red or orange line over blue bars) so that the trend is immediately visible.
Troubleshooting
If the chart does not look correct, try these steps in order:
- Line is flat at the bottom: This is almost always a scaling issue. Right-click the line, select Format Data Series, and ensure Secondary Axis is selected.
- Data is not appearing: Check your data range. Ensure there are no "Text" values in your numerical columns; if Excel sees a number as text, it cannot plot it on the axis.
- Wrong series is the line: If the wrong data became the line, go back to Change Series Chart Type and swap the dropdown selections for your series.
- Chart is blank: Ensure you have selected the data correctly before inserting the chart. Try re-selecting the range and inserting a new chart from scratch.
Frequently Asked Questions
Can I have more than one line on a bar chart?
Yes. In the Change Series Chart Type menu, you can set multiple series to "Line." However, be careful not to overcrowd the visual.
How do I change the colors of the bars and the line?
Click once on the bar or line to select the entire series. Then, go to the Format tab and use the Shape Fill or Shape Outline options to change the color.
Can I use a stacked bar chart with a line?
Yes. In the Combo chart settings, select Stacked Column for your bar series and Line for your trend series.
Why is my line not connecting the dots?
This usually happens if there are empty cells in your data range. You can fix this by right-clicking the chart, choosing Select Data, clicking Hidden and Empty Cells, and choosing "Connect data points with line."
Does this work on Excel for Mac and Web?
Yes, the Combo Chart feature is available across Windows, Mac, and the web version of Excel, though the exact menu layout may vary slightly by version.