Excel Training: Conditional Formatting

As its name suggests, conditional formatting is a formatting that applies to cells under condition.

It allows to modify:

  • The background color of the cell
  • The text formatting
  • The borders
  • The data format

Add a conditional formatting

To apply a conditional formatting to the following table (lesson-8.xlsx), select the range of cells containing the numbers and click on "Conditional Formatting" from the "Home" tab.

The objective of this first conditional formatting will be to color in green all the numbers greater than 48000. So choose the rule "Greater Than":

excel conditional formatting png

Then enter the value 48000, the desired color and validate:

excel conditional formatting greater

The formatting is then applied to the cells.

Note that if you later modify the numbers contained in this range of cells, the formatting will be automatically updated:

excel formatting conditional

Modify a conditional formatting

To modify the conditional formatting that we just added, click on "Manage Rules":

excel conditional formatting rules png

The rules manager is then displayed:

excel conditional formatting rule manager png

From this window, you can:

Now double-click on the rule to modify it (or click on the "Edit Rule" button).

From this window, you can modify the rule to apply it for example to the first 15% of the selection:

excel conditional formatting percent numbers

Then click on the "Format" button to modify the formatting:

excel conditional formatting format png

And validate:

excel formatting amounts conditional

Shades, bars and icons

Special and ready-to-use conditional formats are available in "Conditional Formatting".

Example of a "Data Bars" conditional formatting:

excel conditional formatting bars png

Example of a "Color Scales" conditional formatting:

excel conditional formatting color scales png

Example of a "Icon Sets" conditional formatting:

excel conditional formatting icons png