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.

376<br />

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

Working with Array <strong>Formula</strong>s<br />

This section deals with the mechanics of selecting cells that contain arrays, as well as entering<br />

and editing array formulas. These procedures differ a bit from working with ordinary ranges and<br />

formulas.<br />

Entering an array formula<br />

When you enter an array formula into a cell or range, you must follow a special procedure so<br />

Excel knows that you want an array formula rather than a normal formula. You enter a normal<br />

formula into a cell by pressing Enter. You enter an array formula into one or more cells by pressing<br />

Ctrl+Shift+Enter.<br />

You can easily identify an array formula because the formula is enclosed in curly brackets in the<br />

<strong>Formula</strong> bar. The following formula, for example, is an array formula:<br />

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

Don’t enter the curly brackets when you create an array formula; Excel inserts them for you after<br />

you press Ctrl+Shift+Enter. If the result of an array formula consists of more than one value, you<br />

must select all of the cells in the results range before you enter the formula. If you fail to do this,<br />

only the first element of the result is returned.<br />

Selecting an array formula range<br />

You can select the cells that contain a multicell array formula manually by using the normal cell<br />

selection procedures. Alternatively, you can use either of the following methods:<br />

Activate any cell in the array formula range. Choose Home➜Editing➜Find & Select➜Go<br />

To Special, and then select the Current Array option. When you click OK to close the dialog<br />

box, Excel selects the array.<br />

Activate any cell in the array formula range and press Ctrl+/ to select the entire array.<br />

Editing an array formula<br />

If an array formula occupies multiple cells, you must edit the entire range as though it were a single<br />

cell. The key point to remember is that you can’t change just one element of an array formula.<br />

If you attempt to do so, Excel displays the message shown in Figure 14-6. Click OK and press Esc<br />

to exit edit mode; then select the entire range and try again.

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

Saved successfully!

Ooh no, something went wrong!