Printer Friendly
The Free Library
14,716,402 articles and books
Member login
User name  
Password 
 
Join us Forgot password?

In Excel, cell names spell speed, safety: give a cell a name, and your work will go faster and be more error-free.


Which of these two spreadsheet formulas would you more easily remember and would be less likely to cause typing lapses?

=Sales-Expenses

or

=R3-T9

The first is a hands-down choice because it's composed of word descriptions (Sales-Expenses) rather than letter-number codes. So if you want spreadsheet formulas that are easy to create and read, follow along with this tutorial An instructional book or program that takes the user through a prescribed sequence of steps in order to learn a product. Contrast with documentation, which, although instructional, tends to group features and functions by category. See tutorials in this publication.  to learn how to use a naming system called "named ranges." I invite you to open a blank Excel worksheet and work along with me.

Begin by creating a worksheet with a few sample names. Exhibit 1, at right, is a spreadsheet illustrating a typical net income computation Computation is a general term for any type of information processing that can be represented mathematically. This includes phenomena ranging from simple calculations to human thinking. . The categories are in column A and the data in column B: Revenue is B1, Expense is B2, Pretax pre·tax  
adj.
Existing before tax deductions: pretax income.

pretax adj [profit] → vor (Abzug der) Steuern 
 Earnings is B3, Income Tax is B4 and Net In-come is B5.

[ILLUSTRATION OMITTED]

But instead of just identifying them in column A, let's actually rename Re`name´   

v. t. 1. To give a new name to.

Verb 1. rename - assign a new name to; "Many streets in the former East Germany were renamed in 1990"
 B1 through B5 so we can identify the data by name.

Caveat [Latin, Let him beware.] A warning; admonition. A formal notice or warning given by an interested party to a court, judge, or ministerial officer in opposition to certain acts within his or her power and jurisdiction. : Excel protocol makes it easier to specify oneword names with no spaces. Thus, while it's acceptable to use Pretax Earnings (two words) as the caption in cell A3, a cell that contains neither data nor a formula, B3 is better named PretaxEarnings or Pretax_ Earnings.

Excel even lends a hand in naming cells. For example, if you position your cursor (1) The symbol used to point to some element on screen. On Windows, Mac and other graphics-based screens, it is also called a "pointer," and it changes shape as it is moved with the mouse into different areas of the application.  in B2 and press Ctrl+F3 (or click on Insert, Name and Define), you will evoke e·voke  
tr.v. e·voked, e·vok·ing, e·vokes
1. To summon or call forth: actions that evoked our mistrust.

2.
 the Define Name screen (see exhibit 2, page 68).

[ILLUSTRATION OMITTED]

The screen contains two fields: Names in workbook work·book  
n.
1. A booklet containing problems and exercises that a student may work directly on the pages.

2. A manual containing operating instructions, as for an appliance or machine.

3.
 and Refers to. Because you placed the cursor in B1, which is adjacent to A1, Excel automatically surmised the values in Sheet 1, B1 to be Revenue, and the user has only to click on OK to define the new name.

Notice that after clicking on OK, the Name Box, which is to the left of the Formula Bar, shows that the name of the highlighted cell, B1, is Revenue. The Name Box always gives the name of the highlighted cell or range of cells (see exhibit 3, at right).

[ILLUSTRATION OMITTED]

If the name of the adjacent cell is made up of two words, such as Pretax Earnings in cell A3, Excel will automatically place an underline underline

an animal's ventral profile; the shape of the belly when viewed from the side, e.g. pendulous, pot-belly, tucked up, gaunt.
 (_) between Pretax and Earnings--thus Pretax_Earnings.

You also have the option of using the Name Box to create a new name for a cell. For example, position the cursor in B2, click on the Name Box, type Expense and press the Enter key, and the cell is renamed.

Now, using either method, fill in the names for B1 to B5.

Let's use the new names in formulas. Position the cursor in B3 and type =Revenue Expense and press Enter. Likewise, in B4 type =PretaxEarnings*30% and then hit Enter, and in B5 type =PretaxEarnings-IncomeTax and then press Enter.

At this point your screen should resemble exhibit 4, at right--with IncomeTax in the Name Box and =PretaxEarnings*30% in the Formula Bar.

[ILLUSTRATION OMITTED]

Names can refer to things other than cell ranges or formulas, such as percentages. For instance, you can create a name, such as TaxRate, and have it refer to 30% as a constant. To do so, press Ctrl+F3, type TaxRate in the Names in workbook box, and 30% (with no = sign) in the Refers to box, as shown in exhibit 5, at right.

[ILLUSTRATION OMITTED]

Then change B4 to =PretaxEarnings*TaxRate.

Although it takes a little more work initially to create names, it should be clear they make formulas easier to write and to read. This is especially true in large spreadsheets where you may have scores of references.

ABSOLUTE VS. RELATIVE

Just like any other cell reference, a name may refer to a cell absolutely or relatively. To illustrate some other ways to use names, let's create a new spreadsheet (see exhibit 6, page 70). The highlighted range, SB$2:$D$6, contains the sales figures sales figures nplcifras fpl de ventas  for each region for each month.

[ILLUSTRATION OMITTED]

We'll name that range Sales. Now we can easily calculate total sales by entering the formula =SUM(Sales) in E7. The Sales range is absolute, meaning it always refers to $B$2:$D$6.

Creating month and region subtotals requires the use of relative references. Let's start with month subtotals. Highlight column C by clicking on the column header (1) In a disk or tape file, a set of data that resides permanently at the beginning. It may be used for identification only (type of file, date of last update, etc.), or it may describe the structural layout of the contents, as is common with many document and database formats. , then press Ctrl+F3 and type Month in the Names in workbook box. In the Refers to box, Excel has conveniently inserted the reference =Sheet1!$C:$C, which is an absolute reference to the highlighted column, but in this case we want a relative reference that can refer to any month, not just February. To change the formula in the Refers to box, press F2 and use the back arrow and Delete key On computer keyboards, the delete key (sometimes shortened "Del"), should, during normal text editing, discard the character at the cursor's  to remove the two dollar signs. Your screen now should look like exhibit 7, at right.

[ILLUSTRATION OMITTED]

Click on OK to accept the name and return to the spreadstreet. In a similar way, define the name Region to refer to the current row. Click on one of the row headers--it doesn't matter which region you choose--and press Ctrl+F3 and create the name Region to refer to the current row using relative coordinates (no dollar signs); then click on OK, Note that although Sales was defined absolutely, both Month and Region were defined relatively.

THE INTERSECTION OPERATOR

Now comes the payoff from the work we've done. Position the cursor in B7, enter the formula =SUM(Month Sales) and then copy the formula to C7 and D7. (Notice we typed Month and Sales as two words; we'll explain that later.) Your spreadsheet now should look like exhibit 8, at right.

[ILLUSTRATION OMITTED]

Let's review what we just did. The range name Month refers to the current column relatively. If the current cell is in column B, Month refers to column B. If the current cell is in column C, Month refers to column C.

The expression Month Sales refers to the intersection of the current column, Month, with the absolute range Sales.

Notice in the Formula Bar the space between the words Month and Sales. That space is significant. Excel considers a space between two ranges as an operator that returns the range of cells which is the intersection of the two ranges. In January, Month is the relative range B:B, Sales is the absolute range $B$2:$D$6 and their intersection is the range $B$2:$B$6. Thus, in cell B7 the formula =SUM(Month Sales) calculates the sum of the range $B$2:$B$6, or 2194.

When you copy the formula to C7 and D7, the absolute range referred to by Sales remains the same, $B$2:$D$6, but the relative range referred to by Month changes, always referring to the current column. Thus, Month in C7 refers to C:C, and Month Sales in C7 refers to the intersection of C:C and $B$2:$D$6, which is $C$2:$C$6. Likewise, Month Sales in D7 refers to the intersection of D:D and $B$2:$D$6, which is $D$2:$D$6. In each case the formula computes the sum of the sales amounts in the current column.

Computing computing - computer  row sums is similar. Enter =SUM(Region Sales) in E2 and copy the formula to E3:E7 (see exhibit 9, page 71).

[ILLUSTRATION OMITTED]

It's even possible to mix absolute and relative references in a single name. To do that add a year-to-date total in row 8. Type the caption YTD See Year-to-date.

YTD

See year to date (YTD).
 in cell AR, position the cursor anywhere in column B and press Ctrl+F3 to access the Define Names dialog box A movable window that is displayed on screen in response to the user selecting a menu option. It provides the current status and available options for a particular feature in the program. . Type YTD in the Names in workbook field and edit the Refers to field to read =Sheet1!$B:B (see exhibit 10, at right).

[ILLUSTRATION OMITTED]

Note that the first B is preceded by a dollar sign, so it is absolute, but the second B is not, so it is relative; thus, wherever YTD is used, it will refer to the range of columns from column B to the current column.

Now enter the formula =SUM(YTD Sales) in B8 and copy it to C8 and D8. Your completed spreadsheet should look like exhibit 11, at right.

[ILLUSTRATION OMITTED]

Let's review. Using the names Sales (absolute), Region (relative), Month (relative) and YTD (mixed absolute/relative) we have written formulas using the intersection operator to select subranges of those names and create various totals. There are only four different formulas: =SUM(Region Sales), =SUM(Month Sales), =SUM(YTD Sales) and =SUM(Sales). Each is easier to read than the corresponding formula without names. For instance =SUM(YTD Sales) corresponds to =SUM($B2:D6) in March.

STYLE GUIDE

Although each spreadsheet author develops his or her personal named-range style, there are some guidelines guidelines,
n.pl a set of standards, criteria, or specifications to be used or followed in the performance of certain tasks.
 we all can follow.

* Consistency. The name for the rent expense caption can be written many different ways, including RENT, rent_expense and RentExp. Although the particular style doesnt matter, pick one and use it consistently so there is no question what it represents.

* Brevity Brevity
Adonis’ garden

of short life. [Br. Lit.: I Henry IV]

bubbles

symbolic of transitoriness of life. [Art: Hall, 54]

cherry fair

cherry orchards where fruit was briefly sold; symbolic of transience.
. Some formulas are long and complex, and using long names makes the situation worse. While it's OK to use Exp for Expense or PY2 for SecondPriorYear, don't abbreviate too much. For example, A could mean many things, only one of which is Actual.

* Use of smart names. Try to think of names you won't have to change each year. For example, use CyAct (for Current Year Actual) instead of Act2003. But don't make names so similar one can be confused with another.

* Specificity. In a spreadsheet that has both GrossSales and NetSales, neither should be named Sales. And if you do happen to specify Sales in a formula, Excel fortunately will recognize the ambiguity and respond with this error message: #NAME?.

* Pronounceability. Many people understand difficult or complex formulas by saying them aloud or by sounding out the words in their minds. I prefer CapEx to CPX CPX Command Post Exercise
CPX Culebra Puerto Rico (airport code)
CPX Cleft Palate, X-Linked
CPX Corel Painter X
CPX Compare with X (6502 processor instruction)
CPX Command Post/Paper Exercise
 or Capital Expenditures and TaxRate to IncTaxRat ("ink tacks rat" evokes a strange image). When in doubt apply the "telephone test"--if you can't sensibly read your formula to a colleague over the phone, you should rewrite re·write  
v. re·wrote , re·writ·ten , re·writ·ing, re·writes

v.tr.
1. To write again, especially in a different or improved form; revise.

2.
 it.

Make named ranges a habit. Don't skip them just because a spreadsheet is small, simple or because you think you don't have enough time. Once you're familiar with them, you'll find they always save you time in the long run.

Key to Instructions

To help readers follow the instructions in this article, we use two different typefaces This is a list of typefaces. Serif
Here you can find a graphical version of this table.
  • Aldus
  • Antiqua
  • Aster
  • Baskerville
  • Bell (Monotype) Didone classification serif type deisgned by Richard Austin, 1788
  • Bembo
  • Benguiat
.

Boldface See boldface font.  type is used to identify the name of icons, agendas and URLs.

Sans serif Short horizontal lines added to the tops and bottoms of traditional typefaces, such as Times Roman. Contrast with sans-serif.

 types indicates commands and instructions that users should into the computer and the names of file.

PHILIP L. BEWIG, CPA (Computer Press Association, Landing, NJ) An earlier membership organization founded in 1983 that promoted excellence in computer journalism. Its annual awards honored outstanding examples in print, broadcast and electronic media. The CPA disbanded in 2000. , lives in St. Louis. His e-mail address See Internet address.

e-mail address - electronic mail address
 is pbewig@swbell.net.
COPYRIGHT 2003 American Institute of CPA's
No portion of this article can be reproduced without the express written permission from the copyright holder.
Copyright 2003, Gale Group. All rights reserved. Gale Group is a Thomson Corporation Company.

 Reader Opinion

Title:

Comment:



 

Article Details
Printer friendly Cite/link Email Feedback
Author:Bewig, Philip L.
Publication:Journal of Accountancy
Date:Nov 1, 2003
Words:1804
Previous Article:Materiality considerations: audits of government financial statements just got more complex.
Next Article:In the money? Some companies may be due an employment tax refund.
Topics:



Related Articles
The mighty mouse: enhancing spreadsheet productivity. (for accounting)
The power of spreadsheets. (software programs)
Technology Q&A: sort Excel cells that contain text and numbers ... Give Excel cells a descriptive name ... Get Excel to produce the right number of...
Collaborate on spreadsheets: how to share Excel files with others on your network.
Ferret out spreadsheet errors: use Excel's tools to uncover and correct formula problems.
Add even more muscle to "what-if" analyses: team Scenario Manager with Scenario PivotTable for a more powerful tool.(part 2)
Double-teaming in Excel: spreadsheets now can solve tougher calculations.
Click ... and the database loads into Excel: an easy way to import data into a spreadsheet.
Navigate speedily in excel data: click on a button to get to target information.
The power of arrays: the Excel tool that performs multiple functions in a single step.

Terms of use | Copyright © 2009 Farlex, Inc. | Feedback | For webmasters | Submit articles