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.

Part II<br />

Working with Formulas and Functions<br />

FIGURE 11.18<br />

When you use names, using a range-intersection formula to determine values is even more useful.<br />

Excel created the following names:<br />

North =Sheet1!$B$2:$E$2 Qtr1 =Sheet1!$B$2:$B$5<br />

South =Sheet1!$B$3:$E$3 Qtr2 =Sheet1!$C$2:$C$5<br />

West =Sheet1!$B$4:$E$4 Qtr3 =Sheet1!$D$2:$D$5<br />

East =Sheet1!$B$5:$E$5 Qtr4 =Sheet1!$E$2:$E$5<br />

With these names defined, you can create formulas that are easy to read and use. For example, to calculate<br />

the total for Quarter 4, just use this formula:<br />

=SUM(Qtr4)<br />

To refer to a single cell, use the intersection operator. Move to any blank cell and enter the following formula:<br />

=Qtr1 West<br />

This formula returns the value for the first quarter for the West region. In other words, it returns the value<br />

that exists where the Qtr1 range intersects with the West range. Naming ranges in this manner can help<br />

you create very readable formulas.<br />

Applying names to existing references<br />

When you create a name for a cell or a range, Excel doesn’t automatically use the name in place of existing<br />

references in your formulas. For example, suppose you have the following formula in cell F10:<br />

=A1–A2<br />

If you define a name Income for A1 and Expenses for A2, Excel won’t automatically change your formula<br />

to =Income–Expenses. Replacing cell or range references with their corresponding names is fairly easy,<br />

however.<br />

To apply names to cell references in formulas after the fact, start by selecting the range that you want to<br />

modify. Then choose Formulas ➪ Defined Names ➪ Define Name ➪ Apply Names. Excel displays the<br />

Apply Names dialog box, as shown in Figure 11.19. Select the names that you want to apply by clicking<br />

them and then click OK. Excel replaces the range references with the names in the selected cells.<br />

202

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

Saved successfully!

Ooh no, something went wrong!