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 8: Using Lookup Functions 215<br />

LOOKUP. The MATCH and INDEX functions are often used together to return a cell or relative cell<br />

reference for a lookup value.<br />

The examples in this section (plus the example in Figure 8-1) are available on the companion<br />

CD-ROM. The filename is basic lookup examples.xlsx.<br />

The VLOOKUP function<br />

The VLOOKUP function looks up the value in the first column of the lookup table and returns the<br />

corresponding value in a specified table column. The lookup table is arranged vertically. The syntax<br />

for the VLOOKUP function is<br />

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)<br />

The VLOOKUP function’s arguments are as follows:<br />

lookup_value: The value that you want to look up in the first column of the lookup table.<br />

table_array: The range that contains the lookup table.<br />

col_index_num: The column number within the table from which the matching value is<br />

returned.<br />

range_lookup: Optional. If TRUE or omitted, an approximate match is returned. (If an<br />

exact match is not found, the next largest value that is less than lookup_value is used.) If<br />

FALSE, VLOOKUP searches for an exact match. If VLOOKUP cannot find an exact match,<br />

the function returns #N/A.<br />

If the range_lookup argument is TRUE or omitted, the first column of the lookup table<br />

must be in ascending order. If lookup_value is smaller than the smallest value in the<br />

first column of table_array, VLOOKUP returns #N/A. If the range_lookup argument is<br />

FALSE, the first column of the lookup table need not be in ascending order. If an exact<br />

match is not found, the function returns #N/A.<br />

If the lookup_value argument is text (and the fourth argument, range_lookup, is<br />

FALSE), you can include the wildcard characters * and ?. An asterisk matches any group<br />

of characters, and a question mark matches any single character.<br />

The classic example of a lookup formula involves an income tax rate schedule (see Figure 8-2).<br />

The tax rate schedule shows the income tax rates for various income levels. The following formula<br />

(in cell B3) returns the tax rate for the income in cell B2:<br />

=VLOOKUP(B2,D2:F7,3)

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

Saved successfully!

Ooh no, something went wrong!