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.

Chapter 9: Tables and Worksheet Databases 263<br />

Note that the criteria range does not need to include all the fields from the database. If you work<br />

with different sets of criteria, you may find it more convenient to list all the field names in the<br />

first row of your criteria range.<br />

Using comparison operators<br />

You can use comparison operators to refine your record selection. For example, you can select<br />

records based on any of the following:<br />

Homes that have at least four bedrooms<br />

Homes with a square footage less than 2,000<br />

Homes with a table price of no more than $200,000<br />

To select the records that describe homes that have at least four bedrooms, type Bedrooms in<br />

cell A1 and then type >=4 in cell A2 of the criterion range.<br />

Table 9-2 lists the comparison operators that you can use with text or value criteria. If you don’t<br />

use a comparison operator, Excel assumes the equal sign operator (=).<br />

Table 9-2: Comparison Operators<br />

Operator Comparison Type<br />

= Equal to<br />

> Greater than<br />

>= Greater than or equal to<br />

< Less than<br />

Not equal to<br />

Using wildcard characters<br />

Criteria that use text also can make use of two wildcard characters: An asterisk (*) matches any<br />

number of characters; a question mark (?) matches any single character.<br />

Table 9-3 shows examples of criteria that use text. Some of these are a bit counter-intuitive. For<br />

example, to select records that match a single character, you must enter the criterion as a formula<br />

(refer to the last entry in the table).<br />

The text comparisons are not case sensitive. For example, se* matches Seligman, seller,<br />

and SEC.

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

Saved successfully!

Ooh no, something went wrong!