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.

Introducing Array Formulas 17<br />

Don’t enter the curly brackets when you create an array formula; Excel inserts them for you. If the result of<br />

an array formula consists of more than one value, you must select all the cells in the results range before you<br />

enter the formula. If you fail to do so, only the first element of the result is returned.<br />

Selecting an array formula range<br />

You can select the cells that contain a multicell array formula manually by using the normal cell selection<br />

procedures. Or you can use either of the following methods:<br />

n<br />

n<br />

Activate any cell in the array formula range. Display the Go To dialog box by choosing Home ➪<br />

Editing ➪ Find & Select ➪ Go To (or just press F5). In the Go To dialog box, click the Special<br />

button and then choose the Current Array option. Click OK to close the dialog box.<br />

Activate any cell in the array formula range and press Ctrl+/ to select the entire array.<br />

Editing an array formula<br />

If an array formula occupies multiple cells, you must edit the entire range as though it were a single cell.<br />

The key point to remember is that you can’t change just one element of an array formula. If you attempt to<br />

do so, Excel displays the message shown in Figure 17.7.<br />

FIGURE 17.7<br />

Excel’s warning message reminds you that you can’t edit just one cell of a multicell array formula.<br />

The following rules apply to multicell array formulas. If you try to do any of these things, Excel lets you<br />

know about it:<br />

n<br />

n<br />

n<br />

n<br />

n<br />

You can’t change the contents of any individual cell that makes up an array formula.<br />

You can’t move cells that make up part of an array formula (but you can move an entire array<br />

formula).<br />

You can’t delete cells that form part of an array formula (but you can delete an entire array).<br />

You can’t insert new cells into an array range. This rule includes inserting rows or columns that<br />

would add new cells to an array range.<br />

You can’t use multicell array formulas inside of a table that was created by choosing Insert ➪<br />

Tables ➪ Table. Similarly, you can’t convert a range to a table if the range contains a multicell<br />

array formula.<br />

To edit an array formula, select all the cells in the array range and activate the Formula bar as usual (click it<br />

or press F2). Excel removes the brackets from the formula while you edit it. Edit the formula and then press<br />

Ctrl+Shift+Enter to enter the changes. All the cells in the array now reflect your editing changes.<br />

321

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

Saved successfully!

Ooh no, something went wrong!