Format reports based on conditions

When you format data in a selected column, the format applies to all the values. Often, it is useful to change the format of data when a certain condition is true. For example, you can display numbers in red if the value is a negative number and in black if the value is a positive number. Conditional formatting is the formatting of data according to defined conditions.

You can also change the format of data in a column according to the values in another column. For example, in a report showing employee names and the number of hours that each employee worked, you can highlight in blue any employee name who worked under 40 hours and highlight in red and bold any employee name who worked more than 40 hours.

To apply conditional formatting, you create a rule defining when and how to change the appearance of data. You can apply conditional formats only to data in columns. The rule consists of the condition that must be true, and the text attributes to apply to column entries that satisfy the condition. You can define up to three conditions or rules for a single column and remove or modify conditional formatting for a column.

To set conditional formatting:

  1. To define the condition, select and right-click the column on which to display conditional formatting.
  2. Select Format > Conditional Formatting.
  3. In the Conditional Formatting box, create a rule specifying the following information, then click tap OK:
    • The format to apply, such as bold style.
    • The condition that must be true to apply the format, such as Early Out exceptions less than or equal to 2.