11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix B: Using Custom Number Formats 747<br />

Displaying a negative sign on the right<br />

The following format string displays negative values with the negative sign to the right of the<br />

number. Positive values have an additional space on the right, so both positive and negative<br />

numbers align properly on the right.<br />

0.00_-;0.00-<br />

Testing custom number formats<br />

When you create a custom number format, don’t overlook the Sample box in the Number tab of<br />

the Format Cells dialog box. This box displays the value in the active cell using the format string<br />

in the Type box.<br />

It’s a good idea to test your custom number formats by using the following data: a positive<br />

value, a negative value, a zero value, and text. Often, creating a custom number format takes<br />

several attempts. Each time you edit a format string, it is added to the list. When you finally get<br />

the correct format string, access the Format Cells dialog box one more time and delete your<br />

previous attempts.<br />

To make the negative numbers more prominent, you can add a color code to the negative part of<br />

the number format string:<br />

0.00_-;[Red]0.00-<br />

Conditional number formatting<br />

Conditional formatting refers to formatting that is applied based on the contents of a cell. Excel’s<br />

Conditional Formatting feature provides the most efficient way to perform conditional formatting<br />

of numbers, but you also can use custom number formats.<br />

A conditional number formatting string is limited to three conditions: Two of them are<br />

explicit, and the third one is implied (that is, everything else). The conditions are<br />

enclosed in square brackets and must be simple numeric comparisons.<br />

The following format string displays different text (no value), depending on the value in the cell.<br />

This format string essentially separates the numbers into three groups: less than or equal to 4,<br />

greater than or equal to 8, and other.<br />

[=8]”High”* 0;”Medium”* 0

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

Saved successfully!

Ooh no, something went wrong!