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.

Working with Cells and Ranges 5<br />

TIP<br />

source range.<br />

If you click the Paste Link button in the Paste Special dialog box, you create formulas that link<br />

to the source range. As a result, the destination range automatically reflects changes in the<br />

Using Names to Work with Ranges<br />

Dealing with cryptic cell and range addresses can sometimes be confusing. (This confusion becomes even<br />

more apparent when you deal with formulas, which I cover in Chapter 11.) Fortunately, Excel allows you to<br />

assign descriptive names to cells and ranges. For example, you can give a cell a name such as Interest_Rate,<br />

or you can name a range JulySales. Working with these names (rather than cell or range addresses) has several<br />

advantages:<br />

n<br />

n<br />

n<br />

n<br />

n<br />

A meaningful range name (such as Total_Income)) is much easier to remember than a cell address<br />

(such as AC21).<br />

Entering a name is less error-prone than entering a cell or range address.<br />

You can quickly move to areas of your worksheet either by using the Name box, located at the left<br />

side of the Formula bar (click the arrow to drop down a list of defined names) or by choosing<br />

Home ➪ Editing ➪ Find & Select ➪ Go To (or F5) and specifying the range name.<br />

Creating formulas is easier. You can paste a cell or range name into a formula by using Formula<br />

Autocomplete, a new feature in Excel 2007.<br />

Names make your formulas more understandable and easier to use. A formula such as<br />

=Income — Taxes is more intuitive than =D20 — D40.<br />

Creating range names in your workbooks<br />

Excel provides several different methods that you can use to create range names. Before you begin, however,<br />

you should be aware of some important rules about what is acceptable:<br />

n<br />

n<br />

Names can’t contain any spaces. You may want to use an underscore character to simulate a space<br />

(such as Annual_Total).<br />

You can use any combination of letters and numbers, but the name must begin with a letter. A<br />

name can’t begin with a number (such as 3rdQuarter) or look like a cell reference (such as<br />

QTR3). If these are desirable names, you can precede the name with underscore: _3rd Quarter<br />

and _QTR3.<br />

n Symbols, except for underscores and periods, aren’t allowed.<br />

n Names are limited to 255 characters, but it’s a good practice to keep names as short as possible yet<br />

still meaningful and understandable.<br />

Excel also uses a few names internally for its own use. Although you can create names that override Excel’s<br />

internal names, you should avoid doing so. To be on the safe side, avoid using the following for names:<br />

Print_Area, Print_Titles, Consolidate_Area, and Sheet_Title.<br />

Using the New Name dialog box<br />

To create a range name, start by selecting the cell or range that you want to name. Then, choose Formulas ➪<br />

Defined Names ➪ Define Name. Excel displays the New Name dialog box, shown in Figure 5.12. Note that<br />

this is a resizable dialog box. Click and drag a border to change the dimensions.<br />

87

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

Saved successfully!

Ooh no, something went wrong!