Conditional formatting
Highlight rules and colour scales for table columns and crosstab values.
Select a table column or a crosstab value and open Conditional formatting in Properties.
Rules
A rule has a condition on the cell’s own value and a style. Up to ten apply in order and the first match wins, so put the most severe first.
| Value | Conditions |
|---|---|
| Numbers, dates | equals, not equals, less than, at most, greater than, at least, between, empty, not empty |
| Text | equals, not equals, contains, starts with, empty, not empty. Case is ignored |
| True or false | equals, empty, not empty |
Numbers are compared exactly and unrounded. A column shown as 10.0% may hold 0.0996.
Styles
The tones are positive, negative, warning, information, neutral and accent, as a fill or as text colour. Each rule must have an icon or bold, because colour alone isn’t enough for everyone. Add a note of up to 80 characters and screen readers will read it instead of the condition.
Tones keep at least 4.5:1 contrast in both themes and can’t be recoloured.
Scales
A numeric column can have one scale.
- Sequential runs from low to high in blue, green or amber.
- Diverging runs either side of a midpoint, 0 unless you change it, in red-green, red-blue or orange-blue.
Ends are the lowest and highest values returned unless you fix them. Values outside take the end colour. A rule that matches covers the scale.
Totals
Scales never include totals. Rules include them only if you say so, since a threshold for one store rarely suits the sum of them all.
Elsewhere
Formatting follows its field when you move or rename it. Excel files carry it as cell styles, PDFs draw it in light colours, and CSV has values only. Runs keep the formatting they ran with.


