Highlighting specific entries in a column
Instead of formatting all the entries in a column the same way, as you would with a True condition, you might want to highlight only those entries that meet certain criteria. You can highlight specific column entries using a Formula condition, which formats one column based on criteria in another column.
This example illustrates how to spot a particular driver quickly in the LastName column of the Driver Scroll window. You create an expression that will display that driver’s name in bold when it equals the driver ID you specify.
You must retrieve data before setting conditional formatting for a column. |
-
Go to Tools > Scrolls > Driver Scroll.
The Driver Scroll window opens. -
Make sure the value in the View field is ScrollDriver.
-
Retrieve data in the Driver Scroll window.
-
Right-click the LastName column header.
-
From the shortcut menu, select Conditional Format.
The Add Condition/Appearance Mappings window opens. A single condition row appears in the grid by default. -
In the Select a condition type field, select Formula.
-
Click Formula Builder.
The Formula Builder window opens. -
On the Operands tab, navigate to the appropriate control.
For this example, expand Controls > _resultsGrid > Members. -
Locate and double-click the name of the column that contains the information on which you want to base the condition.
Note: You cannot select the same data column you are formatting.For this example:
-
The mpp_lastname column is disabled.
-
Double-click mpp_ID, which contains the Driver ID.
[mpp_ID]
appears in the upper-right field.
-
-
Click the appropriate operator button.
In this example, click the = button. The equals sign is added to the expression.
-
Within single quotation marks, enter the data item you want highlighted.
If the entry is accepted, a message will appear in the lower-right field confirming that the formula compiled successfully.
-
Click OK.
The Formula Builder window closes. -
Click Styles.
-
Click Custom Style.
The Custom Style Properties window opens. -
In the Style section, select Bold.
-
In the Font Color field, change the font color to black if it is not already black. You can do this by typing 0, 0, 0 or by following these steps:
-
Click the arrow in the Font Color field.
A drop-down menu opens. -
Click the Web tab.
-
Select Black.
-
-
In the Fill field, change the fill color to white if it is not already white. You can do this by typing 255, 255, 255 or by following these steps:
-
Click the arrow in the Fill field.
A drop-down menu opens. -
Click the Web tab.
-
Select White.
-
-
Click OK.
The Custom Style Properties window closes. -
Click OK on the Add Condition/Appearance Mappings window.
The driver’s name you specified appears in bold.