Excel Array Formulas
Excel Array Formulas
Definition: Array formulas refer to evaluations whose results are placed in a range of cells (instead of a single cell) and are invoked by [CTRL Shift ENTER]. A group of brackets will automatically enclose the formula to remind the user that it is an array formula. Some Excel functions perform matrix operations such as multiplication, inverse and transpose and are implemented as array formulas. There are also other built-in Excel functions, such as LINEST (for linear regression), that require the results be placed in a range of cells, thereby requiring an array formula. Basic Operations: 1. Naming Arrays ( Avoid using names with one or two alphabets followed by a number, e.g. do not use F1 or AB2, instead use F_1 or AB_2 ) a. Select the range b. Method 1: Enter the name in the NW corner area next to the formula entry. Make sure to hit [ENTER] (otherwise the action will not be applied) c. Method 2: Go to [Formula] [Define Name] item and then enter the name.
To remove names, go to [Formula] [Name Manager] and select the names to be removed.
Figure 3. Set up matrix A and B. 2. Select the range for the product. : ( Note: for the number of columns of = number of rows of . the number of rows of = number of rows of . the number of columns of = number of columns of . )
3. Input the product formula in the formula area then key in [CRTL Shift ENTER].
Figure 4. Implementing an array formula. After using [CTRL Shift ENTER], a bracket encloses the formula to signify an array result.
Example 2: Solving Simultaneous Linear Equation Suppose you have the following equations
(1)
where,
, and name the arrays as A and b. 1. Setup the range for 2. Select the range for s, then enter the formula: =MMULT(MINVERSE(A),b) and press [CTRL Shift ENTER] as shown in Figure 5.