Conditional Formatting
Conditional Formatting
Conditional Formatting
For example, you can set things up so that all negative values in a range have a light-yellow background color. When you enter or change a value in the range, Excel examines the value and checks the conditional formatting rules for the cell. If the value is negative, the background is shaded. If not, no formatting is applied. Conditional formatting is a useful way to quickly identify erroneous cell entries or cells of a particular type. You can use a format (such as bright-red cell shading) to make particular cells easy to identify.
Format only top or bottom ranked values: Use this rule type to create rules that involve identifying cells in the top n, top n percent, bottom n, and bottom n percent. Format only values that are above or below average: Use this rule type to create rules that identify cells that are above average, below average, or within a specified standard deviation from the average. Format only unique or duplicate values: Use this rule type to create rules that format unique or duplicate values in a range. Use a formula to determine which cells to format: Use this rule type to create rules based on a logical formula.
Heres how to set up an icon set such that only values greater than or equal to 80 displays an icon: 1. 2. 3. 4. 5. 6. 7. 8. Select the cells, choose Home Styles Conditional Formatting Icon Sets, and select any icon set. Keep in mind that only the last icon of the set will be used. With the range selected, choose Home Styles Conditional Formatting Manage Rules. Excel displays its Conditional Formatting Rules Manager dialog box. Click Edit Rule to display the Edit Formatting Rule dialog box. Change the first icon setting to When Value Is >= 80 and specify Number as the Type; leave the other icon settings as they are, and click OK to return to the Conditional Formatting Rules Manager. Click New Rule and then choose this rule type: Format Only Cells That Contain. In the bottom section of the dialog box, specify Cell Value Less Than 80 and click OK to return to the Conditional Formatting Rules Manager. The range now has two rules. Place a check mark next to Stop If True for the first rule. Figure 21.15 shows the completed dialog box. Click OK.
The first rule checks to see whether the value is less than 80. If so, rule checking stops, and no conditional formatting is applied. If the value is greater than or equal to 80, the second rule kicks in. This rule indicates that values greater than or equal to 80 are displayed with an icon.