18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introducing Array Formulas 17<br />

FIGURE 17.4<br />

A 3 × 4 array entered into a 10 × 5 cell range.<br />

Naming Array Constants<br />

You can create an array constant, give it a name, and then use this named array in a formula. Technically, a<br />

named array is a named formula.<br />

CROSS-REF<br />

Chapter 5 covers the topic of names and named formulas.<br />

Figure 17.5 shows a named array being created with the help of the New Name dialog box. (Access this dialog<br />

box by choosing Formulas ➪ Defined Names ➪ Define Name.) The name of the array is DayNames,<br />

and it refers to the following array constant:<br />

{“Sun”,”Mon”,”Tue”,”Wed”,”Thu”,”Fri”,”Sat”}<br />

Notice that, in the New Name dialog box, the array is defined (in the Refers To box) using a leading equal<br />

sign (=). Without this equal sign, the array is interpreted as a text string rather than an array. Also, you must<br />

type the curly brackets when defining a named array constant; Excel does not enter them for you.<br />

After creating this named array, you can use it in a formula. Figure 17.6 shows a worksheet that contains a<br />

single array formula entered into the range A1:G1. The formula is<br />

{=DayNames}<br />

319

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

Saved successfully!

Ooh no, something went wrong!