Let’s say you work in super hero factory as floor manager. You are looking at the recent time sheet data submitted by your underlings and want to know who works more. So you did what any self respecting floor manager does. You made yourself a large cup of hot chocolate, whipped open Excel and created a column chart.
But now, you want to add a line to it at 6:00 PM (or some other arbitrary point) so you can clearly see which superheros are over working.
So how do you go about it?
Adding a line to column charts – Tutorial
This tutorial assumes you have a column chart. If you have a bar chart, you should use vertical error bars in step 6.
- In a cell, enter the value for your line. Say this is in C15 (and it has 6:00 PM)
- Add this extra point to your chart. At this stage you will get this.
- Take a sip of that scrumpdillycious hot chocolate.
- Convert the new series to as XY chart. Just right click on it and select “Change series chart type”.
- Add error bars to this new dot
- Excel adds both vertical & horizontal bars. We just need horizontal line. So remove vertical (Y) error bars.
Note: if you are adding the line to bar chart, remove X error bars instead. - Set error bar value to 7 (same as number of categories – 1)
- Format the error bar
- Set error bar to plus side only
- Remove cap
- Set the line color and thickness
- Remove marker symbol (set it to no marker) so we have only line
- Chug the rest of your hot chocolate, we are done!
Video tutorial – How to add a line to column chart
Watch this quick video tutorial on how to add a line to column chart to understand this process better.
You can also watch this video on Chandoo.org Youtube channel.
Download Example Workbook – Column chart with a line
Please click here to download example workbook. Play with the input data to see the chart change. Try to recreate the chart from scratch to master this technique.
Become a super hero of Excel charting
Unleash the super hero in you by learning few charting tricks and tips. Start with below, but be warned though. Everyone is going to love your charts.
- Tell all versions of truth in your dashboards
- Color changing line chart…
- Cropped chart – when some values are too big for it
- Use shapes to enhance your charts
- 15 quick & powerful ways to analyze business data
How would you add a line to column charts?
Using error bars to add a horizontal line (or vertical) is just one of the many ways to do this. How would you add a line to column charts? Please share your techniques in the comments section.
8 Responses to “Create a Combination Chart, Add Secondary Axis in Excel [15 Second Tutorial]”
[...] Select the “daily completed” column and add it to the burn down chart. Once added, change the chart type for this series to bar chart (read how you can combine 2 different chart types in one) [...]
[...] set the height series to be plotted on secondary axis. Learn more about combining 2 chart types and adding secondary axis in [...]
[...] Excel Combination Charts – What are they? [...]
[...] To show the years, I have used another dummy series and plotted it on secondary axis (related: how to add secondary axis?) [...]
Thanks for this one!
[...] Choisissez la colonne « Daily Completed » et ajoutez-la au graphique. Une fois ajoutée, changez le type de graphique pour cette série à histogramme (lisez comment combiner 2 types de graphiques en un : combine 2 different chart types in one) [...]
How do i create a chart that has negative numbers on axis x and y and plot them correctly? I cannot seem to understand how to do this, please help.
Thanks.
Nat
You can also plot 2 or more Y axes in Excel using EZplot or Multy_Y from Office Expander.com
There is a demo version to try.
Cheers.