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

FIGURE 17.9<br />

After you’ve pressed F9, the Formula bar displays the array constant.<br />

Performing operations on an array<br />

So far, most of the examples in this chapter simply entered arrays into ranges. The following array formula<br />

creates a rectangular array and multiplies each array element by 2:<br />

{={1,2,3,4;5,6,7,8;9,10,11,12}*2}<br />

Figure 17.10 shows the result when you enter this formula into a range:<br />

FIGURE 17.10<br />

Performing a mathematical operation on an array.<br />

The following array formula multiplies each array element by itself. Figure 17.11 shows the result when you<br />

enter this formula into a range:<br />

{={1,2,3,4;5,6,7,8;9,10,11,12}*{1,2,3,4;5,6,7,8;9,10,11,12}}<br />

The following array formula is a simpler way of obtaining the same result:<br />

{={1,2,3,4;5,6,7,8;9,10,11,12}^2}<br />

If the array is stored in a range (such as A1:C4), the array formula returns the square of each value in the<br />

range, as follows:<br />

{=A1:C4^2}<br />

324

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

Saved successfully!

Ooh no, something went wrong!