Page 358 - Excel 2007 Bible
P. 358
22_044039 ch17.qxp 11/21/06 11:08 AM Page 315
Introducing Array Formulas
This array formula, of course, returns exactly the same values as these six normal formulas entered into
individual cells in D2:D7:
=B2*C2
=B3*C3
=B4*C4
=B5*C5
=B6*C6
=B7*C7
Using a single array formula rather than individual formulas does offer a few advantages:
n It’s a good way of ensuring that all formulas in a range are identical.
n Using a multicell array formula makes it less likely that you’ll overwrite a formula accidentally.
You can’t change one cell in a multicell array formula. Excel displays an error message if you
attempt to do so.
n Using a multicell array formula will almost certainly prevent novices from tampering with your
formulas.
Using a multicell array formula as described in the preceding list also has some potential disadvantages:
n It’s impossible to insert a new row into the range. But in some cases, the inability to insert a row is 17
a positive feature.
n If you add new data to the bottom of the range, you need to modify the array formula to accom-
modate the new data.
A single-cell array formula
Now it’s time to take a look at a single-cell array formula. Check out Figure 17.2, which is similar to Figure
17.1. Notice, however, that the formulas in column D have been deleted. The goal is to calculate the sum of
the total product sales without using the individual calculations that were in column D.
FIGURE 17.2
The array formula in cell C10 calculates the total sales without using intermediate formulas.
The following array formula is in cell C10:
{=SUM(B2:B7*C2:C7)}
315

