Microsoft Office Tutorials and References
In Depth Information
This formula uses the MIN function to display the smaller of two values: either the value in cell B1
or 100 percent. It then divides this value by 2 because only the top half of the pie is relevant.
Using the MIN function prevents the chart from displaying more than 100 percent.
The formula in cell A5 simply calculates the remaining part of the pie — the part to the right of
the gauge’s needle:
The chart’s title was moved below the half-pie. The chart also includes data labels. I deleted two
of the data labels and added a link to the remaining one so that it displays the percent completed
value in cell B1.
Displaying conditional colors in a column chart
When you’re working with a column or bar chart, the Fill tab of the Format Data Series dialog
box has an option labeled Vary Colors by Point. This option simply uses more colors for the data
series. Unfortunately, the colors aren’t related to the values of the data series.
This section describes how to create a column chart in which the color of each column depends
on the value that it’s displaying. Figure 17-6 shows such a chart. (It’s more impressive when you
see it in color.) The data used to create the chart is in range A1:F14.
Figure 17-6: The color of the column varies with the value.
A workbook with this example is available on the companion CD-ROM. The filename is
conditional colors.xlsx .