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.

218<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

Figure 8-4: Using LOOKUP to look up a tax rate.<br />

If the values in the first column are not arranged in ascending order, the LOOKUP function<br />

may return an incorrect value.<br />

Note that LOOKUP (as opposed to VLOOKUP) can return a value that’s in a different row than<br />

the matched value. If your lookup_vector and your result_vector are not part of the same table,<br />

LOOKUP can be a useful function. If, however, they are part of the same table, VLOOKUP is usually<br />

a better choice if for no other reason than that LOOKUP will not work on unsorted data.<br />

Combining the MATCH and INDEX functions<br />

The MATCH and INDEX functions are often used together to perform lookups. The MATCH function<br />

returns the relative position of a cell in a range that matches a specified value. The syntax for<br />

MATCH is<br />

MATCH(lookup_value,lookup_array,match_type)<br />

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

lookup_value: The value that you want to match in lookup_array. If match_type is 0 and<br />

the lookup_value is text, this argument can include the wildcard characters * and ?.<br />

lookup_array: The range that you want to search. This should be a one-column or onerow<br />

range.<br />

match_type: An integer (–1, 0, or 1) that specifies how the match is determined.<br />

If match_type is 1, MATCH finds the largest value less than or equal to lookup_value<br />

(lookup_array must be in ascending order). If match_type is 0, MATCH finds the first<br />

value exactly equal to lookup_value. If match_type is –1, MATCH finds the smallest<br />

value greater than or equal to lookup_value (lookup_array must be in descending<br />

order). If you omit the match_type argument, this argument is assumed to be 1.

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

Saved successfully!

Ooh no, something went wrong!