|
Conditional Formatting - Examples
Conditional Formatting automatically formats cells (Font, Border, Pattern) if a condition is met (eg the value of the cell is less than zero). For example if you want to warn the user for negative values you should select the particular cell, chose Format / Conditional Formatting and complete the fields as follows: "Cell Value is", "Less than", "0". Then you have to click on the Format button , chose the red colour and press OK twice. When you follow these steps, the value of the cell will be formatted in red if it turns to negative.
As with Data Validation, you can also enter a formula that should return either True or False - if True, the formatting selected will be applied. The illustration below shows how Conditional Formatting can be used to identify unbalanced Journal Entries. To do this, select the range of Journal Entries (starting with A5), chose Format / Conditional Formatting and complete the fields of the Conditional Formatting window as shown below. Then click on the Format button and select the appropriate format. Press OK to finish.
|
|