11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 17: Charting Techniques 439<br />

This formula uses the MIN function to display the smaller of two values: either the value in cell B1<br />

or 100 percent. It then divides this value by 2 because only the top half of the pie is relevant.<br />

Using the MIN function prevents the chart from displaying more than 100 percent.<br />

The formula in cell A5 simply calculates the remaining part of the pie — the part to the right of<br />

the gauge’s needle:<br />

=50%–A4<br />

The chart’s title was moved below the half-pie. The chart also includes data labels. I deleted two<br />

of the data labels and added a link to the remaining one so that it displays the percent completed<br />

value in cell B1.<br />

Displaying conditional colors in a column chart<br />

When you’re working with a column or bar chart, the Fill tab of the Format Data Series dialog<br />

box has an option labeled Vary Colors by Point. This option simply uses more colors for the data<br />

series. Unfortunately, the colors aren’t related to the values of the data series.<br />

This section describes how to create a column chart in which the color of each column depends<br />

on the value that it’s displaying. Figure 17-6 shows such a chart. (It’s more impressive when you<br />

see it in color.) The data used to create the chart is in range A1:F14.<br />

Figure 17-6: The color of the column varies with the value.<br />

A workbook with this example is available on the companion CD-ROM. The filename is<br />

conditional colors.xlsx.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!