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.

Part IV<br />

Using Advanced Excel Features<br />

Where Did Those Number Formats Come From?<br />

Excel may create custom number formats without you realizing it. When you use the Increase Decimal or<br />

Decrease Decimal button on the Home ➪ Number group of the Ribbon (or in the Mini toolbar), Excel creates<br />

new custom number formats, which appear on the Number tab in the Format Cells dialog box. For example,<br />

if you click the Increase Decimal button five times, the following custom number formats are created:<br />

0.0<br />

0.000<br />

0.0000<br />

0.000000<br />

A format string for two decimal places is not created because that format string is built-in.<br />

Custom Number Format Examples<br />

The remainder of this chapter consists of useful examples of custom number formats. You can use most of<br />

these format codes as-is. Others may require slight modification to meet your needs.<br />

Scaling values<br />

You can use a custom number format to scale a number. For example, if you work with very large numbers,<br />

you may want to display the numbers in thousands (that is, display 1,200,000 as 1,200). The actual number,<br />

of course, will be used in calculations that involve that cell. The formatting affects only how it is displayed.<br />

Displaying values in thousands<br />

The following format string displays values without the last three digits to the left of the decimal place and no<br />

decimal places. In other words, the value appears as if it’s divided by 1,000 and rounded to no decimal places.<br />

#,###,<br />

A variation of this format string follows. A value with this number format appears as if it’s divided by 1,000<br />

and rounded to two decimal places.<br />

#,###.00,<br />

Table 24.5 shows examples of these number formats:<br />

TABLE 24.5<br />

Examples of Displaying Values in Thousands<br />

Value Number Format Display<br />

123456 #,###, 123<br />

1234565 #,###, 1,235<br />

–323434 #,###, –323<br />

472

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

Saved successfully!

Ooh no, something went wrong!