18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part II<br />

Working with Formulas and Functions<br />

To understand how this formula works, start with the MATCH function. This function searches the range<br />

D2:D21 for the date in cell B1. It returns the relative row number where the date is found. This value is<br />

then used as the second argument for the INDEX function. The result is the corresponding value in F2:F21.<br />

FIGURE 15.5<br />

Using the INDEX and MATCH functions to perform a lookup.<br />

Specialized Lookup Formulas<br />

You can use additional types of lookup formulas to perform more specialized lookups. For example, you<br />

can look up an exact value, search in another column besides the first in a lookup table, perform a casesensitive<br />

lookup, return a value from among multiple lookup tables, and perform other specialized and<br />

complex lookups.<br />

ON the CD-ROM<br />

The examples in this section are available on the companion CD-ROM. The file is named<br />

specialized lookup examples.xlsx.<br />

Looking up an exact value<br />

As demonstrated in the previous examples, VLOOKUP and HLOOKUP don’t necessarily require an exact<br />

match between the value to be looked up and the values in the lookup table. An example is looking up a<br />

tax rate in a tax table. In some cases, you may require a perfect match. For example, when looking up an<br />

employee number, you would probably require a perfect match for the number.<br />

To look up an exact value only, use the VLOOKUP (or HLOOKUP) function with the optional fourth argument<br />

set to FALSE.<br />

280

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

Saved successfully!

Ooh no, something went wrong!