Search Contextures Sites ![]()
Excel Conditional Formatting -- Examples
Hide Duplicate Values
In a table, each row should have all data entered, to enable sorting and filtering. However, you can use Excel conditional formatting to hide the duplicate values, and make the list easier to read. In this example, when the table is sorted by Region, the second (and subsequent) occurences of each region name will have white font colour.
In Excel 2003:
In Excel 2007:
- Select range A2:A5
- Choose Format|Conditional Formatting
- From the first dropdown, choose Formula Is
- For the formula, enter
=A2=A1- Click the Format button.
- Select a font colour to match the cell colour.
- Click OK, click OK
- Select range A2:A5
- On the Ribbon, go to the Home tab and click Conditional Formatting
- Click New Rule
- Click Use a Formula to Determine Which Cells to Format
- For the formula, enter
=A2=A1- Click the Format button.
- Select a font colour to match the cell colour.
- Click OK, click OK
To view the steps
for Excel Conditional Formatting
in a short video, click here
(Excel 2007)
Highlight Items in a List
Use Excel conditional formatting to highlight items that are in a list on the worksheet.:
- Create a list of items you want to highlight. If the items are on a different sheet than the conditional formatting, name the list.
- Select range A2:A7
- Choose Format|Conditional Formatting
- From the first dropdown, choose Formula Is
- For the formula, enter
=COUNTIF($C$2:$C$4,A2)
or, if the list is named, use the name in the formula:
=COUNTIF(CodeList,A2)
- Click the Format button.
- Select a font colour for highlighting.
- Click OK, click OK
Excel Conditional Formatting Tutorials
- Excel Conditional Formatting -- Introduction
- Excel Conditional Formatting -- Multiple Cells
- Excel Conditional Formatting -- Examples
- Excel Conditional Formatting -- Documentation
- Excel Conditional Formatting -- Data Bars
Contextures Inc., Copyright ©2012
All rights reserved.
Last updated: July 11, 2011 8:15 AM