|
Peltier Tech
Buy me a coffee If this topic or the whole site has been helpful, please support further development by treating me to a cup of coffee. |
Deviation Column Charts
This page shows how to use column charts to show deviations from budget. Two ways are shown to differentiate positive and negative deviations: the Invert if Negative formatting option for a single series, and the use of separate series in the same chart. The DataThe data used in this example is shown below. Column A contains category labels, which may relate to companies, or divisions, or time periods (years, quarters, etc.). Row 2 contains column headers for Budget, Actual, and the various deviations (these will become series names in the charts produced below). Note that cell A2, the intersection of the categories (column A) and the series names (row 2) is left blank. This blank cell helps Excel parse the chart source data into categories, series names, and series data.
The deviations from budget revenue in columns D, E, and F are calculated using the following formulas, and the cells are formatted as percents with one decimal place (see Number Formats). Column D shows deviation of Actual from Budget, while columns E and F show positive and negative deviations, respectively.
The ChartsThe raw data with the Budget and Actual numbers is easily plotted. Select the range A2:C6 in the worksheet, start the chart wizard, and choose the clustered column chart type in step 1. Since there is the blank cell in the top left of the selected range, Excel correctly determines category labels for the bottom of the chart and names for the two series.
To focus on the deviation of the Actual numbers from Budget, plot the Dev values in the table. Select A2:A6, then hold CTRL while selecting D2:D6, start the chart wizard, and choose the clustered column chart type in step 1.
That's great, shows just what I want, you say. But how can I distinguish positive from negative deviations? There are two ways: use the Invert if Negative setting for the series fill color, or use two series, one each for positive and negative deviations.
The second way to show positive and negative deviations with distinct formatting is to use a separate series for each desired format. This is the secret to Conditional Charts, described elsewhere on this web site. Select A2:A6 in the data, then hold CTRL while selecting E2:F6, start the chart wizard, and choose the stacked column chart type in step 1. This produces the chart shown below at left. If you add a legend (below at right), you see that the chart consists of two series.
If you choose a clustered column chart type for this data, the positive columns would be offset to the left and the negative columns to the right, as shown below. This is because the clustered column chart would use Positive as the first and Negative as the second of the two columns in each cluster. You can fix this by changing the chart type to stacked column, or by double clicking either series, and on the Options tab, change Overlap to 100, so the columns completely overlap each other.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Peltier Technical Services, Inc.Commercial Utilities | Custom Solutions | Training | Charts and Tutorials | PTS BlogPeltier Technical Services, Inc., Copyright © 2010. All rights reserved. |