Page 367 - Excel 2007 Bible
P. 367

22_044039 ch17.qxp  11/21/06  11:08 AM  Page 324
                                   Part II
                                              Working with Formulas and Functions
                                       FIGURE 17.9
                                      After you’ve pressed F9, the Formula bar displays the array constant.
                                             Performing operations on an array
                                             So far, most of the examples in this chapter simply entered arrays into ranges. The following array formula
                                             creates a rectangular array and multiplies each array element by 2:
                                                  {={1,2,3,4;5,6,7,8;9,10,11,12}*2}
                                             Figure 17.10 shows the result when you enter this formula into a range:
                                       FIGURE 17.10
                                      Performing a mathematical operation on an array.








                                             The following array formula multiplies each array element by itself. Figure 17.11 shows the result when you
                                             enter this formula into a range:

                                                  {={1,2,3,4;5,6,7,8;9,10,11,12}*{1,2,3,4;5,6,7,8;9,10,11,12}}
                                             The following array formula is a simpler way of obtaining the same result:
                                                  {={1,2,3,4;5,6,7,8;9,10,11,12}^2}
                                             If the array is stored in a range (such as A1:C4), the array formula returns the square of each value in the
                                             range, as follows:
                                                  {=A1:C4^2}







                                      324
   362   363   364   365   366   367   368   369   370   371   372