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.

750<br />

Part VII: Appendixes<br />

If you use the preceding number format, you’ll find that the negative sign appears before the text<br />

for negative values. To display number signs properly, use this variation:<br />

“Average: “0.00;”Average: “-0.00<br />

The following format string displays a value with the words Dollars and Cents. For example, the<br />

number 123.45 displays as 123 Dollars and .45 Cents.<br />

0 “Dollars and” .00 “Cents”<br />

Displaying a zero with dashes<br />

The following number format string displays zero values as a series of dashes:<br />

#,##0.0;-###0.0;------<br />

You can, of course, create lots of variations. For example, you can replace the six hyphens with<br />

any of the following:<br />

<br />

-0-<br />

~~<br />

“”<br />

“[NULL]”<br />

When using angle brackets or square brackets, you must place them within quotation<br />

marks.<br />

Formatting numbers using the TEXT function<br />

Excel’s TEXT function accepts a number format string as its second argument. For example, the<br />

following formula displays the contents of cell A1 using a custom number format that displays a<br />

fraction:<br />

=TEXT(A1,”# ??/50”)<br />

However, not all formatting codes work when used in this manner. For example, colors and repeating<br />

characters are ignored. The following formula does not display the contents of cell A1 in red:<br />

=TEXT(A1,”[Red]General”)

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

Saved successfully!

Ooh no, something went wrong!