WISDOMBYDATA
  • BLOG
    • Blog Guide
    • Blog History
  • EXCEL
    • Functions & Formulas
    • VBA & Macros
    • VLOOKUP
    • Pivot Tables
    • Conditional Formatting
    • Tricks & Shortcuts
  • BI
    • SAP BOBJ/BW
    • Tableau
  • SQL
  • ABOUT
    • About WBD
    • About Me

Create a dual axis bar chart in MS Excel

10/28/2018

0 Comments

 

In this tutorial I will demonstrate how to create a dual Axis bar chart in MS Excel. I will also show a solution to avoid getting overlaps in the bars that belong to the two axes.
​
The dual axis chart is useful in situations when one (or more) fields in the data set contain data that are significantly smaller or larger than the rest of the data set (e.g. percentage values). In these scenarios that particular field would be barely visible in the chart. Consider the data set below for example.
Picture
As you could observe the last column of the data set, i.e. “% change” is hard to observe when they are next to the large numbers.
 
Here is the solution

STEP 1] go to “Format” and select the particular field that you want to add an extra axis for (in this case “% change”) on the top left hand side of the ribbon.
Picture

STEP 2]
Click on “Format Selection” and the select the “secondary Axis” radio button.
Picture
The outcome is demonstrated in the screenshot below. The reason for the overlap is that Excel is treating the extra axis like a line chart where the line is split in the center of the category. The Solution to this anomaly is to create some padding columns so they can overlap only in the Center. 
Picture
​I will create three padding columns (i.e.  A, B and C). then reselect the data range for the graph. Here is the final desired view of the bar graph.
Picture

​Notes:

1. Manually remove references to the padding columns (i.e. A, B and C) from the legend entries
2. Format the values in the secondary axis as percentages. i.e. right click on the secondary Axis>format axis>Numbers>select “percentage”
3. Right click on the bars and go to “Format data series” in order to fine tune the distance between the bars and also the width of each bar.
Picture

0 Comments



Leave a Reply.

    Categories

    All
    BI
    EXCEL
    MISC
    SQL

    Archives

    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013

Powered by Create your own unique website with customizable templates.
  • BLOG
    • Blog Guide
    • Blog History
  • EXCEL
    • Functions & Formulas
    • VBA & Macros
    • VLOOKUP
    • Pivot Tables
    • Conditional Formatting
    • Tricks & Shortcuts
  • BI
    • SAP BOBJ/BW
    • Tableau
  • SQL
  • ABOUT
    • About WBD
    • About Me