< Previous | Next >

Task 6: Changing cell formats

You change the formatting in the Coverages decision table by adding the dollar sign ($) to the Surcharge column currency values, and by changing the color of the values to red.

About this task

You change the format of the decision table.

Procedure

  1. In the Coverages decision table, right-click the Surcharge column header, and then click Format.
  2. In the Format Statement field, click next to the value {0}, and then type a dollar sign, so that you have: ${0}.

    The zero in curly brackets is the default format statement that represents the contents of the cell. When you add the dollar sign, it is displayed as a prefix to the value displayed in the cell.

    You can also select a predefined format from the Format Statement list. For example, select {0,number,percent} to display the contents of a cell as a percentage value. You can apply this formatting either globally throughout a column or only at cell level.

  3. Click OK. A dollar sign is displayed next to each value in the Surcharge cells.
  4. Right-click the column header Surcharge, and then click Format
  5. Click the button next to the Foreground field, and then click the red color in the palette.
  6. Click OK, and then save your work.

Results

Each value in the Surcharge column is now red and has a dollar sign, as shown in the following decision table:

Coverages decision table that shows the formatting changes that were applied to the data in the column

What to do next

In the next task, you run the decision table.

< Previous | Next >