Working with Conditional Formatting in Excel (Applying Preformatted Rules , Applying Cell Highlighting , Applying Top, Bottom, and Average Rules , Applying Data Bars, Color Scales, and Icon Sets , Creating a Customized Rule , Editing Rules , Prioritizing Rules , Deleting Rules )
Applying Preformatted Rules
Using preformatted rules is a quick way to apply conditional formatting to your worksheet. To create an original rule, refer to Creating a Customized Rule.Applying Cell Highlighting
You can apply highlighting to cells if they satisfy criteria that you set. The criteria can be number-based (e.g., greater than, less than, equal to), text-based (e.g., text contains, date occurring), or both (e.g., duplicate values).1. Select the range of cells to be formatted
2. From the Home command tab, in the Styles group, click CONDITIONAL FORMATTING
A pull-down list appears.
A pull-down list appears.
3. Select Highlight Cells Rules » select the desired criterion
A dialog box appears.
A dialog box appears.
4. In the dialog box, specify your criteria
NOTE: The criteria will differ depending on the option chosen in step 3.
NOTE: The criteria will differ depending on the option chosen in step 3.
5. Click OK
The rule is applied to cells which satisfy the criteria.
The rule is applied to cells which satisfy the criteria.
Applying Top, Bottom, and Average Rules
You can apply conditional formatting to cells that satisfy criteria based on on the ten highest or lowest numbers, percentages, or averages.1. Select the range of cells to be formatted
2. From the Home command tab, in the Styles group, click CONDITIONAL FORMATTING
A pull-down list appears.
A pull-down list appears.
3. Select Top/Bottom Rules » select the desired criterion
A dialog box appears.
A dialog box appears.
4. In the dialog box, specify your criteria
NOTE: The criteria will differ depending on the option chosen in step 3.
NOTE: The criteria will differ depending on the option chosen in step 3.
5. Click OK
The rule is applied to cells which satisfy the criteria.
The rule is applied to cells which satisfy the criteria.
Applying Data Bars, Color Scales, and Icon Sets
Data Bars, Color Scales, and Icon Sets will format all cells in a range, depending on how each cell compares to the rest of the range.EXAMPLES: In the following graphic, each column represents a preformatted rule as the value increases.
Data Bars | Color Scales | Icon Sets | ||||||
1. Select the range of cells to be formatted
2. From the Home command tab, in the Styles group, click CONDITIONAL FORMATTING
3. Select Data Bars, Color Scales, or Icon Sets » select your desired style
The rule is applied.
The rule is applied.
Creating a Customized Rule
If you do not want to use one of Excel's preformatted rules, you can create your own using the New Formatting Rule dialog box.1. Select the range of cells to be formatted
» select New Rule...The New Formatting Rule dialog box appears.
3. From the Select a Rule Type section, select the condition that will trigger formatting
The Edit the Rule Description section will refresh to display new options.
The Edit the Rule Description section will refresh to display new options.
4. In the Edit the Rule Description section, select your criteria
The criteria will vary based on the selection made in step 3.
The criteria will vary based on the selection made in step 3.
5. To specify the formatting
- Click FORMAT...
The Format Cells dialog box appears. - Select the desired formatting options
c. Click OK
The Format Cells dialog box closes.
The Format Cells dialog box closes.
6. When finished, click OK
The new rule is applied and saved.
The new rule is applied and saved.
Editing Rules
You can edit preformatted and original rules. Rules are only editable if they have been applied in a worksheet.1. From the Home command tab, in the Styles group, click CONDITIONAL FORMATTING
» select Manage Rules...
The Conditional Formatting Rules Manager appears.
The Conditional Formatting Rules Manager appears.
2. From the Show formatting rules for pull-down list, select the worksheet containing the rule you want to edit
The conditional formatting rules applied in that selection will appear in the dialog box.
The conditional formatting rules applied in that selection will appear in the dialog box.
3. From the list, select the rule you want to edit
The rule is highlighted.
4. Click EDIT RULE...The rule is highlighted.
The Edit Formatting Rule dialog box appears.
5. To change what triggers the formatting, from the Select a Rule Type section, select the condition
The Edit the Rule Description section will refresh to display new options.
The Edit the Rule Description section will refresh to display new options.
6. To change criteria, in the Edit the Rule Description section, select your criteria
- To change the formatting
- Click FORMAT...
The Format Cells dialog box appears. - Select the desired formatting options
c. Click OK
The Format Cells dialog box closes.
The Format Cells dialog box closes.
8. When finished, click OK
The changes are saved.
The changes are saved.
9. To close the Conditional Formatting Rules Manager, click OK
Prioritizing Rules
When using conditional formatting, it may be necessary to prioritize your rules. For example, if you create a rule to format cells B2–B5 with red fill color, and you create another rule to format cells B2–E2 with yellow fill color, the cell B2 will have conflicting formatting. If this happens, both effects may appear, or one rule may simply override the other. With prioritized rules, the rule with higher priority will apply. You can easily adjust priorities through the Conditional Formatting Rules Manager.NOTE: New rules are given the highest priority.
1. From the Home command tab, in the Styles group, click CONDITIONAL FORMATTING»
select Manage Rules...
The Conditional Formatting Rules Manager appears.
2. From the Show formatting rules for pull-down list, select the worksheet containing the rule(s) you want to prioritize
The conditional formatting rules applied in that selection will appear in the dialog box.
NOTE: Rules at the top of the list have the highest priority.
The conditional formatting rules applied in that selection will appear in the dialog box.
NOTE: Rules at the top of the list have the highest priority.
3. Select the rule for which you want to change priority
The rule is highlighted.
The rule is highlighted.
4. To move the rule up by one rule, click MOVE UP
To move the rule down by one rule, click MOVE DOWN
The rule adjusts.
To move the rule down by one rule, click MOVE DOWN
The rule adjusts.
5. OPTIONAL: If you want Excel to automatically choose a rule that has a lower priority than its alternatives, for that rule, select Stop If True
NOTE: Not all rules have a Stop If True option.
NOTE: Not all rules have a Stop If True option.
Deleting Rules
Once a rule has been applied, it may be deleted.1. From the Home command tab, in the Styles group, click CONDITIONAL
FORMATTING» select Manage Rules...
The Conditional Formatting Rules Manager appears.
The Conditional Formatting Rules Manager appears.
2. From the Show formatting rules for pull-down list, select the worksheet containing the rule you want to delete
The conditional formatting rules applied in that selection will appear in the dialog box.
The conditional formatting rules applied in that selection will appear in the dialog box.
3. Select the rule to delete
The rule is highlighted.
The rule is highlighted.
4. Click DELETE RULE
The rule is deleted.
5. Click OK
The changes are saved.
The changes are saved.
0 comments:
Post a Comment