Conditional Formatting

Sometimes it is useful to apply a set of formatting rules only under a certain (set of) condition(s). In other words, if the contents of a cell meets a certain condition, then Excel will display the cell contents with predefined formatting.

Examples of items that might be appropriate for conditional formatting:


To Set Conditional Formatting

  • Highlight the cell(s) to which you wish to apply conditional formatting
  • choose FORMAT Conditional Formatting
  • the Conditional Formatting Dialog Box
    • you are about to set “Condition 1” (you can set more than one condition)
    • the first drop-down box allows you to set a condition based upon the “Cell Value Is” (shown) or the “Formula Is” (not shown).
    • the second drop-down box allows you to set a criteria
      • between (shown)
      • not between
      • equal to
      • not equal to
      • greater than
      • less than
      • greater than or equal to
      • less than or equal to
Conditional Formatting Dialog Box

The Conditional Formatting Dialog Box

  • enter the values in the third and fourth boxes (the fourth box will only be available if you select “between” or “not between”
  • click theFormat Buttonto display the Format Cells Dialog Box (this dialog box is essentially the same as that displayed when you select FORMAT Cells and choose the “Font” tab, click here to review this dialog box)
    • select the type of formatting you desire (font, font size, color, etc.)
    • clickOK button
    • the Conditional Formatting Dialog Box reappears and the preview area displays the selected formatting
  • you now have two options, you may do one or the other
    • clickOK buttonto apply the conditional formatting and close this dialog box
    • clickAdd buttonto apply the conditional formatting and then create a second condition
    • TheDelete buttonis used to delete a previously defined conditional format

 

In the example gradesheet created earlier, can you set a conditional format sp that any “F” grades will display as bold and red?


Go Back


Copyright©2003
last updated August 12, 2003