11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

374<br />

Part IV: Array <strong>Formula</strong>s<br />

Figure 14-3: A 3 x 4 array, entered into a 10 x 5 cell range.<br />

Each row of a two-dimensional array must contain the same number of items. The array that follows,<br />

for example, is not valid because the third row contains only three items:<br />

{1,2,3,4;5,6,7,8;9,10,11}<br />

Excel does not allow you to enter a formula that contains an invalid array.<br />

You can use #N/A as a placeholder for a missing element in an array. For example, the following<br />

array is missing the element in the third row of the first column:<br />

={1,2,3,4;5,6,7,8;#N/A,10,11,12}<br />

Naming Array Constants<br />

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

Technically, a named array is a named formula.<br />

Chapter 3 covers names and named formulas in detail.<br />

To create a named constant array, use the New Name dialog box (choose <strong>Formula</strong>s➜Defined<br />

Names➜Define Name). In Figure 14-4, the name of the array is DayNames, and it refers to the following<br />

array constant:<br />

{“Sun”,”Mon”,”Tue”,”Wed”,”Thu”,”Fri”,”Sat”}

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

Saved successfully!

Ooh no, something went wrong!