Excel 2010 Bible

(National Geographic (Little) Kids) #1

Chapter 24: Using Custom Number Formats


557


FIGURE 24.2

Examples of custom number formatting.


Parts of a number format string

A custom format string can have up to four sections, which enables you to specify different format
codes for positive numbers, negative numbers, zero values, and text. You do so by separating the
codes with a semicolon. The codes are arranged in the following order:

Positive format; Negative format; Zero format; Text format

If you don’t use all four sections of a format string, Excel interprets the format string as follows:

l If you use only one section: The format string applies to all types of entries.

l (^) If you use two sections: The first section applies to positive values and zeros, and the
second section applies to negative values.
l (^) If you use three sections: The first section applies to positive values, the second section
applies to negative values, and the third section applies to zeros.
l (^) If you use all four sections: The last section applies to text stored in the cell.

Free download pdf