Search Contextures Sites ![]()
Conditional Formatting -- Introduction
- What is Conditional Formatting?
- Video: Color Cells Based on Cell Value
- Apply Conditional Formatting to a Cell
- Apply 2nd Conditional Format
- Download a Sample File
- Watch the Video
- Excel Conditional Formatting -- Based on another cell
- Excel Conditional Formatting -- Examples
Click here for Excel 2003 instructions
What is Conditional Formatting?
With conditional formatting, you can select one or more cells, and create rules (conditions) for when and how those cells are formatted. The conditions can be, based on the selected cell's contents, or based on the contents of another cell.
You can control the following formats:
- Number format
- Font, font style, and font colour (but not font size)
- Fill colour and fill pattern
- Border colour and border style (but not border thickness)
If the rules (conditions) that you specified are met, then the formatting is applied.
For example, you can set conditional formatting so that a cell turns red if its value is low, and turns green if its value is high.
Video: Color Cells Based on Cell Value
To view the steps for adding condtional formatting, watch this short video. The written instructions are below the video.
Apply Conditional Formatting to a Cell
In this example, you'll set conditional formats so that a cell:
- turns green if it contains a value higher than 75 and
- turns red if it contains a value lower than 50.
Follow these steps to apply conditional formatting to cells:
- In cell I1, type the high value -- 75
- In cell I2, type the low value -- 50
- Select the cells to be formatted. In this example, cells E2:E7 are selected.
- On the Ribbon's Home tab, click Conditional Formatting
- To format the high values, click Highlight Cell Rules, then click Greater Than...
- In the Greater Than window, delete the value that appears, and click on cell I1, where the High value is entered.
- Click the drop down list for formats, and click Custom Format.
- In the Format Cells window, click the Fill tab, and click on the green fill colour that you want.
- Click OK to close the Format Cells window, and click OK to close the Greater Than window.
The cells with values greater than 75 are now coloured green.
Apply 2nd Conditional Format
To colour the low values in red fill, you can apply a second condtional formatting rule to the cells.
- Select the cells to be formatted. In this example, cells E2:E7 are selected.
- On the Ribbon's Home tab, click Conditional Formatting
- To format the high values, click Highlight Cell Rules, then click Less Than...
- In the Less Than window, delete the value that appears, and click on cell I2, where the Low value is entered.
- Click the drop down list for formats, and click Custom Format.
- In the Format Cells window, click the Fill tab, and click on the green fill colour that you want.
- Click OK to close the Format Cells window, and click OK to close the Less Than window.
The cells with values greater than 75 are now coloured green, and cells less than 50 are red.
Download the Sample File
Click here to download a zipped sample file for this tutorial.
Related Tutorials
- Excel Conditional Formatting -- Introduction
- Excel Conditional Formatting -- Based on another cell
- Excel Conditional Formatting -- Examples
- Excel Conditional Formatting -- Documentation
- Excel Conditional Formatting -- Data Bars
Contextures Inc., Copyright ©2013
All rights reserved.