Monday Morning Mulling: December 2019 Challenge
30 December 2019
On the final Friday of each month, we set an Excel problem for you to puzzle over the weekend. On the Monday, we publish a solution. If you think there is an alternative answer, feel free to email us. We’ll feel free to ignore you.
To recap, the problem presented last Friday was to create a single chart in Excel that would display the target amounts and have the actual amounts flow through like a bullet chart for each time period.
The challenge was to create a “Bullet Time Series chart” that looks something like this:
The first step is to format our data properly in a way that we can plot it on a chart in Excel. We will be using the following dataset in the current format:
With the data in hand, we can create the chart. As part of this solution we will be using the Custom Combination chart in Excel (we need to use this type of chart to generate a secondary axis):
Toggle all of the chart types to be “Clustered Columns”.
Then right-click on the chart and choose “Select Data…”, in the ‘Select Data Source’ dialog box, where we can switch the row / column.
The chart should look something like this now:
Notice that the x-axis is labelled as 1, 2, 3, 4 and 5 when we want it to be 2014, 2015, 2016, and so on… Therefore, return to the ‘Select Data Source’ dialog and edit the horizontal ‘Axis Labels’:
Great; now we have our years in order.
The next step is to organise the columns into primary and secondary axes. Click on the chart, then click on the Design tab on the Ribbon, and then the ‘Change Chart Type’ option. This brings up the ‘Change Chart Type’ dialog, where we can assign different data series onto a secondary axis. In this case we will assign all of the Actual series to the secondary axis (this is because the secondary axis is displayed on top):
Remove the Year series from the chart. Then, we change adjust the format of the data series to make it appear like a bullet chart. We do this by changing the Series Overlap and Gap Width values in the Format Data Series panel. We adjust the ‘Gap Width’ of the budgeted series to 0%.
To format the primary axis data series, we set the ‘Series Overlap’ to -100% and ‘Gap Width’ to 100% (of course you can vary these settings to create a slightly different chart):
Our chart is starting to come together, at this point we have two things to deal with:
- The axes have different maximum amounts – this will cause confusion as our budget amounts are being compared to our actual amounts that are on different axes
- We do not have clear spacing between the years. This may make it difficult for end users to read the chart.
To deal with these two issues we can include new data series that will ‘control’ the maximum amount in the axis. We do this by using the MAX formula to retrieve the maximum amount from out data:
This will insert a new data series into the chart that will always have the maximum value from the dataset:
The two axes are now set to the same maximum amounts.
Format the two new data series with ‘No fill’, which essentially renders them invisible:
Two birds one bar… wait, was it stone? That would conclude it for our chart, if we did not care for colour. We should apply a different colour palette:
Of course, you do not have to pick these exact colours, but we’ve tried to pick a pallet that looks somewhat desirable. The final adjustments to the chart are:
- Delete the ‘Max Budget’ and ‘Max Actuals’ series from the legend
- Hide the secondary axis
- Give the chart a name.
Lastly, notice that the x-axis years are slightly misaligned? There is one trick we can use to fix this. It involves creating a cell with several spaces “ ”:
Now we adjust the cells containing our x-axis values to:
This way we can adjust the total number of spaces we want to include to centre our year axis. Now the chart looks like this:
The Final Friday Fix will return on Friday 31st January 2020 with a new challenge. In the meantime, please look out for the Daily Excel Tip on our home page and watch out for a new blog every business workday.