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.

Introducing Array Formulas 17<br />

Using Multicell Array Formulas<br />

This section contains examples that demonstrate additional features of multicell array formulas (array formulas<br />

that are entered into a range of cells). These features include creating arrays from values, performing<br />

operations, using functions, transposing arrays, and generating consecutive integers.<br />

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

The following array formula creates an array from a range of cells. Figure 17.8 shows a workbook with<br />

some data entered into A1:C4. The range D8:F11 contains a single array formula:<br />

{=A1:C4}<br />

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

in D8:F11 reflects that change. It’s a one-way link, of course. You can change a value in D8:F11.<br />

FIGURE 17.8<br />

Creating an array from a range.<br />

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

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

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

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

2. Press F2 to edit the array formula.<br />

3. Press F9 to convert the cell references to values.<br />

4. Press Ctrl+Shift+Enter to re-enter the array formula (which now uses an array constant).<br />

The array constant is<br />

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

Figure 17.9 shows how this looks in the Formula bar.<br />

323

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

Saved successfully!

Ooh no, something went wrong!