Introduction
Excel gives us several tools that will make this
task easier. One of these tools is called conditional formatting. With conditional formatting, you can apply formatting to one or more cells based on the value of the cell. You can highlight interesting or unusual cell values, and visualize the data using formatting such as colors, icons, and data bars.
In this lesson, you'll learn how to apply, modify, and remove conditional formatting rules.
To create a conditional formatting rule:
- Select the cells you want to add formatting to.
- In the Home tab, click the Conditional Formatting command. A drop-down menu will appear.
- Select Highlight Cells Rules or Top/Bottom Rules. We'll choose Highlight Cells Rules for this example. A menu will appear with several rules.
- Select the desired rule (Greater Than, for example).
- From the dialog box, enter a value in the space provided, if applicable. In this example, we want to format cells that are greater than $5000, so we'll enter 5000 as our value. If you want, you can enter a cell reference instead of a number.
- Select a formatting style from the drop-down menu.
- The formatting will be applied to the selected cells.
If you want, you can apply more than one rule to your cells.
Conditional formatting presets
Excel has several presets you can use to quickly apply conditional formatting to your cells. They are grouped into three categories:
- Data bars are horizontal bars added to each cell, much like a bar graph.
- Color scales change the color of each cell based on its value. Each color scale uses a two- or three-color gradient. For example, in the Green-Yellow-Red color scale, the highest values are green, the average values are yellow, and the lowest values are red.
- Icon sets add a specific icon to each cell based on its value.
To use preset conditional formatting:
- Select the cells you want to add formatting to.
- In the Home tab, click the Conditional Formatting command. A drop-down menu will appear.
- Select Data Bars, Color Scales, or Icon Sets. Then select the desired preset.
- The conditional formatting will be applied to the selected cells.
To remove conditional formatting rules:
- Select the cells that have conditional formatting.
- In the Home tab, click the Conditional Formatting command. A drop-down menu will appear.
- Select Clear Rules.
- A menu will appear. You can choose to clear rules from the Selected Cells, Entire Sheet, This Table, or This PivotTable. In this example, we'll clear rules from the entire sheet.
You can edit or delete individual rules by clicking the Conditional Formatting command and selecting Manage Rules. This is especially useful if you have applied multiple rules to the cells.
Challenge!
- Open an existing Excel 2010 workbook. If you want, you can use this example.
- Apply conditional formatting to a range of cells with numerical values. If you are using the example, apply formatting to all of the sales data.
- Apply a second conditional formatting rule to the same set of cells.
- Explore the Conditional Formatting Rules Manager dialog box.
- Clear all conditional formatting rules from the worksheet.
No comments:
Post a Comment