Page 364 - Excel 2007 Bible
P. 364

22_044039 ch17.qxp  11/21/06  11:08 AM  Page 321
                                                                                               Introducing Array Formulas
                                             Don’t enter the curly brackets when you create an array formula; Excel inserts them for you. If the result of
                                             an array formula consists of more than one value, you must select all the cells in the results range before you
                                             enter the formula. If you fail to do so, only the first element of the result is returned.
                                             Selecting an array formula range
                                             You can select the cells that contain a multicell array formula manually by using the normal cell selection
                                             procedures. Or you can use either of the following methods:
                                                    Editing ➪ Find & Select ➪ Go To (or just press F5). In the Go To dialog box, click the Special
                                                    button and then choose the Current Array option. Click OK to close the dialog box.
                                                 n Activate any cell in the array formula range and press Ctrl+/ to select the entire array.
                                             Editing an array formula
                                             If an array formula occupies multiple cells, you must edit the entire range as though it were a single cell.
                                             The key point to remember is that you can’t change just one element of an array formula. If you attempt to
                                             do so, Excel displays the message shown in Figure 17.7.
                                       FIGURE 17.7 n Activate any cell in the array formula range. Display the Go To dialog box by choosing Home ➪  17
                                     Excel’s warning message reminds you that you can’t edit just one cell of a multicell array formula.
                                             The following rules apply to multicell array formulas. If you try to do any of these things, Excel lets you
                                             know about it:
                                                 n You can’t change the contents of any individual cell that makes up an array formula.
                                                 n You can’t move cells that make up part of an array formula (but you can move an entire array
                                                    formula).
                                                 n You can’t delete cells that form part of an array formula (but you can delete an entire array).
                                                 n You can’t insert new cells into an array range. This rule includes inserting rows or columns that
                                                    would add new cells to an array range.
                                                 n You can’t use multicell array formulas inside of a table that was created by choosing Insert ➪
                                                    Tables ➪ Table. Similarly, you can’t convert a range to a table if the range contains a multicell
                                                    array formula.
                                            To edit an array formula, select all the cells in the array range and activate the Formula bar as usual (click it
                                            or press F2). Excel removes the brackets from the formula while you edit it. Edit the formula and then press
                                            Ctrl+Shift+Enter to enter the changes. All the cells in the array now reflect your editing changes.








                                                                                                                      321
   359   360   361   362   363   364   365   366   367   368   369