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 />

Worksheet Functions That Return an Array<br />

S<br />

everal of the Excel worksheet functions use arrays; you must enter a formula that uses one of these functions<br />

into multiple cells as an array formula. These functions are FORECAST, FREQUENCY, GROWTH,<br />

LINEST, LOGEST, MINVERSE, MMULT, and TREND. Consult Excel’s Help system for more information.<br />

FIGURE 17.13<br />

Using an array formula to generate consecutive integers.<br />

Using Single-Cell Array Formulas<br />

The examples in the preceding section all used a multicell array formula — a single array formula that’s<br />

entered into a range of cells. The real power of using arrays becomes apparent when you use single-cell<br />

array formulas. This section contains examples of array formulas that occupy a single cell.<br />

Counting characters in a range<br />

Suppose that you have a range of cells that contains text entries (see Figure 17.14). If you need to get a<br />

count of the total number of characters in that range, the “traditional” method involves creating a formula<br />

like the one that follows and copying it down the column:<br />

=LEN(A1)<br />

Then you use a SUM formula to calculate the sum of the values returned by these intermediate formulas.<br />

The following array formula does the job without using any intermediate formulas:<br />

{=SUM(LEN(A1:A14))}<br />

327

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

Saved successfully!

Ooh no, something went wrong!