18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Part II<br />

Working with Formulas and Functions<br />

About This Chapter’s Examples<br />

Most of the examples in this chapter use named ranges for function arguments. When you adapt these formulas<br />

for your own use, you need to substitute the actual range address or a range name defined in your workbook.<br />

FIGURE 15.1<br />

Lookup formulas in row 2 look up the information for the employee name in cell C2.<br />

This particular example uses four formulas to return information from the EmpData range. In many cases,<br />

you want only a single value from the table, so use only one formula.<br />

Functions Relevant to Lookups<br />

Several Excel functions are useful when writing formulas to look up information in a table. Table 15.1 lists<br />

and describes these functions.<br />

TABLE 15.1<br />

Function<br />

CHOOSE<br />

HLOOKUP<br />

IF<br />

IFERROR*<br />

INDEX<br />

Description<br />

Functions Used in Lookup Formulas<br />

Returns a specific value from a list of values (up to 29) supplied as arguments.<br />

Horizontal lookup. Searches for a value in the top row of a table and returns a value in the same<br />

column from a row you specify in the table.<br />

Returns one value if a condition you specify is TRUE, and returns another value if the condition is<br />

FALSE.<br />

If the first argument returns an error, the second argument is evaluated and returned.<br />

Returns a value (or the reference to a value) from within a table or range.<br />

274

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

Saved successfully!

Ooh no, something went wrong!