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.

Creating Formulas That Manipulate Text 12<br />

Inserting special characters<br />

If you need to insert special characters not found on your keyboard, you can use the Symbol dialog box<br />

(which is accessed using Insert ➪ Text ➪ Symbol). This dialog box simplifies inserting special characters<br />

(including Unicode characters) into cells. For example, you may want to display the Greek letter pi (π) in your<br />

spreadsheet. Access Excel’s Symbol dialog box and select the Symbol font (see the accompanying figure).<br />

Examine the characters, locate the pi character, and click Insert. You’ll see (in the Character Code area of the<br />

Symbol dialog box) that this character has a numerical code of 112.<br />

In addition, Excel has several built-in AutoCorrect symbols. For example, if you type (c), Excel converts it to a<br />

copyright symbol. To see the other symbols that you can enter this way, display the AutoCorrect dialog box. To<br />

display this dialog box, choose <strong>Office</strong> ➪ Excel Options and select the Proofing tab in the Excel Options dialog<br />

box. Then click the AutoCorrect Options button. You can then scroll through the list to see which autocorrections<br />

are enabled (and delete those that you don’t want).<br />

If you find that Excel makes an autocorrection that you don’t want, press Ctrl+Z to undo the autocorrection.<br />

Assume cell A1 contains the letter A (uppercase). The following formula returns the letter a (lowercase):<br />

=CHAR(CODE(A1)+32)<br />

This formula takes advantage of the fact that the alphabetic characters all appear in alphabetical order<br />

within the character set; lowercase letters follow uppercase letters (with a few other characters tossed in<br />

between). Each lowercase letter lies exactly 32 character positions higher than its corresponding uppercase<br />

letter.<br />

Determining whether two strings are identical<br />

You can set up a simple logical formula to determine whether two cells contain the same entry. For example,<br />

use this formula to determine whether cell A1 has the same contents as cell A2:<br />

=A1=A2<br />

209

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

Saved successfully!

Ooh no, something went wrong!