11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Figure 14-7: Creating an array from a range.<br />

Chapter 14: Introducing Arrays 379<br />

The array in D8:F11 is linked to the range A1:C4. Change any value in A1:C4, and the corresponding<br />

cell in D8:F11 reflects that change.<br />

Creating an array constant from values in a range<br />

In the previous example, the array formula in D8:F11 essentially created a link to the cells in A1:C4.<br />

It’s possible to sever this link and create an array constant made up of the values in A1:C4.<br />

To do so, select the cells that contain the array formula (the range D8:F11, in this example). Then<br />

press F2 to edit the array formula. Press F9 to convert the cell references to values. Press<br />

Ctrl+Shift+Enter to reenter the array formula (which now uses an array constant). The array constant<br />

is as follows:<br />

{1,”dog”,3;4,5,”cat”;7,FALSE,9;”monkey”,8,12}<br />

Figure 14-8 shows how this looks in the <strong>Formula</strong> bar.<br />

Figure 14-8: After you press F9, the <strong>Formula</strong> 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<br />

array formula creates a rectangular array and multiplies each array element by 2:

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

Saved successfully!

Ooh no, something went wrong!