11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

382<br />

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

Figure 14-11: Using the TRANSPOSE function to transpose a rectangular array.<br />

You can, of course, use the TRANSPOSE function to transpose an array stored in a range. The following<br />

formula, for example, uses an array stored in A1:C4 (four rows, three columns). You can<br />

enter this array formula into a range that consists of three rows and four columns:<br />

{=TRANSPOSE(A1:C4)}<br />

Generating an array of consecutive integers<br />

As you will see in Chapter 15, it’s often useful to generate an array of consecutive integers for use<br />

in an array formula. Excel’s ROW function, which returns a row number, is ideal for this. Consider<br />

the array formula shown here, entered into a vertical range of 12 cells:<br />

{=ROW(1:12)}<br />

This formula generates a 12-element array that contains integers from 1 to 12. To demonstrate,<br />

select a range that consists of 12 rows and 1 column, and then enter the array formula into the<br />

range. You’ll find that the range is filled with 12 consecutive integers (see Figure 14-12).<br />

Figure 14-12: Using an array formula to generate consecutive integers.

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

Saved successfully!

Ooh no, something went wrong!