Apply conditional formatting
In this task you make the values of one column of a report easy to spot. You choose a rule, such as "greater than 10,000", and the program colors the cells that match. You can also show data bars, color scales or small icons that follow the value. The rules change only how the cells look: the figures and the totals stay the same.
Before you begin
- Run a report that shows a table or a pivot table. See Run a report and read the result.
- Click a cell in the column you want to format. Every command on the Conditional Formatting tab works on the column of the cell you last clicked. If you have not clicked a cell, the commands do nothing.
Steps
Highlight cells by a value
- Click the Conditional Formatting tab.
- Click Highlight Cells and choose a rule, for example Greater Than.... The other rules are Less Than..., Between..., Equal To..., Text that Contains..., A Date Occurring... (tables only) and Duplicate Values....
- In the window that opens, type the value, for example
10000. For Between... type two values. - Choose a format from the list, for example Light Red Fill with Dark Red Text. Choose Custom Format... to set the font, the color and the background yourself.
- Click Ok. The matching cells of the column change at once.

Highlight the highest or lowest values
- Click Top/Bottom.
- Choose Top 10 Items..., Top 10 %..., Bottom 10 Items..., Bottom 10 %..., Above Average... or Below Average....
- Type the number or the percentage when the window asks for it, choose a format and click Ok.
Show bars, colors or icons
- Click Data Bars, Color Scales or Icon Sets. A gallery of pictures opens.
- Click a picture. The program applies it to the column at once, without a window.
A data bar grows with the value. A color scale colors each cell by where its value falls between the lowest and the highest values. An icon set shows an icon for each range of values.

Write your own condition
- Click Custom Condition.
- Write the condition in the box and choose a format.
- Click Ok. If the program shows the message "The specified expression is invalid.", correct the expression.
Change or remove rules
- To see and change all the rules, click Manage Rules. The window lists them, with New Rule..., Edit Rule... and Delete Rule. Use Show formatting rules for: to list the rules of the current column or of all columns.
- To remove rules at once, click Clear and choose Clear Rules from This Column or Clear Rules from All Columns. The program does not ask for confirmation. With a pivot table, the button works on the selected cell and shows three more items: Clear Rules from All Measures, Clear Rules from This Intersection (the rules of the row and column fields of the cell) and Clear Rules from This Measure.
Result
The cells that match the rule are formatted, in the column you chose. For example, in the Trial Balance of the demo company, the rule Greater Than... 10000 on Debit balance colors five cells: 18,750.00 (1232-Collection Portfolio), 39,072.50 (131-Cash in hand), 90,000.00 (1102-Alwaha Bank), 30,000.00 (1114-Cars) and 18,000.00 (3208-rent). In the window, Apply format to the entire row is not ticked at first. You can add several rules to one column and rules to several columns. When you export the table to Excel, the rules go with it if Export conditional formatting is on in the export window. See Report viewer File tab.
If something goes wrong
| Problem | Why it happens | What to do |
|---|---|---|
| The Conditional Formatting tab is not on the ribbon. | The selected panel is a chart. | Click a table or a pivot table. |
| A command does nothing. | You have not clicked a cell in the column. | Click a cell in the column, then choose the command again. |
| A Date Occurring... is missing. | It exists for tables only, not for pivot tables. | Use Between... with two dates, or work in a table. |
| The message "The specified expression is invalid." or "The specified expression contains invalid symbols (character …)." appears. | The custom condition is not a valid expression. | Correct it. The message has the title Error. |
| Nothing is colored. | No cell matches the rule. | Open Manage Rules and check the value and the column of each rule. |
Related
- Report grid tools: every command and window of the tab
- Pivot table tools
- Sort, group and summarize a grid
This page applies to alameen ERP 10, version 10.1.79.764.