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.

124<br />

Part II: Using Functions in Your <strong>Formula</strong>s<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.<br />

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

=A1=A2<br />

How to find special characters<br />

Don’t overlook the handy Symbol dialog box (which appears when you choose Insert➜<br />

Symbols➜Symbol). This dialog box makes it easy to insert special characters (including Unicode<br />

characters) into cells. For example, you might (for some strange reason) want to include a smiley<br />

face character in your spreadsheet. Access Excel’s Symbol dialog box and select the<br />

Wingdings font (see the accompanying figure). Examine the characters, locate the smiley face,<br />

click Insert, and then click Cancel. You’ll also find out that this character has a code of 74.<br />

Excel acts a bit lax in its comparisons when text is involved. Consider the case in which A1 contains<br />

the word January (initial capitalization), and A2 contains JANUARY (all uppercase). You’ll<br />

find that the previous formula returns TRUE even though the contents of the two cells are not<br />

really the same. In other words, the comparison is not case sensitive.<br />

In many cases, you don’t need to worry about the case of the text. However, if you need to make<br />

an exact, case-sensitive comparison, you can use Excel’s EXACT function. The formula that follows<br />

returns TRUE only if cells A1 and A2 contain exactly the same entry:<br />

=EXACT(A1,A2)

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

Saved successfully!

Ooh no, something went wrong!