Numbers - Associating Conditions with a Custom Number Format

background image

Associating Conditions with a Custom Number Format

You associate conditions with a custom number format to vary a table cell’s display
characteristics based on what’s entered into the cell.

Here’s a number format that has four conditions. The top condition is applied if the
number entered doesn’t satisfy any of the other conditions.

108

Chapter 4

Working with Table Cells

background image

Chapter 4

Working with Table Cells

109

When you type this value into a cell with the
above format

The value is displayed like this

15000

Due: $0015.00K

0

Paid in Full

–500

Credit: $ (0000.50K)

Account closed

Note: Account closed

To create a custom number format that has conditions:

1

Select one or more cells.

2

Do one of the following:

Choose Custom from the Cell Formats pop-up menu in the format bar.

Â

Choose Custom from the Cell Format pop-up menu in the Cells inspector.

Â

Choose Format > Create Custom Cell Format.

Â

3

From the Type pop-up menu, choose Number & Text.

4

Click the Add (+) button to the right of the format field to add a condition.

5

From the pop-up menu above the new format field, choose a condition.

6

Define the number format you want to apply when a number meets the condition by

adding elements to the format field.
See “Creating a Custom Number Format” on page 102 for information about
interacting with the format field.

7

Repeat steps 4 through 6 as needed to define all your conditions.

Note: To remove a condition, click the Delete (–) button to the right of its format field.

background image

8

In the topmost format field, define the display format you want to use if a number

doesn’t meet any of the conditions.
You can use the Entered Text element to display predefined text if a text value is
entered instead of a number. See “Creating a Custom Text Format” on page 111 for
more information.

9

In the Name field, type a name for your number format, and then click OK to save it

and apply it to selected cells.
Custom format names are listed in the Cell Formats pop-up menu in the format bar
and in the Cell Format pop-up menu of the Cells inspector.