11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 5: Manipulating Text 131<br />

You can also pad a number by using a custom number format. To repeat the next character in<br />

the format to fill the column width, include an asterisk (*) in the custom number format code. For<br />

example, use this number format to pad the number with dashes:<br />

$#,##0.00*-<br />

To pad the number with asterisks, use two asterisks, like this:<br />

$#,##0.00**<br />

Refer to Appendix B for more information about custom number formats, including<br />

additional examples using the asterisk format code.<br />

Changing the case of text<br />

Excel provides three handy functions to change the case of text:<br />

UPPER: Converts the text to ALL UPPERCASE.<br />

LOWER: Converts the text to all lowercase.<br />

PROPER: Converts the text to Proper Case. (The First Letter In Each Word Is Capitalized.)<br />

These functions are quite straightforward. The formula that follows, for example, converts the<br />

text in cell A1 to proper case. If cell A1 contained the text MR. JOHN Q. PUBLIC, the formula would<br />

return Mr. John Q. Public.<br />

=PROPER(A1)<br />

These functions operate only on alphabetic characters; they ignore all other characters and return<br />

them unchanged.<br />

The PROPER function capitalizes the first letter of every word, which isn’t always desirable.<br />

Applying the PROPER function to a tale of two cities results in A Tale Of Two<br />

Cities. Normally, the preposition of wouldn’t be capitalized. In addition, applying the<br />

PROPER function to a name such as ED MCMAHON results in Ed Mcmahon (not<br />

Ed McMahon).

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

Saved successfully!

Ooh no, something went wrong!