Chapter 25: Using Custom Number Formats
In This Chapter
Getting an overview of custom number formatting
Creating a custom number format
Listing all custom number format codes
Looking at examples of custom number formats
When you enter a number into a cell, you can display that number in a variety of different formats. Excel has quite a few built-in number formats, but sometimes you may find that none of them is exactly what you need.
This chapter describes how to create custom number formats and provides many examples that you can use as is or adapt to your needs.
About Number Formatting
By default, all cells use the General number format. This format is basically “what you type is what you get.” But if the cell isn't wide enough to show the entire number, the General format rounds numbers with decimals and uses scientific notation for large numbers. In many cases, the General number format works just fine, but most people prefer to specify a different number format for consistency.
The key thing to remember about number formatting is that it affects only how a value is displayed. The actual number remains intact, and any formulas that use a formatted number use the actual number.
An exception to this rule occurs if you specify the Set Precision as Displayed option on the Advanced tab in the Excel Options dialog box. If that option is in effect, formulas use the values that are actually displayed in the cells as the result of a number format applied to the cells. In general, ...