Excel Charting Hacks #1


Share on facebook
Share on twitter
Share on linkedin

The other day I had to make some graphs about revenues and profits of a set of companies. While doing it I wanted to use bar chart with bars of profit and revenue overlapping. But when I mentioned the revenue as 3000 and profit as 1500, the graph would show up something like this. As you can see the totals are adding up to 4500 where as the company is making only 3000.

I thought changing the revenue figures to revenue-profit would solve the problem. It did solve the bar height problem, but it did create a new problem. Now the revenue is represented as 1500 instead of actual number 1500.

I think this is a pretty common usage of charts, so I am sharing a work around (not really, but I would like to show off) for this. Remove the data labels for the series 2 (revenue). Add a new data series with actual revenue values to the chart (right click, ‘source data’->’add series’). Now this new series would be stacked on the top of profit, revenue-profit values. Just set the background and border property for this to ‘none’ and set the data-labels for ‘values’. Adjust the alignment to ‘Inside bar-base’ and you have something like this.

Oh, you might want to re adjust the axis scale to original one in case its screwed up because of the new series. Happy visualization.

Share on facebook
Share on twitter
Share on linkedin

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Chandoo is an awesome teacher

– Jason

Excel formula list - 100+ examples and howto guide for you

100 Excel Formulas List

From simple to complex, there is a formula for every occasion. Check out the list now.

20 Excel Templates

Calendars, invoices, trackers and much more. All free, fun and fantastic.

IRR and data tables in Excel

Using IRR with Data Tables – Modeling Cash-flow Scenarios in Excel

Do you want to simulate multiple cash-flow scenarios and calculate the rate of return? Then this article is for you. In this page, learn how to,

  • Introduction to IRR & XIRR functions
  • Calculate rate of return from a set of cash-flows with XIRR
  • Simulating purchase or terminal value changes with data tables
  • Apply conditional formatting to visualize the outputs
  • Common issues and challenges faced when using XIRR

2 Responses to “Excel Charting Hacks #1”

  1. Jon Peltier says:

    If you make a stacked column chart, the value of each series is plotted above the preceding series. If you make a clustered column chart, each value is plotted next to the preceding series. In a clustered chart, you can adjust the overlap, so that the second series moves in front of the first. This can be deceiving, because someone reading the chart may not realize that the value of the taller column starts at zero instead of the top of the series in front. Therefore you may want to use an overlap of 50 instead of 100.

  2. Juan says:

    Do you have the workbook to download and know how to do it? Thanks in advance!

Leave a Reply