18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Custom Number<br />

Formats<br />

When you enter a number into a cell, you can display that number in a<br />

variety of different formats. Excel has quite a few built-in number formats,<br />

but you may find that none of them suit your needs.<br />

This chapter describes how to create custom number formats and provides many<br />

examples that you can use as-is or adapt to your needs.<br />

About Number Formatting<br />

By default, all cells use the General number format. This format is basically “what<br />

you type is what you get.” But if the cell isn’t wide enough to show the entire number,<br />

the General format rounds numbers with decimals and uses scientific notation<br />

for large numbers. In many cases, the General number format works just fine. But<br />

most people prefer to specify a different number format for consistency.<br />

The key thing to remember about number formatting is that it affects only how a<br />

value is displayed. The actual number remains intact, and any formulas that use<br />

a formatted number use the actual number.<br />

An exception to this rule occurs if you specify the Set Precision As<br />

Displayed option in the Advanced tab in the Excel Options dialog<br />

box. If that option is in effect, formulas use the values that are actually displayed<br />

in the cells. In general, using this option is not a good idea because it changes the<br />

underlying values in your worksheet.<br />

NOTE<br />

One more thing to keep in mind: If you use Excel’s Find And Replace dialog box<br />

(displayed by choosing Home ➪ Editing ➪ Find & Select ➪ Find, characters<br />

that are displayed as a result of number formatting (for example, a currency symbol)<br />

are not searchable.<br />

IN THIS CHAPTER<br />

An overview of custom number<br />

formatting<br />

How to create a custom number<br />

format<br />

A list of all custom number<br />

format codes<br />

Examples of custom number<br />

formats<br />

465

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!