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 />

FIGURE 17.18<br />

You can replace the lookup table in D1:E10 with an array constant.<br />

You can use a two-dimensional array in place of the lookup range. The following formula returns the same<br />

result as the previous formula, but it does not require the lookup range in D1:E1:<br />

=VLOOKUP(B1,{1,”One”;2,”Two”;3,”Three”;4,”Four”;5,”Five”;<br />

6,”Six”;7,”Seven”;8,”Eight”;9,”Nine”;10,”Ten”},2,FALSE)<br />

This chapter introduced arrays. Chapter 18 explores the topic further and provides some additional<br />

examples.<br />

332

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

Saved successfully!

Ooh no, something went wrong!