Exel 2002 From A To Z
Exel 2002 From A To Z
Exel 2002 From A To Z
2002
from A to Z
Electronic Edition
Stephen L. Nelson
Excel 2002 From A to Z:
A Quick Reference of More Than 300 Microsoft Excel Tasks, Terms and Tricks
Electronic Edition
Copyright © 2001 Stephen L. Nelson
All rights reserved. No part of this book may be reproduced in any form or by any method
or any means without the prior written permission of the publisher.
Published by
Redmond Technology Press
8581 154th Avenue NE
Redmond, WA 98052
www.redtechpress.com
ISBN 1-931150-38-9
Distributed by
Independent Publishers Group
814 N. Franklin St.
Chicago, IL 60610
www.ipgbook.com
Product and company names mentioned herein may be the trademarks of their respective
owners.
In the preparation of this book, both the author and the publisher have made every effort to
provide current, correct, and comprehensible information. Nevertheless, inadvertent errors
can occur and software and the principles and regulations concerning business often
change. Furthermore, the application and impact of principles, rules, and laws can vary
widely from case to case because of the unique facts involved. For these reasons, the author
and publisher specifically disclaim any liability or loss that is incurred as a consequence of
the use and application, directly or indirectly, of any information presented in this book. If
legal or other expert assistance is needed, the services of a professional should be sought.
INTRODUCTION
You should find Excel 2002 From A to Z easy to use. You only need to
know that the book organizes its information—key tasks and impor-
tant terms—alphabetically in order to use the book. You’ll find it
helpful, however, if you understand what this book assumes about your
computer skills, what you should know about the Excel program from
the very start, and what editorial conventions this book uses. This short
introduction provides this information.
The program window title bar identifies The toolbars provide buttons and
your workbook and provides boxes for quickly choosing commands.
buttons to resizing the window.
The menu bar gives you access
to the Excel menus of commands
and Help.
Let me also point out two important items about the Excel toolbars:
iv
Introduction
v
Introduction
Stephen L. Nelson
steve@stephenlnelson.com
Seattle, Washington, April 2001
vi
EXCEL FROM A TO Z
Active Workbook
Workbook
The active workbook is the workbook shown in the active document
window. A workbook is made up of worksheets and chart sheets.
SEE ALSO Charts, Macros, Worksheets
Active Sheet
The active sheet is the sheet you see in the active document. It may
show a worksheet or a chart.
SEE ALSO Active Workbook, Charts, Worksheet
2
Excel 2002 F R O M A TO Z A
Figure A-3 The Alignment tab of the Format Cells dialog box.
3
A Excel 2002 F R O M A TO Z
The Horizontal drop-down list box lets you align cell contents in the
same ways as the Left Align, Center, Right Align, and Merge And
Center tools do.
The Vertical drop-down list box allows you to align cell contents at
the top, center, or bottom of the cell.
The Orientation boxes allow you to rotate the cell contents either by
clicking or dragging or by entering a value into the degrees box.
The Text Control boxes provide you with several more specialized
alignment options. The Wrap Text check box allows you to split a long
line of text onto multiple lines. The Shrink To Fit check box allows
you to decrease the size of the numbers or letters in a cell so that they
fit in the cell. The Merge Cells check box allows you to combine cells
into larger, single cells.
Apple Macintosh
You can move Excel workbooks from Windows computers to Apple
Macintosh computers and vice versa. Excel will open Excel workbooks
created on either computer.
SEE ALSO Workbooks
Application
An application is a program like Excel. Or Word. Operating systems
like Windows XP aren’t considered applications. Operating systems
are, well, operating systems.
Application window
The window that a program like Excel displays is called an applica-
tion window, or program window. Document windows appear inside
application windows.
Arguments
The input values that you supply to Excel functions are called argu-
ments. For example, in the simple SUM function, =SUM(2,2), the
values 2 and 2 are arguments. Most Excel functions require arguments.
SEE ALSO Functions
4
Excel 2002 F R O M A TO Z A
Array Formulas
An array is a set of numbers, such as 1, 2, 3 or 4, 5, 6. Array formulas
use and return arrays. For example, if you add the array 1, 2, 3 to the
array 4, 5, 6, you get a new array 5, 7, 9.
Array 1: 1 2 3
Array 2: 4 5 6
Total Array: 5 7 9
Array formulas let you use one formula to calculate an array of val-
ues. For example, if you entered the array 1, 2, 3 into the range A1:C1
and the array 4, 5, 6 into the range A2:C2, you can enter the array
formula {=A1:C1+A2:C2} into the range A3:C3 to sum the arrays and
return an array (see Figure A-4).
When entering an array formula, you don’t type the { and } braces.
Excel enters these for you when you press Ctrl+Shift+Enter to tell it
you want an array formula. To enter the array formula shown in Fig-
ure A-4, for example, you take these steps:
5
A Excel 2002 F R O M A TO Z
Arrows
You can add arrows to your workbooks. Arrows are drawing objects.
To add an arrow, first display the Drawing toolbar by choosing the
View➞Toolbar➞Drawing command. Next, click the Arrow button
on the Drawing toolbar. Then click at the point where you want the
arrow to start and drag the mouse to the point where you want the
arrow to end.
You can move an arrow by selecting it and then dragging it. To change
the appearance of an arrow, right-click the arrow and choose the
Format AutoShape command from the shortcuts menu. When use
Excel displays the Format AutoShape dialog box, experiment with its
boxes until you get the arrow you want.
6
Excel 2002 F R O M A TO Z A
AutoCorrect
AutoCorrect fixes common typing mistakes. Excel already knows about
many of the typing mistakes that people commonly make. For example,
Excel knows how to correctly capitalize the first letter of a sentence
and how to spell commonly misspelled words.
You don’t need to do anything special to use AutoCorrect. Excel’s
corrections of your spelling and typing mistakes will occur automati-
cally. (Try typing the word “and” as “adn” to see how AutoCorrect
works.)
If you want to change the way that AutoCorrect works, choose the
Tools➞AutoCorrect command. When Excel displays the AutoCorrect
dialog box, use it to describe how AutoCorrect should operate (see
Figure A-5).
You can uncheck the first box to tell Excel that you don’t want the
AutoCorrect Options button displayed after autocorrection occurs. (The
AutoCorrect Options button lets you undo or adjust the correction.)
You can check and uncheck the next four check boxes listed to specify
whether Excel should or shouldn’t fix common capitalization errors.
(Usually you want Excel to make such fixes.)
7
A Excel 2002 F R O M A TO Z
You can use the Replace Text As You Type check box to turn on and
off automatic spelling correction and typo correction. (The list of
corrections Excel will make shows in the list box at the bottom of the
dialog box.)
To add a new common error to AutoCorrect’s list, enter the errone-
ous entry in the Replace box and the correct entry in the With box.
AutoFill
You can tell Excel to continue, or autofill, a pattern of values in the
selected range in two ways: You can drag the fill handle, and you can
choose the Edit➞Fill➞Series command. The fill handle is the small
square that appears in the lower right corner of a range selection.
SEE ALSO Filling Cells
8
Excel 2002 F R O M A TO Z A
9
A Excel 2002 F R O M A TO Z
10
Excel 2002 F R O M A TO Z B
Boolean Algebra
Boolean algebra tests logical conditions to see if the tested condition
is true or false. For example, Boolean algebra can test whether 2+2
equals 4 and whether the value in cell B4 of the worksheet is less than
the value in cell B3. If a Boolean algebraic test condition is true, the
formula result equals 1, the logical value for true. If the test condi-
tion is false, the formula result equals 0, the logical value for false.
Boolean algebra expressions and formulas use the logical operators
shown in the table that follows:
SYMBOL DESCRIPTION
= Equals
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
<> Not equal to
Here are some example Boolean algebra formulas with descriptions:
FORMULA DESCRIPTION
11
C Excel 2002 F R O M A TO Z
NOTE If you enter a Boolean algebra expression into a cell, you need
to start the expression with an equals sign because the expres-
sion is a formula. However, you can also use Boolean expressions
in logical functions such as the IF() function. In this case, you don’t
need to include the equals sign.
12
Excel 2002 F R O M A TO Z C
Cell Borders see Borders
Cell Notes see Comments
Cell References see Cell Addresses
Cells
The intersection of a column and row creates a cell. Each cell has an
address, or reference, consisting of the column letter and row num-
ber. For example, the cell in the top left corner of the worksheet is cell
A1.
You can enter labels, values, and formulas into cells by clicking the
cell, typing what you want to enter, and then pressing Enter.
SEE ALSO Copying Cell Contents, Editing Cell Contents, Erasing Cell Con-
tents, Filling Cells, Formatting Toolbar, Formulas, Labels, Moving
Cell Contents, Values
Cell Selector
A dark outline called the cell selector identifies the active cell. The
reference of the active cell also appears on the left side of the formula
bar in the Name box. If you type a number and press Enter, Excel
places the number in the active cell.
SEE ALSO Active Cell
Charts
Excel’s Chart Wizard lets you create charts using workbook data.
13
C Excel 2002 F R O M A TO Z
• Data categories order and organize the data points in a data series and
are commonly based on time, such as months or quarters or years.
• Data markers are the graphical elements used to represent individual
data point values in a chart. A chart that uses columns or bars, for
example, has column or bar data markers. A pie chart has pie-slice
data markers, and so on. Typically, the data markers in a data se-
ries all resemble each other.
• Excel typically describes and qualifies data markers using the data-
marker descriptions such as axis scales and data labels. Different types
of charts use different data-marker descriptions. Bar, column, and
line charts use axis scales.
• A legend identifies the data series you’ve plotted.
• Chart text describes a chart or some part of a chart, providing chart
titles, subtitles, and annotations.
• The plot area of a chart includes the data markers and data-marker
descriptions.
• The chart area includes plot area, any chart text, and the legend.
NOTE Excel limits the number of data points and data series you can
plot in a chart. A data series may hold no more than 4000 data
points. A chart may show no more than 255 data series. These
constraints mean that you may sometimes need to arrange large
data series or big sets of data series vertically by putting data
series into columns rather than rows.
Figure C-1 A simple worksheet with data you might plot in a chart.
14
Excel 2002 F R O M A TO Z C
1. Select the worksheet range that includes the data series and any data
series names and data categories names.
2. Start the Chart Wizard by clicking the Chart Wizard button on the
toolbar or by choosing the InsertÞChart command. Excel displays
the first Chart Wizard dialog box (see Figure C-2).
3. Select one of Excel’s chart types from the Chart Type list box. Excel
provides 14 different types of charts: Column, Bar, Line, Pie, XY
(Scatter), Area, Doughnut, Radar, Surface, Bubble, Stock, Cylin-
der, Cone, and Pyramid.
NOTE You can return to a previous Chart Wizard dialog box by clicking
the Back button.
4. After you select the Chart type, Excel displays the different versions
available for the chart type as clickable buttons in the Chart Sub-
Type box. Excel displays a short description of the selected chart
sub-type in the area below the Chart Sub-Type box. To select a
chart, click the button that looks like the chart you want. After
making your selection, click Next.
NOTE You can tell Excel to display a rough-draft version of the chart
you’re creating by clicking the Press And Hold To View Sample
button.
15
C Excel 2002 F R O M A TO Z
5. When Excel displays the second Chart Wizard dialog box, use it
to verify that Excel is retrieving the correct data from the worksheet
(this should be the case if you select the data correctly in step 1)
and that it has correctly identified the data series (see Figure C-3).
If Excel hasn’t correctly interpreted the to-be-plotted data, click the
worksheet button at the right end of the Data Range text box. When
Excel minimizes the Chart Wizard dialog box, select the correct
range. To restore the Chart Wizard dialog box, click the worksheet
button a second time. If Excel has misinterpreted how you’ve or-
ganized your worksheet data—Excel assumes the chart has fewer
data series than data categories—click the other Series In option
button. Click Next when you’re finished.
6. When Excel displays the third Chart Wizard dialog box, you use
its Titles tab to add a chart title and axes titles (see Figure C-4). To
add such chart text, just click the appropriate text box and type the
text you want. Click Next when you’re finished.
16
Excel 2002 F R O M A TO Z C
NOTE Excel updates the chart picture shown on the third Chart Wizard
dialog box for any text you add.
7. Use the fourth Chart Wizard dialog box to choose which location
you want for your chart (see Figure C-5). To add the chart to a new
sheet, click the As New Sheet option button and then enter a name
for the new chart sheet. To add the chart as a free-floating object
to an existing worksheet, click the As Object In option button and
then select the worksheet from the As Object In drop-down list box.
When you complete this step, you’ve finished creating the chart.
Click Finish.
17
C Excel 2002 F R O M A TO Z
Customizing a Chart
To customize a chart, select the chart and then click the Chart Wiz-
ard toolbar button. Excel restarts the Chart Wizard, and you can step
through the four dialog boxes (described earlier in the preceding
paragraphs) to make your changes.
You can make changes not described in the earlier discussion of the
Chart Wizard. For example, the Custom Types tab of the first Chart
Wizard dialog box displays a variety of hybrid charts in which dif-
ferent data series use different data markers and also charts that use
unusual color schemes (see Figure C-6). To use one of these custom
chart types, select it from the list.
Figure C-6 The Custom Types tab of the first Chart Wizard dialog
box.
NOTE You can also change the chart type by clicking a chart and then
choosing the Chart➞Chart Type command.
You can add to or change the data series plotted in a chart using the
Series tab of the second Chart Wizard dialog box (see Figure C-7).
To change a data series, click its name in the Series list box and then
change the values in the Name and Values boxes. To add a data se-
ries to the chart, click Add, and then, after Excel adds the new series,
18
Excel 2002 F R O M A TO Z C
use the Name and Values boxes to name the data series and identify
the worksheet range holding the data series. To remove a data series,
click the data series and then click Remove. The Series tab also pro-
vides a box you use to specify which worksheet range holds the data
category names.
Figure C-7 The Series tab of the second Chart Wizard dialog box.
TIP If you click the worksheet button shown at the right end of the
Name, Values, and Category (X) Axis Labels boxes, Excel minimizes
the dialog box. You can then select the cell or worksheet range
holding the name, to-be-plotted data, or data category names.
NOTE You can also change the chart type by clicking a chart and then
choosing the Chart➞Source Data command.
You can use the third Chart Wizard dialog box, shown in Figure
C-8, to change the text you’ve used to annotate the change, the ap-
pearance of the chart’s axes, the gridlines used within the plot area,
the location of a legend (and whether you even want one of these),
whether data labels appear next to data markers, and whether a table
of the plotted data also appears in the chart. For example, the Axes tab
provides check boxes you can use to indicate whether you want a cat-
egory and value axis and, for the category axis, what formatting you
19
C Excel 2002 F R O M A TO Z
want. Rather than reading about what each of these options does, ex-
periment with them yourself. If your experimentation still leaves you
with questions, click the Question button in the dialog box’s upper right
corner and then click the option you have a question about.
Figure C-8 The Axes tab of the third Chart Wizard dialog box.
Each of the other tabs allows you to customize the chart, too. The
Gridlines tab displays check boxes you can select to add horizontal and
vertical gridlines to plot the area of your chart. The Legend tab dis-
plays a Show Legend check box you can select to add a legend to the
chart and then Placement option buttons—Bottom, Corner, Top,
Right, or Left—which you can use to indicate where you want the
legend placed. The Data Labels tab displays a set of option buttons you
can use to indicate whether you want the actual data point values or
equivalent percentages written next to their data markers. The Data
Table tab provides check boxes that you can use to add a table and a
legend of the data point values of the chart.
NOTE You can also change the chart text, axes, gridlines, legend, data
labels, or data table by clicking a chart and then choosing the
Chart➞Chart Options command.
You can use the fourth Chart Wizard dialog box, to relocate a chart
(see Figure C-9). To do this, simply select the other option button
when you see this dialog box. For example, if the dialog box initially
shows the As New Sheet option button selected, select the As Ob-
ject In option button.
20
Excel 2002 F R O M A TO Z C
Printing a Chart
To print the chart in the selected sheet, simply click the Print toolbar
button or choose the File➞Print command. To print a free-floating
chart object, click it and then click the Print toolbar button or choose
the File➞Print command. You can also print the chart object by print-
ing the worksheet over which it floats.
21
C Excel 2002 F R O M A TO Z
COMPARISON
COMPARISON DESCRIPTION
22
Excel 2002 F R O M A TO Z C
• To make a time-series comparison, you would typically choose a
chart that uses vertical data markers, such as a column chart, a line
chart, or one of the cylinder, cone, or pyramid chart sub-types that
uses a horizontal data category axis and data markers. You might
also choose the stock chart if you’re performing technical analysis
of security prices. (Time-series charts typically use a horizontal data
category axis because of the Western convention of using a hori-
zontal axis to denote the passage of time.)
• To make a correlation comparison, you might choose the XY (scat-
ter) chart if you’re working with two data series or the bubble chart
if you’re working with three data series. You might also choose the
surface chart if you want to explore trends in two dimensions.
• To make a geographic comparison, you would probably use the
MapPoint program, which comes with Microsoft Office XP or, pos-
sibly, the surface chart.
23
C Excel 2002 F R O M A TO Z
2. Enter as much of the image’s file name and extension as you know
into the Search Text box. Use the ? wildcard in place of any char-
acters you don’t know and the * wildcard in place of any character
sets you don’t know.
3. Use the Search In box to specify where Excel should look for clip
art.
4. Use the Results Should Be box to restrict the search to only speci-
fied types of clip art.
5. Click the Search button to begin the search. When Excel finishes,
it displays a list of thumbnail images that match your search cri-
teria.
24
Excel 2002 F R O M A TO Z C
25
C Excel 2002 F R O M A TO Z
The Clip Organizer window organizes your images into three catego-
ries: My Collections, Office Collections, and Web Collections. To see
the subcategories in any of these major categories, double-click the
category folder icon. In Figure C-12, the My Collections folder is open
and shows several additional subcategory folders. To see the images
in a subcategory, double-click the subcategory folder icon. Clip Or-
ganizer displays a list of thumbnail images. You can right-click a
thumbnail image to display a shortcut menu of commands useful for
copying, moving and deleting clip art images.
NOTE The Clip Organizer toolbar provides many of the same toolbar
buttons and tools as does the Windows Explorer or My Computer
toolbar.
Clipboard
When you work with Microsoft Office applications like Excel, the
term clipboard actually refers to two different items: the system clip-
board and the office clipboard. Both clipboards are temporary stor-
age areas filled with items you cut and copy. However, the two
clipboards work differently.
26
Excel 2002 F R O M A TO Z C
To paste from the Office clipboard, first choose the Edit➞Office
Clipboard command so that the contents of the Office clipboard are
listed in the task pane (see Figure C-13). Then, right-click the item
and choose the Paste command from the shortcut menu.
NOTE To paste from the system clipboard, you choose the Edit➞Paste
command, click the Paste toolbar button, or use the Ctrl+V short-
cut.
The Office clipboard lets you copy items between Office documents
and programs. For example, you can use the Office clipboard to copy
an Excel chart to a Word document.
The Office clipboard gets erased when you close the last Office pro-
gram. You can also erase the Office clipboard by clicking the Clear
All button in the Clipboard task pane. (This also clears the system
clipboard.) You can also erase individual items in the Office clipboard
by right-clicking the item and choosing the Delete command.
27
C Excel 2002 F R O M A TO Z
Closing Programs
To close, or exit, a program like Excel, choose the File➞Exit com-
mand. Alternatively, click the program window’s Close box.
NOTE The program window’s Close box is in the upper right corner of
the program window and is marked with an “X.”
Closing Workbooks
Workbooks
To close a workbook, choose the File➞Close command. Alternatively,
click the workbook window’s Close box.
NOTE The document window’s Close box is in the upper right corner
of the program just beneath the program window’s Close box.
The program window’s Close box is in the corner program win-
dow. Close boxes are marked with an “X.”
To close all the open workbooks, hold down the Shift key and choose
the File➞Close All command.
Coloring
You can add color or change the color of most parts of an Excel
workbook.
28
Excel 2002 F R O M A TO Z C
Coloring Text
Text
To color text, select the text. Then click the Font Color toolbar button’s
arrow to display a pop-up menu of colors. Click the color you want
for the selected.
Alternatively, you can choose the Format➞Cells command to display
the Format Cells dialog box, click the Font tab and then use the Color
list box to select a color (see Figure C-14).
Coloring an Object
To color an object or some part of an object, right-click the object so
that Excel displays the shortcuts menu. Choose the Format command
so that Excel displays the Format dialog box. (The exact name of the
command and dialog box will depend on the object you select.) Click
the Colors And Lines tab and use the Fill Color and Line Color boxes
to pick the color you want (see Figure C-15).
29
C Excel 2002 F R O M A TO Z
Figure C-15 The Colors And Lines tab of the Format Picture dialog
box.
Columns
In a worksheet, the letters of the alphabet identify each of the 256
columns. Excel uses double letters for columns 27 through 256.
To quickly increase the column width to accommodate all text in the
column but include no extra white space, double-click the right border
of that column heading.
To specify exact column width, select any cell in that column, choose
the Format➞Column➞Width command. Enter the width in char-
acters in the Column Width text box and click OK (see Figure C-16).
30
Excel 2002 F R O M A TO Z C
To hide a column, select any cell in the column and choose the
Format➞Column➞ Hide command. To redisplay a hidden column,
select a range that includes the columns to the left and right of the
hidden column. Then choose the Format➞Column ➞Unhide com-
mand.
Comments
To add a comment to the selected cell, choose the Insert➞Comment
command. When Excel opens a pop-up comment box, type your
comment (see Figure C-17).
To later view a comment, click the cell and choose the Insert➞Edit
Comment command. To delete a comment, click the cell and choose
the Edit➞Clear➞Comment command.
31
C Excel 2002 F R O M A TO Z
2. Enter the first criteria, using the drop-down list boxes and text boxes
provided. For example, if you want Excel to display values greater
than 500 in red italic boldface, indicate that you want to condition-
ally format cells with values greater than 500.
32
Excel 2002 F R O M A TO Z C
3. Click Format to describe how you want Excel to format the cells
with contents that fit your criteria. When you do this, Excel dis-
plays a variant of the Format Cells dialog box (see Figure C-19).
Use it specify the font, font size, font effects, and font color you want
to use for cells that contain labels or values meeting your conditions.
Click OK to close the Format Cells dialog box and return to the
Conditional Formatting dialog box.
4. Click Add, and Excel adds the conditional formatting rule. If you
want to specify multiple criteria, repeat steps 1 and 2 for the other
criteria.
5. Click OK, and Excel applies the conditional formatting.
SEE ALSO Formatting Cells
Control Menu
In the upper left corner of program windows, including the Excel
program window, is an icon you can click to display the Control menu.
The Control menu, a relic of the version of Windows that Microsoft
sold a decade ago, supplies commands for moving, sizing and closing
the program window.
33
C Excel 2002 F R O M A TO Z
To copy the labels and values for such an operation, follow these steps:
1. Select the cell or range to be copied. The easiest method for select-
ing a specific cell or range is by clicking or clicking and dragging
the mouse.
2. Click the Copy toolbar button, or choose the Edit➞Copy command.
34
Excel 2002 F R O M A TO Z C
3. Select the destination cell or the cell in the upper left corner of the
destination range.
4. Click the Paste toolbar button, or choose the Edit➞Paste command.
Excel copies the worksheet range from the clipboard into the
specified worksheet range (see Figure C-21).
Figure C-21 A worksheet with the contents of B2:B6 pasted into the
range C2:D6.
NOTE If you paste a copy of a single cell into a multiple-cell range, the
contents of the cell are duplicated in each cell in the destination
range.
TIP You can also copy a cell or range with the mouse. Just select the
cell or range, hold down the Ctrl key, point to the black border
around the cell or range so that the mouse pointer changes from
a cross to an arrow, and then drag the cell or range to a new
location.
35
C Excel 2002 F R O M A TO Z
Copying Formatting
You can copy formatting by selecting the text, clicking the Format
Painter toolbar button, and then selecting the text you want to format.
To format several ranges with the Format Painter tool, select the range
with the formatting you want to copy, double-click the Format Painter
toolbar button, and then go through your workbook selecting each range
you want to copy the formatting to. When you format the last text chunk,
click the Format Painter again to turn off the format copying.
SEE ALSO Copying Ranges, Formatting Cells
Copying Formulas
When you copy labels and values, Excel duplicates the contents of the
copied cell or cells and pastes the data into the selected range. When
you copy a formula, however, Excel adjusts any cell references used
in the formula. This important difference can be illustrated by copy-
ing a formula in a simple worksheet (see Figure C-22). In a worksheet
like the one shown in Figure C-22, you can copy the formula in cell
B7 to cells C7 and D7. To do this, follow these steps:
36
Excel 2002 F R O M A TO Z C
1. Select the cell or range with the formula(s) you want to copy. In the
example worksheet shown in Figure C-22, you would select cell B7.
2. Click the Copy toolbar button. Excel moves a copy of the formula
to the clipboard.
3. Select the destination range C7:D7.
4. Click the Paste toolbar button. Excel adjusts the formulas for the
column in question and pastes the formula =SUM (C2:C6) into cell
C7 and the formula =SUM (D2:D6) into cell D7 (see Figure C-23).
Figure C-23 The budgeting worksheet after copying the formula in cell
B7 into cells C7 and D7.
The formula changes that Excel makes aren’t a mistake. Excel as-
sumes—unless you tell it otherwise—that the cell references in your
formulas are relative. When Excel copies and pastes a formula with
relative cell references, it adjusts them.
37
C Excel 2002 F R O M A TO Z
Copying Objects
To copy an object, such as a picture, click the object to select it. Click
the Copy toolbar button. Click the location where the object should
be copied. Click the Paste toolbar button.
Copying Ranges
Excel provides several ways to copy worksheet ranges. To copy a range
and its formatting, use any of the following methods:
• Drag-and-drop. Select text you want to copy with the mouse. Then,
while holding down the Ctrl key, drag the selected text to a new
location.
• Edit➞Copy and Edit➞Paste commands. Select the text, choose the
Edit➞Copy command, click the new location, and choose the
Edit➞Paste command.
• Copy and Paste toolbar buttons. Select the text, click the Copy but-
ton, click the new location, and choose the Paste toolbar button.
• Office Clipboard task pane. Select the text, click the Copy button
or choose the Edit➞Copy command, click new location, and click
the item you want to copy in the Clipboard task pane. (If the
Office Clipboard doesn’t show, choose the Edit➞Office Clipboard
command.)
38
Excel 2002 F R O M A TO Z D
If you don’t want to copy the formatting, choose the Edit➞Paste Spe-
cial command in place of the Paste toolbar button or the Edit➞Paste
command. When Excel displays the Paste Special dialog box, use the
Paste buttons to specify what you want pasted (see Figure C-24).
39
D Excel 2002 F R O M A TO Z
Data Tables
Tables
Excel lets you easily create simple data tables that show how chang-
ing a formula input affects the formula result. One-variable data tables
let you experiment with how changing a single input variable can affect
a formula’s result or even several formulas’ results. Two-variable data
tables let you experiment with how changing two input variables can
affect a single formula’s result.
40
Excel 2002 F R O M A TO Z D
NOTE The PMT function, which is used in the workbook shown in Fig-
ure D-1, uses the following syntax: PMT(rate,term,loan) in which
rate is the periodic interest rate, term is the number of payments,
and loan is the loan amount.
Cell B1 holds the formula shown below to calculate the monthly
payment on a 15-year, $100,000 mortgage:
=PMT(A1/12,15*12,-100000)
The key point to note about both of these formulas—this is the secret
to using a one-variable data table—is that they refer to the empty cor-
ner cell of the worksheet that holds the data table.
Once you’ve arranged the input values and the formulas, finish the data
table by following these steps:
1. Select the worksheet range that includes the input values and the
formulas.
2. Choose the Data➞Table command. Excel displays the Table dia-
log box (see Figure D-2).
41
D Excel 2002 F R O M A TO Z
when the annual interest rate is 8.00%. Excel fills cell C3 by us-
ing the formula in cell C1 and the interest rate in cell A3 to cal-
culate the monthly payment on a 30-year, $100,000 mortgage when
the annual interest rate is 9.00%.
Figure D-3 The data table after calculating the what-if formula for
each of the input values.
NOTE Figures D-1 and D-3 show a one-variable data table that stores
the input values along the left edge and the formulas along the
top edge of the worksheet range. You can also store input val-
ues along the top edge and the formulas along the left edge. If
you use this alternative organization, you enter the input cell
address in the Table dialog box’s Row Input Cell text box.
After you set up the one-variable data table, you can continue your
what-if analysis without having to use the Data➞Table command.
Simply change the input values. Excel updates the formula results for
your changes.
Creating Two-V
Two-Variable Data T
wo-Variable ables
Tables
To set up a two-variable data table, you arrange the two sets of input
values along the left and top edge of a worksheet range. You then place
the what-if formula in the top-left corner cell of the worksheet range
(see Figure D-4).
42
Excel 2002 F R O M A TO Z D
43
D Excel 2002 F R O M A TO Z
3. Provide the input cell location for the input values you’ve stored in
a row by clicking the Row Input Cell text box (to select the text box)
and then clicking the empty cell you’ve used to refer to the variable
that should be stored in this cell. The simple worksheet shown in
Figure D-4 stores mortgage amounts in a row, so you click the cell
that the what-if formula uses to refer to the mortgage balance,
which is cell A9.
4. Provide the input cell location for the input values you’ve stored in
a column by clicking the Column Input Cell text box (to select the
text box) and then clicking the empty cell you’ve used to refer to the
variable that should be stored in this cell. The simple worksheet
shown in Figure D-5 stores interest rates in a row, so you click the
cell that the what-if formula uses to refer to the interest rates, which
is cell A8.
5. Click OK. Excel fills the data table with formula results for each
input value (see Figure D-6). For example, Excel fills cell B2 by
using the formula in cell B1 and the interest rate in cell A2 to
calculate the monthly payment on a $100,000 mortgage when the
annual interest rate is 8.00%. Excel fills cell C3 by using the for-
mula in cell C1 and the interest rate in cell A3 to calculate the
monthly payment on a $200,000 mortgage when the annual interest
rate is 9.00%. Excel fills cell D4 by using the formula in cell D1
and the interest rate in cell A4 to calculate the monthly payment
on a $300,000 mortgage when the annual interest rate is 10.00%.
44
Excel 2002 F R O M A TO Z D
Figure D-6 The data table after you calculate the what-if formula for
each of the input values.
45
D Excel 2002 F R O M A TO Z
Figure D-7 The Number tab of the Format Cells dialog box.
NOTE Excel uses decimal values for time values, so you can combine
integer date values and decimal time values to create precise date
and time values.
NOTE Excel also assumes that anything you enter into a cell that looks
like a date should be a date value.
Decimal Values
Values
To enter decimal values into worksheet cells, use the period as the
decimal point.
SEE ALSO Values
46
Excel 2002 F R O M A TO Z D
Excel attempts to adjust the cell references and range definitions used
in formulas for row and column deletions. For example, if a formula
references column C and you delete column B so that column C
becomes the new column B, Excel adjusts the formulas to reference
column B. If you delete a cell referenced in a formula, however, Ex-
cel replaces the formula’s reference with the error message #REF,
indicating that the formula originally referenced a now-deleted cell.
SEE ALSO Error Messages, Inserting Cells, Rows, Columns and Worksheets
47
D Excel 2002 F R O M A TO Z
Dictionary
Excel and other Office programs like Word use a dictionary, named
CUSTOM.DIC, to check your spelling. You can add words to this
dictionary by telling Excel when a word isn’t misspelled but just un-
known. To do this, you choose the Add command from the spelling
shortcuts menu or click the Add To Dictionary button on the Spell-
ing & Grammar dialog box. What happens in this case is that Excel
inserts the word into the CUSTOM.DIC dictionary.
Drawing
Excel includes a drawing tool which you can use to add lines, arrows,
shapes and images to your workbooks. To begin drawing, display the
Drawing toolbar by choosing the View➞Toolbars➞Drawing com-
mand (see Figure D-10).
48
Excel 2002 F R O M A TO Z D
49
D Excel 2002 F R O M A TO Z
the Shift key while you drag the mouse. After you draw your text box,
type the text you want the box to hold (see Figure D-11).
Drawing AutoShapes
The Drawing toolbar includes an AutoShapes tool which lets you
draw dozens and dozens of common shapes such as hearts, stars,
polygons, and flow chart symbols. To draw an autoshape, click the
AutoShapes tool and then select one of the AutoShapes menu com-
mands: Lines, Connectors (which are shapes that connect lines), Basic
Shapes, Block Arrows, Stars And Banners, Callouts or More Shapes.
When Excel displays a list of the autoshapes with the selected cat-
egory, click the one you want to add and then drag the mouse to size
and position the autoshape (see Figure D-12).
50
Excel 2002 F R O M A TO Z D
Selecting Objects
The Drawing toolbar’s Select Objects button lets you select more than
one drawing object. To select objects with the Drawing toolbar’s Select
Objects button, you have two selection methods available once you’ve
clicked the Select Objects button:
• Hold down the Shift key and click the objects you want to select.
• Draw a rectangle that encompasses the shapes you want to select.
51
D Excel 2002 F R O M A TO Z
52
Excel 2002 F R O M A TO Z D
Figure D-13 The Colors And Lines tab of the Format AutoShape dia-
log box.
The Drawing toolbar also provides toolbar buttons for making com-
mon formatting changes to drawing objects:
• Fill Color. To change the color of the selected item, click the
Fill Color button’s arrow and then choose the color you want from
the pop-up menu of colors.
• Line Color. To change the color of the selected line or arrow,
click the Line Color button’s arrow and choose the color from the
pop-up menu of colors. Click the color you want for the line.
• Font Color. To change the color of the selected text, click the
Font Color button and then choose the color you want from the
pop-up menu of colors.
• Line Style. To change the weight of the selected line or arrow,
click the Line Style button and then choose a line weight from the
pop-up menu of line weights.
• Dash Style. To change the selected solid line or arrow into a
dashed line or arrow—or vice versus—click the Dash Style but-
ton and then choose a dashed line style from the pop-up menu of
dashed line options.
53
D Excel 2002 F R O M A TO Z
54
Excel 2002 F R O M A TO Z E
Editing Cell Contents
Excel cells work like the fields, or boxes, you see elsewhere in Win-
dows. This means that it’s easy to correct mistakes. Before setting a
label or value in a cell, for example, you can use the Backspace key to
erase characters to the left of the insertion point (the cursor) and then
retype the correct data. You can also reposition the insertion point in
the formula bar with the arrow keys and erase characters to the right
with the Delete key. If you don’t want to enter the data shown on the
formula bar in the active cell, click the Cancel button or press the Esc
key.
If you make a mistake but don’t realize it until you set the label or value
in the cell, move the cell selector to the cell with the erroneous con-
tent. To replace the cell’s contents entirely, enter a new label or value.
To edit the cell’s contents, either click the formula bar or double-click
the cell. Edit the cell contents shown in the formula bar or in the
editable text box. When the formula bar or editable text box over the
cell shows the correct label or value, set it in the active cell by mov-
ing the cell selector to another cell, pressing the Enter key, or click-
ing the Enter button in the formula bar.
SEE ALSO Deleting Cells, Rows, Columns, and Worksheets, Formula Bar
E-Mail
You can e-mail the open Excel workbook by choosing the File➞Send
To➞Mail Recipient (As Attachment) command. Excel opens your
default e-mail client (this may be Microsoft Outlook or Microsoft
Outlook Express), creates a new blank message and attaches the Excel
workbook to the message. All you need to do is address the e-mail
message, provide a subject and some message text, and click Send.
TIP You can also e-mail Excel workbooks starting from within your
e-mail client. When you do this, you e-mail them in the same way
as you e-mail any file—typically by clicking the Attachment but-
ton and then using a dialog box to find and identify the to-be-
attached file.
55
E Excel 2002 F R O M A TO Z
Embedding Objects
To embed an object, such as a picture or some item created by another
program, choose the Insert➞Object command so that Excel displays
the Object dialog box.
Figure E-1 The Create New tab of the Object dialog box.
56
Excel 2002 F R O M A TO Z E
Figure E-2 The Create From File tab of the Object dialog box.
NOTE The Create From File tab includes two checkboxes you can use to
further control how an embedded object works. Check the Link
To File box to link the embedded object to the file that provides
the object. (When you link, Excel alerts you to changes to the file
and asks if the object should be updated.) Check the Display As
Icon box to display an icon rather than a picture of the embed-
ded object in the workbook.
57
E Excel 2002 F R O M A TO Z
Error Messages
If Excel can’t calculate a formula, it returns an error message in place
of the formula result. Typically, the error messages, described in the
table that follows, hint at the reason for the error:
MESSAGE DESCRIPTION
#DIV/0 Your formula attempts to divide by zero,
which is impossible.
#N/A Your formula references a cell that returns
the “Not available” value.
#NAME? Your formula appears to use a cell name but
the cell name isn’t recognized or is mis-
spelled.
#NULL Your formula attempts to provide value that
doesn’t exist.
#NUM! Your formula attempts an impossible opera-
tion such as calculating the square root of a
negative value.
#REF! Your formula references a range that doesn’t
or no longer exists.
#VALUE! Your formula tries to use text in a mathemati-
cal operation.
Exiting Excel
To exit Excel, choose the File➞Exit command or click the Excel pro-
gram window’s Close box.
SEE ALSO Closing Workbooks, Closing Programs
Exporting
You can export text, worksheet ranges, and objects from Excel so they
can be used in other programs and other workbooks. Probably the
easiest way to export the selected text, a worksheet range, or an ob-
ject is to choose Edit➞Copy to copy the selection to the clipboard,
58
Excel 2002 F R O M A TO Z F
open the new workbook or program into which you want to export
the selection, and then choose the Edit➞Paste command.
You can export an entire workbook by saving the file in a format that
can be imported by the program to which you want to move the
workbook. To do this, choose the File➞Save As command. Save the
workbook in the usual way—except use the Save As Type list box to
choose a file format the importing program will recognize.
SEE ALSO Clipboard, Copying Cell Contents, Lotus 1-2-3, Workbooks
File Format
Different programs use different formats, or structures, for their files.
The workbooks you create in Excel, for example, use a different for-
mat than the documents you create in Word (the word-processing
program that comes with Microsoft Office).
By default, Excel 2002 and the two previous versions, Excel 2000 and
Excel 97, use the same workbook format, but other spreadsheet pro-
grams and earlier versions of Excel use other formats.
You can choose which format Excel should use for a workbook when
you save the workbook file. To do so, select the file format from the
Save As Type list box, which appears on the Save dialog box.
SEE ALSO Exporting, Workbooks
59
F Excel 2002 F R O M A TO Z
File Names
You name your workbook by giving a file name using the Save or Save
As dialog box and entering a name into the File Name box.
Your workbook name can be any valid file name, which means your
file name can be up to 215 characters including spaces. All letters and
numbers can used in file names. Some symbols can, but not the sym-
bols that follow:
\/:*?“<>|
SEE ALSO Workbooks
File Properties
Excel and other Office programs collect information about the docu-
ments you create. You can view this information by choosing the
File➞Properties command. Excel displays the workbook properties
dialog box (see Figure F-1). The workbook properties dialog box
provides five tabs of information:
Figure F-1 The General tab of the workbook properties dialog box.
60
Excel 2002 F R O M A TO Z F
• The General tab displays workbook name, location, size, and file
attributes information.
• The Summary tab provides information and spaces to collect and
store information about the workbook title, subject, author, and so
forth.
• The Statistics tab reports when the workbook was last modified,
opened, printed, and so on.
• The Contents tab lists the sheets in the workbook.
• The Custom tab lets you collect and store other pieces of workbook
management information, such as when a workbook is complete,
where it’s been routed, and who the editor was.
61
F Excel 2002 F R O M A TO Z
62
Excel 2002 F R O M A TO Z F
Finding Cells
To find cells or text within a workbook, choose the Edit➞Find com-
mand. When Excel displays the Find And Replace dialog, enter the
text you want to search for into the Find What box (see Figure F-3).
Click the Find Next button to start Excel searching the workbook. If
Excel finds the text, it selects the cell while leaving the File And
Replace open. You can work in the workbook, including making
changes in the selected cell. To continue searching, click the Find Next
button again.
• Use the Within box to indicate whether you want to search the active
sheet or the workbook.
63
F Excel 2002 F R O M A TO Z
• Use the Search list box to specify in which direction Excel should
search.
• Use the Look In box to indicate whether you want Excel to search
formulas, values or comments.
• Use the Match Case checkbox to indicate whether the case of your
search text needs to exactly match the case of the workbook text.
• Use the Match Entire Cell Contents checkbox to indicate whether
Excel should only find entire cell occurrences of the search text.
Finding Workbooks
Workbooks
You can locate lost or misplaced workbooks using the Excel Search
tool or the Windows Search tool.
If you know the file name, click the Basic tab and then follow these
steps:
64
Excel 2002 F R O M A TO Z F
1. Enter the file name into the Search For box. If you know a portion
of the name, use that portion and the ? and * wildcards.
TIP The ? character represents any single character (h?t finds any
three letter filename that starts with an “h” and ends with a “t”).
The * character represents any set of characters (June* finds any
file name that starts with the word “June”).
2. Use the Search In box to specify on which drives Windows should
look.
3. Use the Results Should Be list box to select which types of work-
books you’re looking for.
4. Click the Search button. Windows begin searching for workbooks
that match your search criteria. As Windows finds matching work-
books, it lists them.
5. To open a workbook in the Results list, double-click it.
If you don’t know the file name but know something about the
workbook’s characteristics—such as what the workbook contains or
who created the workbook—click the Advanced tab (see Figure F-6).
65
F Excel 2002 F R O M A TO Z
Or Property from the Property list if you know some the text con-
tained in the workbook, and then select Includes from the Condi-
tion box and enter the search text into the Value box. As another
example, select Size from the Property list box if you know some-
thing about the size of the workbook, then select one of the com-
parison operators (Equal To, Not Equal To, More Than, Less Than,
At Least, At Most) from the Condition list box, and then enter the
file size in bytes (not kilobytes) into the Value box.
2. Use the Search In box to specify on which drives Windows should
look.
3. Use the Results Should Be list box to select which types of work-
books you’re looking for.
4. Click the Search button. Windows begin searching for workbooks
that match your search criteria. As Windows finds matching work-
books, it lists them.
5. To open a workbook in the Results list, double-click it.
66
Excel 2002 F R O M A TO Z F
2. If you know the filename, enter it into the Search For Files Or
Folders Named box. If you know a portion of the name, use that
portion and the ? and * wildcards.
3. To find files that use a word, phrase, or string of text, enter that word,
phrase, or text string into the Containing Text box.
4. Use the Look In list box to specify on which drives Windows should
look.
5. Optionally, use the Date, Type, Size and Advanced Options boxes
to further refine the search. If you check one of these boxes, Win-
dows displays other boxes and buttons you’ll use to describe the
criteria in detail.
6. Click the Search Now button. Windows begin searching for work-
books that match your search criteria. As Windows finds match-
ing workbooks, it lists them.
7. To open a workbook in the Search Results window, double-click
it.
67
F Excel 2002 F R O M A TO Z
TIP You can do other work with your computer while the search goes
on. And you’ll probably want to do this. Complex searches, such
as those that look inside workbooks for matching text, can take
a long time.
Formatting Numbers
To format values in the selected range, choose the Format➞Cells com-
mand and click the Number tab (see Figure F-8). Select the type of
numeric formatting you want from the Category list box. Then, use
the other boxes, buttons and lists that Excel displays to choose and
fine-tune a number format.
Figure F-8 The Number tab of the Format Cells dialog box.
68
Excel 2002 F R O M A TO Z F
NOTE Each category of number formatting has its own formatting
options.
Adjusting Alignment
To adjust the way that labels and values are aligned in cells, choose
the Format➞Cells command and click the Alignment tab (see Fig-
ure F-9).
Figure F-9 The Alignment tab of the Format Cells dialog box.
• Use the Horizontal box to select how labels and values are horizon-
tally positioned against the left and right edges of the cell. (The
default General horizontal alignment tells Excel to left-justify text
and right-justify values.)
• Use the Vertical box to select how labels and values are vertically
positioned against the top and bottom edges of the cell.
• Use the Orientation boxes to change from the usual horizontal text
orientation to a vertical orientation or something in-between.
• Use the Text Control checkboxes to wrap text to multiple lines,
shrink the text, or combine selected cells.
• Use the Text Direction box to specify the reading order and alignment.
69
F Excel 2002 F R O M A TO Z
Changing Fonts
To change the font, style, point size and font effects for the selected
range, choose the Format➞Cells command and click the Font tab (see
Figure F-10).
Figure F-10 The Font tab of the Format Cells dialog box.
• Use the Font list box to select a font for the text.
• Use the Font Style list box to italicize or bold the text.
• Use the Size list box to select a point size for the text.
• Use the Underline list box to add underlining.
• Use the Color box to select a color for the text.
• Use the Effects check boxes to add effects like superscripting and
subscripting.
TIP Remember that the Font tab’s Preview area shows how your font
specifications look.
70
Excel 2002 F R O M A TO Z F
Adding Borders
To add a border to the selected range, choose the Format➞Cells com-
mand and click the Border tab (see Figure F-11). You can use the
Presets buttons to indicate you want borders around the outside bor-
der of the range or along interior rows of the range. Or, you can use
the Border buttons to selectively add borders—including diagonal
borders. The Line Style and Color boxes let you specify what the
border lines should look like.
Figure F-11 The Border tab of the Format Cells dialog box.
71
F Excel 2002 F R O M A TO Z
Figure F-12 The Patterns tab of the Format Cells dialog box.
Formatting Toolbar
Toolbar
The Formatting toolbar provides buttons and boxes for making almost
two-dozen common formatting changes, as shown in the list below.
Note, though, that not all of these tools will appear on your Format-
ting toolbar. If you’re using a personalized toolbar, only the format-
ting toolbar buttons that you most frequently use will appear. If you’re
working with the default Formatting toolbar, only the first seventeen
tools listed will appear.
• The Font box lets you pick a font for the selected text.
• The Font Size box lets you a point size for in the selected range text.
• The Bold button adds and removes boldfacing to or from the selection.
• The Italic button italicizes and un-italicizes the selected text.
• The Underline button adds and removes underlining from the selected
text.
• The Align Left button aligns the selected against the left page
margin.
• The Center button horizontally centers the selected text on the page.
72
Excel 2002 F R O M A TO Z F
• The Align Right button aligns the selected text against the right
page margin.
• The Merge And Center button combines the selected cells and then
centers the text in the new merged cells.
• The Currency Style button applies the currency number format to
the selection.
• The Percent Style button applies the percentage style number for-
mat (using two decimal places) to the selection.
• The Comma Style button applies the comma style number format
to the selection.
• The Increase Decimal button increases the number of decimal places
used to show values in the selection.
• The Decrease Decimal button decreases the number of decimal
places used to show values in the selection.
• The Decrease Indent button un-indents the selected text.
• The Increase Indent button indents the selected text.
• The Border button adds a border to the selected line or paragraph.
(If you click the Border button arrow, Excel displays a menu of
border choices.)
• The Fill color button fills the selected range with a color.
• The Font Color button colors text in the selection.
• The AutoFormat button displays the AutoFormat dialog box so you
can automatically format the selection.
• The Format Cells button displays the Format Cells dialog box so
you can format the selection.
• The Increase Font Size button increases the size of the text in the
selection to the next bigger size.
• The Decrease Font Size button decreases the size of the text in the
selection to the next smaller size.
• The Left-to-Right button changes the text direction.
TIP To add a tool to the Formatting toolbar, click the down arrow at the
right end of the toolbar. When Excel displays a list of the additional
toolbar boxes and buttons you can add, click the tools you want.
73
F Excel 2002 F R O M A TO Z
Formula Auditing
The Tools➞Formula Auditing command displays a submenu of com-
mands that let you carefully check the way your formulas work:
• The Trace Precedents command shows which cells supply values
to the selected cell’s formula.
• The Trace Dependents command shows which cells use the selected
cell’s formula results.
• The Trace Errors command shows which cells supply the error-
causing values to the selected cell’s erroneous formula.
• The Remove All Arrows command removes the arrows that Ex-
cel draws to show precedents, dependents, and errors.
• The Evaluate Formula command displays the Evaluate Formula
dialog box, which you can use to calculate parts of the formula and
see intermediate calculation results.
• The Show Watch Window command displays the Watch Window
which lets you build a list of cells whose formula results you want
to monitor. (To add a cell’s formula to the list, click the cell and then
the Add Watch button.)
• The Formula Auditing Mode command is a toggle switch that turns
on and off the auditing mode. In auditing mode, Excel displays for-
mulas in cells not formula results. In addition, Excel draws colored
borders around the active cell’s precedent cells.
• The Show Formula Auditing Toolbar command opens a toolbar of
commands for tracing precedents, dependents, and errors and for per-
forming other similar audits.
SEE ALSO Error Messages, Formulas
Formulas Bar
The Formula bar shows the contents of the active cell (see Figure
F-13). If the active cell contains a formula, for example, the formula
bar shows the formula rather than the formula result.
To edit the cell contents shown in the formula bar, click the formula
bar and make your changes.
74
Excel 2002 F R O M A TO Z F
Figure F-13 The formula bar showing the contents of the active cell.
Formulas
Excel’s power stems from its ability to perform calculations on the
values you store in workbook cells using formulas you enter in other
workbook cells.
Entering Formulas
You enter formulas into a cell in the same way you enter labels and
values. With a formula, however, Excel displays not the formula, but
its result. For example, if you enter a formula that says to add 4 and
2, Excel stores the formula in the cell, but displays the result, 6, in the
worksheet.
Formulas must begin with the equal sign (=) or the plus symbol (+);
that’s how Excel distinguishes them from values and labels. You can
construct formulas that subtract, multiply, divide, and exponentiate. The
– symbol means subtraction, the * means multiplication, the / means
division, and the ^ means an exponential operation. The table that
follows shows the different mathematical operators and the results they
return.
75
F Excel 2002 F R O M A TO Z
76
Excel 2002 F R O M A TO Z F
You can reference cells in other workbooks, too. To do this most easily,
open the other workbooks, begin building your formula as described
earlier in this chapter, and then click the other workbook cell you want
to reference at the point you want to include the reference. Excel then
writes the full cell reference for you, which includes the workbook
name. An external reference to cell C1 on the worksheet named Sheet2
in the workbook named Budget might be written as
[Budget.xls]Sheet2!$C$1
Formula Errors
When you build an illogical or unsolvable formula, Excel may dis-
play an error message in the cell rather than calculating the result. The
error message, which begins with the # symbol, describes the error.
Suppose, for example, that you enter the formula =1/0 in a cell. Be-
cause division by zero is an undefined mathematical operation, Ex-
cel can’t solve the formula. To alert you to this, Excel displays the error
message #DIV/0!.
Another common error is a circular reference. This occurs when two
or more formulas indirectly depend on one another to achieve a re-
sult. For example, if the formula in cell A1 is =A2 and the formula in
cell A2 is =A1+A3+A4, A1 depends on A2 and A2 depends on A1.
Excel displays a warning and the Circular Reference toolbar when you
create a circular reference. Excel identifies circular references by
displaying the word Circular on the status bar and showing the ad-
dress of the cell whose formula completed the “circle.” It also draws
arrows between the cells causing the circle.
To fix a formula error, move the cell selector to the cell holding the
formula, click the formula bar, and edit the formula.
NOTE When a formula refers to a cell that contains an erroneous for-
mula, both formulas return the error message. For example, if cell
A1 attempts to divide by zero and cell A2 refers to cell A1, cell
A2 returns the error message #DIV/0! as well.
77
F Excel 2002 F R O M A TO Z
interest charges. In this example, the cell holding the mortgage balance
amount would be named Mortgage_Balance and the cell holding the
interest rate would be named Interest_Rate.
Another way to create natural language formulas is to use labels in
formulas. To use the label approach, first choose the Tools➞Options
command click the calculation tab, check the Accept Labels In For-
mulas box. Once you’ve done this, you can use column and row labels
that clearly identify the cells in formulas (see Figure F-14).
In the worksheet shown, for example, the formula in cell B5 that adds
the contents of cells B2, B3, and B4 is:
=January Rent + January Fees + January Laundry
The formula in cell C5 that adds the February expense numbers is:
=SUM(February)
SEE ALSO Boolean Algebra, Error Messages, Formula Auditing, Func-
tions, Naming Cells and Ranges
78
Excel 2002 F R O M A TO Z F
Fractions
Excel doesn’t provide an easy way to display formulas as fractions. You
can however enter fractions into cells and use fractions in formulas.
To enter the fraction one-fourth into a cell, for example, type:
=1/4
To use the fraction 11/16ths in a formula, simply enclose the fraction
in parenthesis:
=(11/16)*500
SEE ALSO Formulas
79
F Excel 2002 F R O M A TO Z
To return to the Normal view, click the Close Full Screen button,
which appears when you’re working in Full Screen view. Or choose
the View➞Normal command.
Functions
Excel provides more than three hundred pre-built financial, statisti-
cal, mathematical, trigonometric, and engineering formulas, called
functions, that ease construction of complicated or lengthy formulas.
=SUM(C1,C2,C3,C4,C5)
=SUM(500,50,500,2000,250)
=SUM(SUM(C1),SUM(C2),SUM(C3),SUM(C4),SUM(C5))
Using Functions
To use a function in a formula, click the Paste Function toolbar but-
ton or choose the Insert➞Function command. Excel displays the Insert
Function dialog box (see Figure F-16). You can look for a function
80
Excel 2002 F R O M A TO Z F
in two ways. You can type a description of what you want to calcu-
late into the Search For Function box. Or you can select a category
of functions from the Or Select A Category box. Excel then lists
functions that calculate what you want or that fall into the selected
category in the Select A Function box. Excel describes what the se-
lected function does at the bottom of the Insert Function dialog box.
When you have found the function you want to use, click OK.
Excel displays the Function Arguments dialog box with text boxes you
can use to identify or supply the arguments required for the function
(see Figure F-17). If necessary, drag this dialog box to another por-
tion of your screen to see the cells you want to include in the func-
tion. To enter cell data in an argument text box, click that box and then
enter a value or select the cell or range of cells in your worksheet that
goes in the box. Excel highlights the cell or cells you selected with
a flashing box. To enter value or cell data in another argument text box,
click that box and enter the value or select the cell or range in your
worksheet that contains the data required for that box. Click OK when
you’re finished. Excel pastes the function in the cell.
81
G Excel 2002 F R O M A TO Z
Goal Seek
The Tools➞Goal Seek command determines which input value for
a formula produces a specified formula result. Goal Seek, then, lets
you quantify what needs to happen in order to achieve some specified
result.
For example, suppose you want to determine the interest rate that would
result in a $1,400-a-month payment on a $100,000 loan with a 10-
year repayment term using the workbook (see Figure G-1).
82
Excel 2002 F R O M A TO Z G
NOTE In the loan payment workbook, cells B1, B2, and B3 hold loan
payment function input values for the interest rate, the number
of payments, and the loan amount. Cell B5 holds the formula
=PMT(B1/12,B2,-B3) calculate the monthly interest payment.
To determine the interest rate input value required for your specified
formula result, follow these steps:
1. Choose the Tools➞Goal Seek command. Excel displays the Goal
Seek dialog box (see Figure G-2).
83
G Excel 2002 F R O M A TO Z
2. Use the Set Cell text box to specify the cell that holds the formula
Excel will attempt to set to the specified value. For the example
workbook shown in Figure G-2, you would specify the Set cell as
B5.
3. Use the To Value text box to specify the formula result you want.
For the example discussed here, you would specify the To Value as
1400.
4. Use the By Changing Cell text box to specify the input cell that Excel
should adjust in an attempt to calculate the formula result you want.
For the example workbook shown in Figure G-1, you would specify
the By Changing cell to B1. When click OK, Excel adjusts the input
cell to a value that produces the desired formula result and displays
the results in the Goal Seek Status dialog box (see Figure G-3).
Goal Seek typically finds the correct input cell value in a fraction of
a second. If your calculations are very cumbersome, however, Goal
Seek may take longer. When this happens, you can click the Goal Seek
Status dialog box’s Stop button to terminate the search. Or you can
click the Pause button to temporarily suspend the search.
Go To
To
The Edit➞Go To command displays the Go To dialog box (see Figure
G-4). You can use the Go To to move the cell selector to a new lo-
cation in a workbook. Just enter the cell address in the Reference box
and click OK.
84
Excel 2002 F R O M A TO Z G
NOTE The Go To list in the Go To dialog box lists any cell and range
names in your workbook. To go to one of these ranges, click the
range and then OK.
85
H Excel 2002 F R O M A TO Z
Figure G-5 The Sheet tab of the Page Setup dialog box.
Handwriting Recognition
To use the Handwriting Recognition tool built into Office XP pro-
grams, follow these steps:
86
Excel 2002 F R O M A TO Z H
1. Display the Language toolbar by clicking on the EN indicator in
the status area of the Window and choosing the Show Language
Bar command.
NOTE The EN indicator doesn’t appear in the status area until you turn
on Office XP’s speech recognition feature.
2. Optionally, open the Writing Pad by clicking the Handwriting
toolbar button and choose the Writing Pad command from the
menu that the Language Bar displays. The Writing Pad window
opens (see Figure H-1).
NOTE To write directly into the active workbook window, choose the
Write Anywhere command from the Handwriting menu.
3. Place the cell selector or insertion point at the location where you
want your text inserted. Then, using your mouse or handwriting
input device, neatly write or print text inside the Writing Pad win-
dow. Don’t pause as your write words. Do leave a space between
words. As you write, Handwriting Recognition interprets your
words, entering them at the insertion point. If you write something
you want to erase, click the Writing Pad’s Clear button.
TIP The Writing Pad window includes buttons you can click to rep-
resent common keys such as the Backspace, Spacebar, Enter and
Tab keys. If you click the Expand button, The Writing Pad window
expands to include buttons you can click to move the cursor one
character up, down, right or left, to open the Drawing toolbar,
and to display an onscreen keyboard you can use by clicking its
buttons.
4. To correct text you’ve entered with Handwriting Recognition, se-
lect the text and then either type the replacement text or handwrite
the replacement text and click the Writing Pad’s Correction but-
ton.
SEE ALSO Drawing
87
H Excel 2002 F R O M A TO Z
Figure H-2 The Header/Footer tab of the Page Setup dialog box.
NOTE You can use headers and footers to add information such as a
page number, the company name, or the workbook name to
printed copies of the workbook.
88
Excel 2002 F R O M A TO Z H
2. Use the Save In and Filename to specify where the Web Page should
be saved and what it should be named.
3. Select the Web Page entry from the Save File As Type box.
4. Click OK.
SEE ALSO Web Folders
Hyperlinks
Hyperlinks are clickable pictures and words you can use to display a
network or Internet resource—such as a Web page. To use a hyperlink,
you simply click it. Excel then opens the network resource (this might
be another Excel workbook) or the Internet resource (probably a Web
page).
Figure H-3 The Insert Hyperlink dialog box with the Link To: Exist-
ing File Or Web Page options displayed.
89
H Excel 2002 F R O M A TO Z
TIP If you don’t know the URL or network pathname, you may be able
to find the workbook or web page by clicking the Current Folder,
Browsed Pages and Recent Files buttons and then choosing the
workbook or web page from the list box. You can also use the
Look In box and the Up One Folder button to display the contents
of other folders on your local network and the Browse The Web
button to open a web browser window you can use to find the
page you want to link to.
4. Use the Text To Display box to provide text the web browser should
display in its status bar when someone points to the link.
5. Optionally, use the ScreenTip button to provide text the web
browser will display in a pop-up box when someone points to the
link.
Figure H-4 The Insert Hyperlink dialog with the Place In This
Document options displayed.
90
Excel 2002 F R O M A TO Z H
3. Use the Type The Cell Reference box or the Or Select A Place In
This Document box to indicate where in the open document you
want to link.
4. Use the Text To Display box to provide text the web browser should
display in its status bar when someone points to the link.
5. Optionally, use the ScreenTip button to provide text the web
browser will display in a pop-up box when someone points to the
link.
Figure H-5 The Insert Hyperlink dialog box with the Create New
Document options displayed.
91
H Excel 2002 F R O M A TO Z
6. To create the document now, click the Edit The New Document
Now button. Or, to postpone creating the document, click the Edit
The New Document Later button.
Figure H-6 The Insert Hyperlink dialog box with the E-Mail Ad-
dress options displayed.
3. Enter the e-mail address in the E-Mail Address box. If you don’t
know the e-mail address, you may be able to select the address from
the Recently Used E-Mail Addresses list box.
4. Optionally, enter a suggested message subject in the Subject box.
5. Use the Text To Display box to provide text the web browser should
display in its status bar when someone points to the link.
6. Optionally, use the ScreenTip button to provide text the web
browser will display in a pop-up box when someone points to the
link.
92
Excel 2002 F R O M A TO Z I
dialog box like the one you originally used to create the hyperlink. Use
it to make your changes.
To remove a hyperlink, right-click the hyperlink and choose the
Remove Hyperlink command from the shortcut menu.
SEE ALSO HTML, Web Pages
Importing Databases
You may be able to import information from an external database and
place that information in an Excel workbook. To import database
information, you use the Data➞Import External Data command. Excel
starts the Data Connection Wizard, which steps you through the
import process.
NOTE The first time you import data into Excel, you may need the as-
sistance of the database administrator. You may also need a
password.
93
L Excel 2002 F R O M A TO Z
To insert a row, click any cell in the row below where you want the
new row inserted. Then choose the Insert➞Rows command.
To insert a column, click any cell in the column to the right of where
you want the new column inserted and choose the Insert➞Columns
command.
To insert a worksheet, display the worksheet in front of which you
want to create a new worksheet and choose the Insert➞Worksheet
command.
SEE ALSO Deleting Rows, Columns and Worksheets
Insertion Point
The insertion point is the flashing vertical line that shows where what
you type is placed in a cell. You can move the insertion by clicking the
mouse (the insertion point moves to where you click) or by using the
arrow keys (the insertion point moves one character in the direction
of the arrow).
SEE ALSO Editing Cell Contents
Labels
Labels are simply any information entered in worksheet cells that you
don’t want to manipulate arithmetically. Labels often identify the values
that are subject to calculation, so you normally enter them as the first
stage in setting up a worksheet. Usually, labels are pieces of text that
label input values and calculation results (see Figure L-1). However,
they can also be numbers that won’t be used arithmetically, such as
telephone numbers or part or project ID numbers.
94
Excel 2002 F R O M A TO Z L
To enter a label, click the cell and then type the label. Set the label
in the cell by pressing the Enter key, clicking the Enter button on the
formula bar, or moving to another cell.
95
L Excel 2002 F R O M A TO Z
Creating a List
To create a list, follow these steps:
1. Open a new blank workbook.
2. Determine what each record should be. The information these
records hold becomes the records’ fields. For example, if you want
to build a database of employees, each employee’s information goes
into a separate record.
3. Enter the field labels in the first row of the worksheet (see Figure
L-2).
4. To add information to your list, you can click a cell and type the label
or value the field should hold.
You can also enter records into your list by selecting the header row,
choosing the Data➞Form command, clicking OK, and then enter-
ing records using the data form dialog box (see Figure L-3). If the
form field boxes are not blank, click New to create a New record.
But then fill in the information about the first record by entering
data in the appropriate boxes. Click New to add the new record to
the worksheet and display a new blank form. Excel adds a new row
96
Excel 2002 F R O M A TO Z L
to the worksheet for the new record. When you’re finished using
a form to enter records, click Close.
Figure L-3 The data form dialog box Excel creates to enter records
into the worksheet shown in Figure L-2.
97
L Excel 2002 F R O M A TO Z
4. Update the worksheet with your changes to the record. Click Find
Next or Find Prev to edit other records, click New to add a new
record, or click Close to return to the worksheet.
Sorting a List
To sort a list, follow these steps:
1. Click a cell in the database. Doing so tells Excel that you want to
sort all the fields in the database and keep the records intact.
98
Excel 2002 F R O M A TO Z L
WARNING If you select a range that doesn’t include all columns,
Excel orts the columns in your range but does not sort the
other columns in the database. This disassociates fields
from the records to which they belong and attaches them
to other records.
TIP To sort only a part of a database, select all rows for the records
you want to sort.
3. Use the Sort By drop-down list box to select the name of the field
by which you want to sort the database.
4. Click the Ascending option button to sort with the lowest number,
first letter of the alphabet, or earliest date at the top of the column.
Click the Descending option button to sort in reverse numeric,
alphabetic, or chronological order.
NOTE Regardless of whether you click Ascending or Descending, blank
fields appear at the bottom of the list.
5. If multiple entries in the field you’re sorting by are the same, you
can specify other fields by which you want to sort using the Then
By drop-down list boxes and corresponding Ascending and De-
scending option buttons.
99
L Excel 2002 F R O M A TO Z
6. Select the Header Row option button. If you don’t, Excel sorts your
field labels along with the data in the fields.
7. Click OK.
Filtering Lists
To filter a database, follow these steps:
1. Select a cell in the database.
2. Choose the Data➞Filter➞AutoFilter command. Excel adds arrow
buttons to the right side of your field labels in the first row (see
Figure L-6).
3. Click the arrow for the field by which you want to filter records.
Excel displays a drop-down list of the entries in that field.
• If you want to include only a single entry, select the entry from the
list.
• To display only a given top or bottom percent or number of entries,
select Top 10 from the list. Excel displays the Top 10 AutoFilter
dialog box (see Figure L-7). Use it to specify whether you want to
100
Excel 2002 F R O M A TO Z L
view the top or bottom entries in the field and the number or per-
centage of entries you want to view. Click OK when you’re finished.
• To customize the filter, choose Custom from the list. Excel displays
the Custom AutoFilter dialog box (see Figure L-8). Use the first
drop-down list box to select the operator. Use the second drop-down
list box to enter the text or value on which you’re basing the filter.
Optionally, click the And or Or option button to specify another
criteria and use the second row of drop-down list boxes to describe
the second criteria. Click OK when you’re finished.
Subtotaling Lists
To subtotal information in a list, follow these steps:
1. Select a cell in the database, and choose the Data➞Subtotals com-
mand. Excel displays the Subtotal dialog box (see Figure L-9).
101
L Excel 2002 F R O M A TO Z
2. Use the At Each Change In drop-down list box to specify the field
by which you want the subtotals grouped.
3. Select a function from the Use Function drop-down list box. The
Subtotal command not only sums—the usual function since that’s
how you get a subtotal—but also calculates averages, the number
of entries or blank items, standard deviations, and variances.
4. Select check boxes for the fields on which you want the subtotal
operation performed.
5. Select the Replace Current Subtotals check box if you’ve created
subtotals before.
6. Leave the Page Break Between Groups box unchecked.
7. Select the Summary Below Data check box unless you want the
subtotals to appear above rather than below the data they summa-
rize.
8. Click OK. Excel adds subtotal and grand total rows to the database.
To remove subtotals, choose the Data➞Subtotals command and
click Remove All in the Subtotal dialog box.
TIP You can hide and display subtotal groups by clicking the boxes
with the plus and minus signs in the outline area on the left. You
can also click the numbers at the top of the outline area to view
specific levels of the outline.
102
Excel 2002 F R O M A TO Z L
Validating List Entries
Excel can validate new records, thereby ensuring that they fit certain
criteria. This can help prevent someone from entering, for example,
a label (like a name) into a field that should hold a value (such as the
person’s salary).
To set up validation criteria, follow these steps:
1. Select the range of cells to which you want the criteria to apply.
2. Choose the Data➞Validation command and click the Settings tab.
Excel displays the Data Validation dialog box (see Figure L-10).
Figure L-10 The Settings tab of the Data Validation dialog box.
3. Select a type of data from the Allow drop-down list box. After you
select a data type, Excel displays other boxes, which allow you to
constrain the type of data you selected. For example, if you selected
Date, Excel prompts you to select the start- and end-date bound-
aries.
4. Click the Input Message tab, and create a prompt to inform data-
base users which input is allowable. Optionally, enter a short title
for the message in the Title box. Enter the message text in the Input
Message box. If you enter records directly in the database and do
not use a form, Excel displays the input message when you select
a cell to which the validation criteria applies.
103
M Excel 2002 F R O M A TO Z
5. Click the Error Alert tab to customize the pop-up error message
that will appear if a person enters invalid data. Select a symbol from
the Style drop-down list box. Optionally, enter a title for the mes-
sage in the Title box. Enter the message text in the Error Message
box.
NOTE The validation rules apply whether you enter data directly into
the database worksheet or use a form.
Macros
Macros are sequences of keystrokes or commands. You use macros
within Excel to automate repetitive actions.
104
Excel 2002 F R O M A TO Z M
Creating a Macro
To create a macro, follow these steps:
1. Choose the Tools➞Macro➞Record New Macro command. Excel
displays the Record Macro dialog box (see Figure M-1).
2. Enter a name for the macro into the Macro Name box. You can use
up to 80 characters but no spaces or symbols for the name.
3. Indicate whether you’ll run the macro by using the Toolbars but-
ton or by using the Keyboard button:
• Click the Toolbars button to create a toolbar button for the macro.
When Excel displays the Toolbars tab of the Customize dialog
box, click the Commands tab and then the Macros entry in the
Categories list. Then, drag the new macro—Excel will show it
in the Commands list—to the toolbar.
• Click the Keyboard button to create a keyboard shortcut for the
macro. When Excel displays the Customize Keyboard dialog box,
click the Press New Shortcut Key, press the key combination you
want to use to run the macro, and then click Assign.
4. Type the keystrokes and choose the commands that you want your
macro to run and choose.
5. Choose the Tools➞Macros➞Stop Recording command.
Running a Macro
You can run the macros you create in three ways:
• You can click the macro’s toolbar button.
• You can press the macro’s key combination.
105
M Excel 2002 F R O M A TO Z
NOTE Editing and debugging Excel macros, which are written in the
Visual Basic for Applications programming language, is beyond
the scope of this book. If you’re interested in Visual Basic pro-
gramming and you haven’t programmed before, you’ll find it
useful to have a book that describes and discusses Visual Basic.
Macro Security
To adjust Excel’s macro security, choose the Tools➞Options command,
click the Security tab, and then click the Macro Security button. Excel
displays the Security dialog box (see Figure M-3). Use the Security
Level tab’s buttons to tell Excel which macros it can safely run. Use
the Trusted Sources tab to list the macro authors you’ve said you trust
or to remove a macro author from a trusted source.
106
Excel 2002 F R O M A TO Z M
Figure M-3 The Security Level tab of the Security dialog box.
107
M Excel 2002 F R O M A TO Z
Figure M-4 The Margins tab of the Page Setup dialog box.
TIP Check the Horizontally and Vertically boxes to center your printed
workbook’s information on its pages.
108
Excel 2002 F R O M A TO Z M
After you’ve prepared, take the test at a local testing center. You can
learn about any local testing centers from the local telephone direc-
tory or from the Microsoft Web site.
TIP Perhaps the most important skill for passing a MOUS test is
knowing how to use the Office Assistant. You can’t rely on this
tool to answer every question the test asks—there isn’t time—
but as long as you’re comfortable using the Office Assistant, you
should have time to ask it the question or two you can’t answer
on your own.
109
M Excel 2002 F R O M A TO Z
NOTE You aren’t limited to moving ranges and text just within a work-
book. You can move text between Excel workbooks and between
different program’s workbooks—such as from your e-mail pro-
gram to Excel. The only trick is that after you cut the text, you need
to open the workbook into which you want to paste the text
before positioning the insertion point. When you move a range,
the range may appear as a table in the document it’s pasted into.
Moving Objects
To move the selected object, such as a picture, click the Cut toolbar
button, position the cell selector or insertion point at the location where
the object should be moved, and click the Paste toolbar button.
110
Excel 2002 F R O M A TO Z N
Naming Cells and Ranges
In the real world, Excel worksheets can be complex, and remember-
ing, for example, that cell B1 contains the advertising expenses, that
cell B2 contains the bank charges and so on, becomes difficult (see
Figure N-1).
Fortunately, Excel allows you to name cells and ranges and then use
those names in your formulas. Instead of referring to cell B1 in a
formula, you can refer to Advertising if you first name cell B1 Adver-
tising. And if you name cells B1, B2, B3, B4, and B5 Advertising, Bank,
Car, Depreciation, and Equipment, respectively, the following two for-
mulas would be identical:
=B1+B2+B3+B4+B5
=Advertising+Bank+Car+Depreciation+Equipment
To name a cell, select the cell and then type the name into the name
box. The Name box appears just above cell A1 and shows either the
name of the active cell or its cell address (see Figure N-2).
111
O Excel 2002 F R O M A TO Z
Range names must begin with a letter, not a number. They cannot
include spaces, and they shouldn’t look like cell references or func-
tion names.
Range names are useful in formulas and functions, but that’s not their
only use. Once you name a range, you can use the name in place of the
range definition whenever Excel asks you for a range. For example,
if you use the Go To command, you could enter a name instead of a
cell address.
NOTE The Insert➞Name command displays a submenu of commands
useful for creating cell and range names too. For example, if you
select the range A1:B5 in the worksheet shown in Figure N-1 and
choose the Insert➞Name➞Create command, Excel will correctly
name cells B1, B2, B3, B4, and B5 for you.
112
Excel 2002 F R O M A TO Z O
Click the help topic you want to see. The Office Assistant opens the
Excel help file (see Figure O-2).
113
O Excel 2002 F R O M A TO Z
TIP You can also ask the Office Assistant a question by typing the
question directly into the Ask A Question box. The Ask A Ques-
tion box is on the right end of the menu bar and initially shows
the phrase, “Type a question for help.”
OLE
OLE, or object linking and embedding, is the name of the Windows
technology that lets you copy, cut and paste objects between workbooks
and other documents. It is OLE, for example, that lets you copy an
Excel chart and then paste it into a Word document. You don’t have
to know anything special in order to use OLE. And that’s part of the
attractiveness of the technology. If you can copy, cut and paste, you can
use OLE.
SEE ALSO Copying Objects, Embedding Objects, Moving Objects
114
Excel 2002 F R O M A TO Z O
115
O Excel 2002 F R O M A TO Z
Creating an Outline
To create an outline, your first step is to build a worksheet or
rearrange an existing worksheet so it looks like one shown in Figure
O-3. You should include subtotals information in the last row of each
set of detailed information you want to summarize.
To create your outline automatically—and this won’t work unless
Excel can understand your worksheet organization—select the rows
that hold the to-be-outlined information and then chose the
Data➞Group And Outline➞Auto Outline command.
NOTE To determine how Excel outlines a worksheet, choose the
Data➞Group And Outline➞Settings command. Then, use the
Settings dialog box to describe how you’ve organized your
worksheet.
To create an outline manually, select the rows—including the head-
ing row—that should be grouped and choose the Data➞Group And
Outline➞Group command. For example, in Figure O-3, you could
select rows 1 through 5 and choose the Group command to group the
general and administrative expenses.
If you make a mistake in grouping, select the group and then choose
the Data➞Group And Outline➞Ungroup command to remove the
group. Or, choose the Data➞Group And Outline➞Clear Outline
command to remove all of the outline groupings.
116
Excel 2002 F R O M A TO Z P
Page Breaks
Excel automatically breaks workbooks into pages when you print. You
can see where Excel breaks pages by print previewing. To do this, click
the Print Preview button. If you don’t want to use Excel’s automatic
page breaks, you can insert your own manual page breaks. To insert
a manual page break click the cell that shows where the break should
be, and then choose the Insert➞Page Break command. To remove a
manual page, click the cell that shows where the break is and choose
the Insert➞Remove Break command.
SEE ALSO Workbooks
Page Numbers
To insert page numbers in your workbook, add a header or footer that
includes the page number.
SEE ALSO Headers and Footers
Page Orientation
Excel will print your pages in either a portrait orientation or a landscape
orientation. To change the current orientation of the open workbook,
choose the File➞Page Setup command, click the Page tab, and then
click either the Portrait or Landscape buttons (see Figure P-1).
Figure P-1 The Page tab of the Page Setup dialog box.
117
P Excel 2002 F R O M A TO Z
Pasting
When you copy or move some item, your last step is to paste the item
from the clipboard. You typically paste using the Paste toolbar but-
ton, the Edit➞Paste command, the Office Clipboard or, indirectly, by
dragging the mouse.
SEE ALSO Clipboard, Copying Cell Contents, Moving Cell Contents
118
Excel 2002 F R O M A TO Z P
Paste Function see Functions
Paste Options Button
When you copy or cut and then paste a selection, Excel displays a Paste
Options button in your workbook. This button, which looks like the
toolbar’s Paste button, displays a list of pasting options you can use to
tell Excel if it should adjust the pasted selection:
• The Keep Source Formatting option tells Excel to use the same for-
matting for the pasted selection as the copied or cut selection uses.
• The Match Destination Formatting option tells Excel to format the
pasted selection so that it matches the range into which it’s been
pasted.
• The Value And Number Formatting option tells Excel to use only
the numeric formatting of the pasted selection but not other format-
ting (such as boldfacing or italics).
• The Keep Source Column Widths option tells Excel to use the same
column widths in the range with the new pasted selection.
• The Formatting Only option tells Excel to paste only the format-
ting and not the labels, values or formulas.
• The Link Cells option tells Excel to link the pasted selection to the
copied selection.
SEE ALSO Clipboard, Copying Cell Contents
119
P Excel 2002 F R O M A TO Z
Pathname
A pathname describes a file’s location on your computer or network.
Typically, a pathname includes three pieces, the disk or network drive
letter, folder and subfolder information, and the file name and exten-
sion. For example, in the pathname
f:\atoz\excel\excelatoz.doc
the first portion of this pathname, f:, identifies the drive on which the
folders and their files are stored. The second part of the pathname,
\atoz\excel\, names the folder and subfolder where the file is stored.
The atoz part of the pathname identifies the folder, and the excel part
of the pathname identifies the subfolder. The excelatoz.doc identifies
the exact file by giving its file name and the file extension.
NOTE The backslashes separate the drive letter, folder and subfolder
names, and the workbook name.
120
Excel 2002 F R O M A TO Z P
Personalized Menus and Toolbars
Toolbars
By default, Excel personalizes your menus and toolbars. Menu com-
mands and toolbar buttons you’re likely to use or that you’ve recently
used appear. Menu commands and toolbar buttons that you’re not likely
to use or haven’t used in a long time don’t appear.
If you don’t want to use or want to change the way the Excel’s per-
sonalized menus and toolbars work, choose the Tools➞Customize
command and click Options tab (see Figure P-4). Use the Options tab
to change the way the Excel’s personalized menus and toolbars work.
121
P Excel 2002 F R O M A TO Z
• Click the Reset My Usage Data button to tell Excel to start over in
its analysis of which commands you’ve recently or are frequently us-
ing. This analysis is what Excel uses to determine which commands
and toolbar buttons go onto your personalized menus and toolbars.
Pictures
You can add pictures to your Excel workbooks by choosing the
Insert➞Picture➞From File command. When Excel displays the In-
sert Picture dialog box, use the Look In box to select the folder con-
taining the picture files and then double-click the picture image you
want to insert.
NOTE You can copy and move pictures in the same way that you copy
and move other objects in a workbook. You resize a picture object
by clicking the picture to select it and then dragging the selec-
tion handles. To delete a picture, click it and press Delete.
122
Excel 2002 F R O M A TO Z P
123
P Excel 2002 F R O M A TO Z
Figure P-6 The first step of the PivotTable And PivotChart Wizard.
124
Excel 2002 F R O M A TO Z P
5. Specify where you want Excel to put the PivotTable you’re creat-
ing and click Finish. Excel displays the new, empty PivotTable in
the location you specified (see Figure P-7). Excel also displays the
PivotTable toolbar, which you use to lay out and edit the PivotTable.
Figure P-7 The new, empty PivotTable and the PivotTable toolbar.
125
P Excel 2002 F R O M A TO Z
NOTE The box in the upper left corner of the Pivot Table reads Sum Of
Sales $. This is because Excel assumes you want to subtotal and
total sales figures. If you were to drag a label field instead of a
value field into the Data area, Excel would by default count the
occurrences of that label.
You can change the operation performed on the data included in a
PivotTable by selecting a cell in the part you want to change and
clicking the PivotTable toolbar’s Field Settings button. Excel displays
the PivotTable Field dialog box (see Figure P-9). This dialog box’s
options differ slightly depending on the type of data presented in the
part of the PivotTable you selected.
126
Excel 2002 F R O M A TO Z P
TIP To rename a field, enter a new name in the Name text box.
To change the operation performed on items in the field, select an item
from the Summarize By drop-down list box and click OK. For com-
parative operations, click the Options button. You can then list item
data as a percentage of another item, or as a difference from another
item, for example.
You can drag multiple fields to a heading. To add another field to a
PivotTable, just drag the field’s button from the PivotTable toolbar.
For example, you could drag the Season field to the right of the Year
column to sort by year and then by season (see Figure P-10). To re-
move a field from a table, just drag the field outside the table area.
127
P Excel 2002 F R O M A TO Z
NOTE If you don’t see the field buttons on the PivotTable toolbar, click
the Display Fields button.
Editing PivotTables
PivotTables
To pivot a PivotTable, just drag a heading to a different axis. For
example, you can drag the Season field to the column heading to create
a long, narrow table.
128
Excel 2002 F R O M A TO Z P
You can also reorganize a PivotTable by changing the hierarchy of
fields in a heading. For example, if you look back at the PivotTable
in Figure P-10, sales are grouped first by year and then by season
within each year. However, if you drag the Season field to the left of
the Year field, you can group first by season, and then within each
season, by year.
Creating PivotCharts
To create a PivotChart from an existing PivotTable, select a cell in the
PivotTable and click the Chart Wizard button on the PivotTable
toolbar.
You manipulate PivotCharts in much the same way as you manipu-
late PivotTables—by dragging field buttons to different axes (see Figure
P-11).
129
P Excel 2002 F R O M A TO Z
You can also filter a PivotChart’s data to include only certain items
in a field. To do this, click the down arrow on the right side of the
field button and select or clear the check boxes to include or omit items
from the PivotChart. Click OK to redraw the chart.
After you’ve created the PivotChart, you can click the Chart Wizard
button on the PivotTable toolbar again to start the Chart Wizard and
customize the PivotChart. Using the Chart Wizard, you can specify
such items as chart type, axis titles, and legend placement.
NOTE If you haven’t created a PivotTable and are instead more inter-
ested in creating a PivotChart, you can create the PivotChart using
the PivotTable and PivotChart Wizard without specifying the
layout of a PivotTable.
130
Excel 2002 F R O M A TO Z P
Point
You specify font size in points because points are the standard unit of
measurement in typography. Seventy-two points equal one inch (see
Figure P-12). Twelve points equals one pica.
A
Figure P-12 A letter in 72-point type.
131
P Excel 2002 F R O M A TO Z
132
Excel 2002 F R O M A TO Z P
Privacy Options
You can limit the amount of secondary information stored with a
workbook by turning on Excel’s privacy options and available to people
looking at the unopened workbook file. To do this, choose the
Tools➞Options command, click the Security tab, and then check the
Remove Personal Information From This File On Save box. By check-
ing this box, you tell Excel not to provide summary information about
the workbook when someone looks at the file’s properties.
SEE ALSO Password Protecting a Workbook
Program Errors
Excel program errors will occur. When this happens, either Excel will
stop responding, or hang, or Excel will abort and stop. And when any
of these things happens, you will typically lose some of your recent
work.
133
P Excel 2002 F R O M A TO Z
Restarting Excel
If Excel has aborted, you can restart the program in the same way that
you start Excel. For example, click the Start button, point to Programs,
and then click on Microsoft Excel.
When the Excel program stops responding, you may be able to re-
cover the application. To do this, click the Start button, point to
Programs, Microsoft Office Tools, and then click the Microsoft Office
Application Recovery item. When Windows displays the list of Of-
fice programs, select the Excel program and click either the Recover
Application or Restart Application button.
NOTE If you just want to close the unresponsive program, and lose
recent changes to the files, click the Start button, point to Pro-
grams, Microsoft Office Tools, and click the Microsoft Office
Application Recovery item, and then click End Application.
Recovering Documents
When Excel restarts or recovers after failing or stalling, you need to
review the documents listed in the Document Recovery pane. These
are the documents that were open when the Excel program error
occurred. You’ll want to review the recovered documents to find which
are worth salvaging, and then save those.
NOTE In the Document Recovery pane, a file labeled as “recovered”
includes more recent changes than the file labeled as “original.”
To open a recovered workbook, point to the workbook in the Docu-
ment Recovery pane, click the arrow button next to the workbook, and
click Open.
To save a workbook, point to the workbook, click the arrow button
next to the workbook, and click Save As.
SEE ALSO Documents
Program Window
The program window is the rectangle in which the Excel program
displays its information. The Microsoft Excel title bar and menu bar
appear at the top of the program window. The toolbar or toolbars,
located just below the menu bar, provide a series of buttons that al-
low for faster selection of frequently used menu commands.
134
Excel 2002 F R O M A TO Z R
Protection
You can format ranges as protected to so that you or somebody else
doesn’t inadvertently change cell contents.
To format a range as protected, take the following steps:
1. Select the range you want to protect.
2. Choose the Format➞Cells command, click the Protection tab, and
check the Locked box (see Figure P-15).
Figure P-15 The Protection tab of the Format Cells dialog box.
Recycle Bin
When you delete an Excel workbook stored on one of your computer’s
fixed local disk drives, Windows doesn’t immediately erase the work-
book from the disk. Instead, Windows moves the workbook to the
Recycle Bin folder. Eventually, Windows removes the “deleted” work-
book from the Recycle Bin (to make room for other, newly “deleted”
files) but until that time you can recover the Excel workbook by
opening the Recycle Bin folder, selecting the workbook, and choos-
ing the File➞Restore command.
135
R Excel 2002 F R O M A TO Z
Ranges
A range is a rectangle of worksheet cells (see Figure R-1). The small-
est range is a single cell. The largest range is an entire worksheet.
To select a range, drag the mouse from one corner of the range to the
opposite corner.
You can also specify or reference a range selection by entering the cell
addresses of opposite corners separated by the colon. For example, you
can reference the range that uses the corner cells A1 and D3 using as
A1:D3.
Recalculation
Excel automatically updates the formulas and recalculates their results.
For example, if you change the value in cell C1 from 500 to 600, Excel
recalculates any formulas that use the value stored in cell C1.
In simple worksheets with a few formulas, recalculation takes place
so quickly you won’t even be aware it’s occurring. In larger worksheets
136
Excel 2002 F R O M A TO Z R
with hundreds or thousands of formulas, recalculation may seem
slower. The mouse pointer changes to the hourglass symbol when Excel
is busy recalculating.
If you don’t want Excel to automatically recalculate formulas as you’re
working, choose the Tools➞Options command and click the Calcu-
lation tab. Then click the Manual option button under Calculation,
and click OK. The word Calculate appears on the status bar when your
worksheet formulas need to be recalculated. You can force recalcu-
lation by pressing the F9 key.
SEE ALSO Formulas
Figure R-2 The Replace tab of the Find And Replace dialog box.
Enter the label, value or formula you want to find in the Find What
text box and the label, value, or formula with which you want to
replace it in the Replace With text box.
137
R Excel 2002 F R O M A TO Z
Click Find Next and Replace to search for and replace entries one by
one. Or click Replace All to have Excel automatically find and replace
all occurrences of the entry without requesting verification from you.
Click Close when you’re finished.
NOTE If you click the Options button Excel adds several boxes and
buttons to the Find And Replace dialog box, which you can use
to control how Excel searches the workbook. For information on
these options, refer to the Finding Cell Contents entry.
138
Excel 2002 F R O M A TO Z R
To review changes, choose the Tools➞Track Changes➞Accept Or
Reject Changes command. Excel displays the Accept or Reject
Changes dialog box, which you use to see each change and then decide
whether to accept or reject the change. (see Figure R-4).
Rotating Objects
You can rotate, or spin, many of the objects you place in an Excel
workbook. To do so, click the object to select. Then, drag the green
selection handle (see Figure R-5).
139
R Excel 2002 F R O M A TO Z
Rows
The left edge of the workbook window identifies each row in your
worksheet using numbers. An Excel worksheet can have up to 65,536
rows.
Normally, Excel automatically increases row height when you increase
point size, but you can perform the same trick on rows by double-
clicking the lower border of a row heading. This expands the row to
the smallest height possible that still fits all entries within that row.
To specify exact row height, select any cell in that row and choose the
Format➞Row➞Height command. Enter the height in points in the
Row Height text box, and click OK.
To hide a row, select any cell in the row and choose the
Format➞Row➞Hide command. To redisplay a hidden row, select a
range that includes cells in the rows above and below the hidden row.
Then choose the Format➞Row➞Unhide command.
140
Excel 2002 F R O M A TO Z S
Saving Workbooks see W
Workbooks orkbooks
Workbooks
Scenarios
Scenarios let you perform what-if analysis by changing several
worksheet input values at a time and exploring the effect on large
numbers of formulas.
Creating a Scenario
To use Scenario Manager, follow these steps:
1. Choose the Tools➞Scenarios command.
2. When Excel displays the Scenario Manager dialog box, click the
Add button so that Excel displays the Add Scenario dialog box (see
Figure S-1).
141
S Excel 2002 F R O M A TO Z
5. Enter the input value you want to use for each scenario value. If
you’ve selected more input cells than will fit within the Scenario
Values dialog box, you’ll need to scroll through the list. Click OK
when you finish. Excel redisplays the Add Scenario dialog box.
Repeat steps 2 through 5 to create additional scenarios. After you
complete step 5 for the last time, click OK.
Using a Scenario
To use a scenario, follow these steps, choose the Tools➞Scenarios
command. When Excel displays the Scenario Manager dialog box,
which will now show the newly created scenario, select the scenario
you want to explore by clicking its name in the Scenarios list box (see
Figure S-3). Then, click the Show button. Excel inputs the scenario
values in your workbook and recalculates its formulas. You can repeat
this step to experiment with or explore other scenarios.
142
Excel 2002 F R O M A TO Z S
Editing a Scenario
To remove an existing scenario, choose the Tools➞Scenarios com-
mand so that Excel displays the Scenario Manager dialog box. Then
select the scenario you want to delete, and click Delete.
To edit an existing scenario, choose the Tools➞Scenarios command.
Select the scenario you want to edit and click the Edit button so that
Excel displays the Edit Scenario dialog box. Edit the scenario name
by editing the contents of the Scenario Name text box. Change the
scenario inputs by editing or replacing the worksheet range or
worksheet ranges shown in the Changing Cells text box of the Edit
Scenario dialog box. Click OK. When Excel displays the Scenario
Values dialog box, use it to change the scenario’s input values.
143
S Excel 2002 F R O M A TO Z
Summarizing Scenarios
To create summary of scenarios either on a separate worksheet or using
a PivotTable, follow these steps:
1. Choose the Tools➞Scenarios command. Excel displays the Sce-
nario Manager dialog box.
2. Click the Summary button. Excel displays the Scenario Summary
dialog box, which asks whether you want to display a scenario sum-
mary or a PivotTable. Select the button that corresponds to the type
of scenario summary you want.
3. Specify which Result cells you want to see in the summary—these
are the cells with the formulas that change as you explore differ-
ent scenarios—by selecting them with the mouse. You can select
nonadjacent cells by holding down the Ctrl key as you click. Click
OK when you finish. Excel adds a scenario summary to your work-
book that shows the scenario values and the selected Result cells
(see Figure S-4).
144
Excel 2002 F R O M A TO Z S
Merging Scenarios from Other
Workbooks
If two workbooks use the same set of input cells, you can copy, or
merge, a scenario from one open workbook to another open work-
book. To merge scenarios, open and activate the workbook to which
you’ll add a scenario. Choose the Tools➞Scenarios command and
click the Merge button. Use the Book list box to select the workbook
from which you want to retrieve a scenario, and use the Sheet list box
to select the scenario you want to retrieve. Then click OK. Excel
merges the scenarios from the source workbook into the active work-
book. You can now use these scenarios in the same way as those you
create from scratch.
Scientific Notation
If a value is too large to fit into a single cell, Excel either increases the
cell width or displays the cell contents using scientific notation. The
number 1234567890, for example, may appear as 1.23456E+9. Like-
wise, the number .0000000001 may appear as something like 1E-10.
Excel doesn’t discard the extra digits if they don’t fit in the cell. If you
select the cell, you can see all of the digits in the formula bar. One
exception to this rule concerns extremely large or extremely small
values. Excel uses only the first 15 digits of a value. If you enter a value
that uses more than 15 digits, Excel rewrites the value using only 15
digits. If the value uses more than 20 digits, Excel rewrites the value
using scientific notation. If the value uses more than 15 digits but less
than 20 digits, Excel replaces the sixteenth digit through the twen-
tieth digit (counting from left to right) with zeros and then drops the
zeros if they aren’t significant. For example, the value
12345678901234567890 is rewritten to 12345678901234500000. And
the value .12345678901234567890 is rewritten to .123456789012345.
SEE ALSO Values
145
S Excel 2002 F R O M A TO Z
Scrolling
You have several methods for scrolling through the Excel workbook
shown in the document window:
• You can use the workbook window’s scroll bar. This scroll bar works
like other scroll bars in Windows. You can click the arrows at ei-
ther end of the scroll bar to scroll in the direction of the arrow. You
can drag the scroll bar marker in the direction you want to scroll.
You can also click above or below the scroll bar marker to move the
marker in the direction you click.
• You can use the up and down arrow keys to move one line in the
direction of arrow and the Page Up and Page Down keys to move
one page up or down.
• You can use the Edit➞Go To command to jump to a range or cell
in a workbook.
SEE ALSO Go To
Selecting Objects
Typically, you can select any object by clicking the object with the
mouse. Note, though, that if an object is created by another program
(an Excel chart, say) or by an applet (a piece of WordArt, for example),
you may need to double-click the object in order to simultaneously open
and select the object.
Selecting Ranges
You can select ranges with the mouse or the keyboard. To use the
mouse, drag the mouse between the range’s opposite corners. To use
the keyboard, first move the cell selector to one of the corners, then
hold down the Shift key and press the arrow keys or the Page Up and
Page Down key to highlight the range you want.
NOTE To select multiple ranges using the mouse, hold down the Ctrl
key as you drag to make your selections.
146
Excel 2002 F R O M A TO Z S
Series see Charts
Shading see Formatting Cells
Shadows
To add shadows to the selected range, choose the Format➞Font com-
mand, click the Font tab, and check the Shadow box.
SEE ALSO Fonts
Figure S-5 The Editing tab of the Share Workbook dialog box.
147
S Excel 2002 F R O M A TO Z
The Advanced tab of the Share Workbook dialog box provides but-
tons and boxes you use to describe how Excel monitors and reconciles
changes to the workbook (see Figure S-6). The Track Changes but-
tons, for example, let you tell Excel for how long it should keep a
record of changes. The Update Changes buttons let you specify when
Excel should save the workbook changes. The Conflicting Changes
Between Users buttons let you specify which changes take precedence
if changes conflict.
Figure S-6 The Advanced tab of the Share Workbook dialog box.
Sheets
Excel uses separate sheets for worksheets and charts. To move to
another sheet, click its tab. To rename a sheet, double-click the tab
and then type the new sheet name. To insert a new worksheet, choose
the Insert➞Worksheet command. To insert a new chart sheet, use the
ChartWizard to create a new chart and indicate you want to place the
chart on its own sheet. To delete a sheet, right-click its tab and choose
Delete from the shortcut menu.
148
Excel 2002 F R O M A TO Z S
TIP When you right-click a sheet tab, Excel displays a shortcut menu
of several useful commands for working with sheets, including
commands for renaming a sheet, moving or copying the sheet,
and coloring the sheet’s tab.
Shortcut Menus
Recent Microsoft programs, including Microsoft Excel, make use of
shortcut menus. A shortcut menu lists all of the common commands
for working on a particular object or item. To display a shortcut menu,
right-click the object or item.
Sizing Objects
Usually, you can size an object, such as a picture, a piece of WordArt,
or a drawing object, by clicking the object to select it and then drag-
ging the selection handles.
SEE ALSO Clip Art, Pictures, WordArt
Smart Tags
Tags
Excel can recognize some of the information in your workbook—
typically data such as people’s names and phone numbers. When Excel
does recognize something, it marks the information with a smart tag,
which appears as purple underline. If you point to the smart tag, Excel
displays the Smart Tab Actions button which you can click to display
a menu of commands you can choose to use the data in same way. A
person’s name that Excel smart tags, for example, could be added to
names and address line maintained in Microsoft Outlook. Smart tags
are useful, then, because they let you do things in Excel that normally
you would have to open another program to do.
149
S Excel 2002 F R O M A TO Z
Figure S-7 The Smart Tags tab of the AutoCorrect dialog box.
Solver
Excel’s Solver tool lets you solve optimization-modeling problems, also
commonly known as linear programming programs. With an optimi-
zation-modeling problem, you want to optimize an objective function
but at the same time recognize that there are constraints, or limits.
Using Solver for optimization modeling requires a lengthy discussion
and therefore isn’t covered here. Refer to a large Excel reference if you
want more information, such as the MBA’s Guide to Microsoft Excel
2002 (Redmond Technology Press 2001).
Put the headset on and position the microphone so that it’s about an
inch from your mouth. Click Configure Microphone and then Next.
Windows will instruct you to read some text to adjust the microphone
volume and then, when that’s done, Windows instructs you to read a
simple sentence, “This papaya tastes perfect.” Windows then plays a
recording of you saying “This papaya tastes perfect.” If the recording
sounds okay, you’re done and click Finish. If the recording sounds
funny, move the microphone away from or close to your mouth.
151
S Excel 2002 F R O M A TO Z
NOTE If you click the Microphone button on the Language bar and
haven’t yet configured the Microphone, you’ll be prompted to
walk through the steps for both configuring the microphone and
training speech recognition to understand your voice. In this
case, you don’t need to use the Control Panel’s Speech tool to
get to the Speech Properties dialog box. The Language bar gets
you there.
After you configure the microphone, you need to train the Speech
Recognition tool to recognize your voice. To do this, click Start, point
to Settings and choose Control Panel. Then, double-click the Speech
tool and Click the Train Profile button, which appears on the Speech
Properties dialog box. Windows displays the first Voice Training
dialog box (see Figure S-9). Click Next to begin.
To train the speech recognition tool to recognize your speech, you first
answer questions about your age and sex. Then, you read a short
description of speech recognition technology. As you read the short
description, Speech Recognition highlights words as you say them and
it recognizes them. Make sure that Speech Recognition does this. If
speech recognition doesn’t recognize a word, try speaking more slowly
and clearly. If you can’t get Speech Recognition to understand your
pronunciation of a word, click the Skip Word button.
152
Excel 2002 F R O M A TO Z S
NOTE The reading you do to train Speech Recognition is very short. You
can finish it in about five minutes. However, if you need to take
a break, click the Pause button.
153
S Excel 2002 F R O M A TO Z
154
Excel 2002 F R O M A TO Z S
< Less than
^ Caret
[ Bracket or Left bracket or Open bracket
] End bracket or Right bracket or Close
bracket
{ Open brace or Curly brace or Left brace
} Close brace or End curly brace or Right
brace
( Open parenthesis or Left paren
) Close parenthesis or Right paren
“ Quote or Open quote or Close Quote
‘ Single quote or Open single quote or Close
single quote
155
S Excel 2002 F R O M A TO Z
Spelling
You can also use the Tools➞Spelling command to check spelling in
your workbooks. When you choose the command, Excel displays the
Spelling dialog box (see Figure S-10). Excel identifies misspelled
words in the Not In Dictionary box. In the Suggestions box, Excel
suggests solutions. To make a suggested fix, double-click it. To ignore
the error, click the Ignore button. To add the word to a custom dic-
tionary because it is correctly spelled and you will use it again and
again in your documents, click the Add To Dictionary button.
156
Excel 2002 F R O M A TO Z S
The Options button on the Spelling And Grammar box displays the
Spelling dialog box. (You can also get to this tab of options by choosing
the Tools➞Options command and clicking the Spelling tab.)
• Use the Dictionary Language box to select the dictionary you want
to use for checking the spelling.
• Select the dictionary that Excel should add new words to using the
Add Words To box.
• Check the Suggest From Main Dictionary Only box to tell Excel
to only use the main Excel dictionary for spell checking.
• Check the Ignore Words In UPPERCASE box to tell Excel it
should ignore words that use all uppercase letters (presumably be-
cause these are acronyms or abbreviations that won’t be in the dic-
tionary).
• Check the Ignore Words With Numbers to tell Excel that it should
ignore words that combine letters and numbers (presumably because
you’re using things like product names or serial numbers that won’t
be in the dictionary).
• Check the Ignore Internet And File Addresses box to tell Excel it
should ignore Internet URLs and file pathnames when it checks
spelling.
SEE ALSO Dictionary
157
S Excel 2002 F R O M A TO Z
Status Bar
At the bottom of the program window, Excel displays a status bar. This
bar provides information such as whether the worksheet needs to be
recalculated and whether Excel is recording a macro.
Stopping Excel
To stop the Excel program, choose the File➞Exit command or click
the Excel program window’s Close box. The Close box is the small
square marked with an “X” in the upper left corner of the program
window.
SEE ALSO Starting Excel
158
Excel 2002 F R O M A TO Z S
Styles
A style is a collection of formatting settings. By applying the style, you
make all of the formatting changes included in the style.
Applying Styles
To apply a style to the selected range, choose the Format➞Style
command so that Excel displays the Style dialog box (see Figure
S-11). Then, select the style from the Style Name box and click OK.
You can also apply a style by selecting a range that already has the
style, clicking the Format Painter tool, and then selecting the range
to which you want to apply the style.
Creating a Style
To create a style, choose the Format➞Styles command. When Excel
displays the Styles dialog box, enter a name for the style into the Style
Name box, check the boxes that correspond to the type of formatting
you want to include in the style, and then click the Add button.
Modifying a Style
To modify a style, choose the Format➞Styles command, select the
style from the Style Name box, and click the Modify button. When
Excel displays the Format Cells dialog box, use it to make your
changes.
159
T Excel 2002 F R O M A TO Z
Deleting a Style
To delete a style, choose the Format➞Styles command, select the style
from the Style Name box, and click the Delete button.
SEE ALSO Formatting Cells
160
Excel 2002 F R O M A TO Z T
161
T Excel 2002 F R O M A TO Z
5. Once you finish with the first Text Import Wizard dialog box, you
click Next. Excel then displays the second Text Import Wizard
dialog box (see either Figure T-2 or Figure T-3). If you’re import-
ing a fixed-width file, Excel displays the dialog box shown in Fig-
ure T-2. You use this dialog box to verify how Excel breaks the text
file into columns. You can create new break lines by clicking. You
can remove an existing break line by double-clicking. You can also
move an existing break line by dragging.
Figure T-2 The second Text Import Wizard dialog box if you’re im-
porting a fixed-width file.
162
Excel 2002 F R O M A TO Z T
Figure T-3 The second Text Import Wizard dialog box if you’re im-
porting a delimited character file.
163
T Excel 2002 F R O M A TO Z
Excel also guesses about the default formatting that it should use
for each column of the text file you import. You should verify that
each column uses the best default formatting. To change a column’s
format, click the column header and then the appropriate Column
Data Format button. If you don’t want to import a column, click it
and then click the Do Not Import Column option button.
7. Click Finish and Excel imports the text file into a new, blank, open
workbook. At this point, you’re ready to begin cleaning up the data
so you can start working with it.
SEE ALSO Workbooks
Text Formulas
Excel lets you create formulas that manipulate text strings. Most of
these text formulas use functions. For example, the function
=PROPER(“winston churchill”) capitalizes the first letter of each word
included in the text argument, returning Winston Churchill. And the
function =REPT(“Bora”,2) repeats the first text argument the num-
ber of times specified in the second argument, returning BoraBora.
Excel also supplies a concatenation operator, &, that allows you to
concatenate, or combine, text enclosed in quotation marks. For example,
the formula =“Microsoft”&“ ”& “Excel” combines the word Microsoft,
a space, and the word Excel into the text string Microsoft Excel.
SEE ALSO Formulas
164
Excel 2002 F R O M A TO Z T
Toolbars
Excel provides nineteen different toolbars. Each supplies a set of
clickable buttons and boxes you can use to easily choose commands
and use Excel features. The standard toolbar, for example, includes
buttons for printing, spelling, and undoing.
Identifying Toolbar T
Toolbar ools
Tools
To identify a toolbar button or box, point to the tool. Excel displays
a pop-up box, called a tool tip or screentip, with the tool’s name.
Customizing a Toolbar
Toolbar
To add buttons to a toolbar, follow these steps:
1. Make sure the toolbar is currently visible.
2. Choose the Tools➞Customize command and click the Commands
tab (see Figure T-5).
165
T Excel 2002 F R O M A TO Z
3. Select the command category from the Categories list box that
includes the command you want to add to a toolbar.
4. Scroll through the Commands list box. When you see the command
you want to add to the toolbar, drag it to the toolbar.
NOTE You can also customize a toolbar by clicking on the arrow but-
ton at the very right end of the toolbar, choosing the Add Or
Remove buttons command, and then the name of the toolbar.
For example, to customize the Formatting toolbar, click the arrow
button and choose Add Or Remove Buttons and then Format-
ting. Excel displays a complete list of the buttons commonly
placed on the toolbar. To add a button, select it from the list.
To remove a button from a toolbar, follow these steps:
1. Click on the arrow button at the very right end of the toolbar.
2. Choose the Add Or Remove buttons command, and then the name
of the toolbar. For example, to customize the Formatting toolbar,
click the arrow button, choose Add Or Remove Buttons and then
Formatting.
166
Excel 2002 F R O M A TO Z T
3. When Excel displays a complete list of the buttons commonly placed
on the toolbar, select the button you want to remove. Excel iden-
tifies which buttons are already on the toolbar by marking them
with a checkmark.
SEE ALSO Personalized Menus and Toolbars
167
U Excel 2002 F R O M A TO Z
168
Excel 2002 F R O M A TO Z V
Undoing Mistakes
If you make a mistake while entering data or editing your worksheet,
you can use the Undo toolbar button to reverse the effects of your last
actions. You can also undo the Undo operation by clicking the Redo
toolbar button. To reverse the effects of a series of most recent actions,
click the arrow beside the Undo toolbar button and select multiple
actions from the list. To redo a series of last actions, click the arrow
beside the Redo toolbar button and select multiple actions from the
list.
URLs
URL is an acronym that stands for Uniform Resource Locator. The
Internet uses URLs as Internet addresses. A URL typically includes
four components: the protocol, the server, the path, and the file name.
For example, in the URL below, http:// is the protocol,
www.redtechpress.com is the server, /tocs/ is the path, and mbaexcel.pdf
is the file.
http://www.redtechpress.com/tocs/mbaexcel.pdf
NOTE http:// is one of the protocols used to display Web pages.
You can use URLs when you save and open files if you have permis-
sion to use the Web server. To do this, simply enter the complete URL
into the File Name box on the Save As or Open dialog box. The Web
server you’re referencing will probably ask you for a password.
SEE ALSO File Extensions, File names, Pathnames
Values
Values are numbers you want to add, subtract, multiply, divide, or
otherwise manipulate in formulas. In a budgeting worksheet, for
example, you would enter the budgeted amounts as values (see
Figure V-1).
169
V Excel 2002 F R O M A TO Z
To enter values, use the ten number keys either on the main keyboard
or on the numeric keypad. To use the numeric keypad, the Num Lock
key must be selected. Use the period key to show decimal places and
the hyphen key to identify negative values.
To enter values, use the same three-step process as you do to enter
labels. For example, to enter the value 3000 shown in cell B2, move
the cell selector to the desired cell, type the value, and set the value
in the cell—by pressing the Enter key, clicking the Enter button on
the formula bar, or moving to another cell.
SEE ALSO Labels, Scientific Notation
Views
Excel displays your workbooks either in a Normal View or a Page
Break View.
To switch from one view to another, choose the View➞Normal View
or the View➞Page Break View command.
170
Excel 2002 F R O M A TO Z W
NOTE The Views➞Custom Views command lets you create custom views
of a workbook based on printing settings, hidden rows and
columns, and first filters.
Visual Basic
Microsoft builds a programming language, called Visual Basic for
Applications, into the Excel program. When you create a macro, for
example, what Excel actually does is write a Visual Basic program to
perform the recorded actions.
SEE ALSO Macros
171
X Excel 2002 F R O M A TO Z
Figure W-1 The Save As dialog box as it appears when you save a
workbook as a web page.
Check the Add Interactivity box to tell Excel that it should turn the
Excel workbook into a Web page that uses Web spreadsheet compo-
nents. A Web page that uses Web spreadsheet components lets some-
one viewing the workbook web page to actually work with the
spreadsheet. For example, a Web page browser can change inputs and
see formula results updated automatically.
NOTE In order for a Web spreadsheet component to work, the user
needs to possess the appropriate Microsoft Office license.
172
Excel 2002 F R O M A TO Z X
TIP To freeze a pane so that it scrolls whenever you scroll the
workbook’s other panes, choose the Window@—>Freeze com-
mand. To unfreeze a pane so it doesn’t scroll, choose the
Window➞Unfreeze command.
WordArt
You can turn text into a graphics object. To do this, you use the WordArt
applet. WordArt, like Microsoft Graph, is a small miniprogram, or
applet, that comes with Office programs including Microsoft Excel.
This window shows you the various ways you can display the selected
text as a graphics image. You select a Word Art Style, click OK, and
then type your text into the next dialog box that Word Art displays (see
Figure W-3).
173
W Excel 2002 F R O M A TO Z
The Edit WordArt Text dialog box provides buttons and boxes you
can use to format your WordArt object:
• Use the Font list box to select the font you want to use. You can click
the button at the right end of the Font list box to display a list of
available fonts. The Text box shows you how your font selection
looks—this is the preview area beneath the Font and Size boxes and
the Bold and Italic buttons.
• Use the Size box to specify the point size you want WordArt to use
for the text.
• Click the Bold and Italic buttons that appear to the right of the Font
and Size boxes to boldface or italicize the text. The Bold and Italic
buttons are toggle switches: To un-bold and un-italicize the text,
click the buttons again.
After you specify the font, size, and any boldfacing and italicization,
click the OK button. WordArt adds the WordArt object to the work-
book (see Figure W-4).
174
Excel 2002 F R O M A TO Z W
NOTE You can double-click the new WordArt image to redisplay the Edit
WordArt window.
175
W Excel 2002 F R O M A TO Z
Editing WordArt T
WordArt ext
Text
The Edit Text tool, available on WordArt toolbar, redisplays the Edit
WordArt Text window so you change the font, size, boldface, and
italics specifications for the WordArt object or so you can edit the text
used to create the WordArt object.
NOTE The WordArt toolbar also provides an Insert WordArt tool which
you can use to add another new WordArt object to your work-
book.
NOTE To remove the WordArt toolbar, simply click the workbook, Ex-
cel removes the WordArt toolbar. If you later want to make ad-
ditional changes to the WordArt object, simply click the WordArt
object again. Excel reopens the WordArt toolbar and you can use
its buttons to make whatever changes you want.
176
Excel 2002 F R O M A TO Z W
The Format WordArt button on the WordArt toolbar lets you change
the color used for the WordArt object; the line, color, and style used
to draw the WordArt object; and the size and layout of the WordArt
object. When you choose the Format WordArt button, WordArt
displays the Format WordArt dialog box (see Figure W-6). You can
use the Format WordArt dialog box’s Colors and Lines tab, for ex-
ample, to change, predictably, the color and lines used to create the
WordArt object. (To make changes, simply use the tab’s drop-down
list boxes to select different colors, line styles, and so on.)
Figure W-6 The Colors And Lines tab of the Format WordArt dialog
box.
You can use the Format WordArt dialog box’s Size tab to change the
dimensions of the WordArt object (see Figure W-7). The other tabs
in the Format WordArt dialog box work in a similar fashion.
177
W Excel 2002 F R O M A TO Z
Figure W-7 The Size tab of the Format WordArt dialog box.
178
Excel 2002 F R O M A TO Z W
The WordArt Same Letter Heights tool lets you tell WordArt that
each letter in the WordArt graphics image should be the same height.
The WordArt Same Letter Heights button is a toggle switch. If you
click it again, WordArt resizes the letter heights back to their origi-
nal sizes.
The WordArt Vertical Text toolbar lets you flip the WordArt text so
that it’s vertical rather than horizontal. WordArt also adds selection
handles after you click the tool. You can use these selection handles
to rotate the object.
The WordArt Alignment button displays a menu of text-alignment
options (see Figure W-9). You simply select the menu command that
refers to the text alignment you want to use for text in the WordArt
object.
The WordArt Character Spacing tool, the last one on the toolbar
displays a menu of character-spacing commands (see Figure W-10).
You choose the character-spacing command that refers to the type of
spacing you want for the text that makes the WordArt object.
179
W Excel 2002 F R O M A TO Z
Workbooks
Key to comfortably using Excel is knowing how to work with Excel’s
workbooks. The paragraphs that follow briefly describe most of the
common workbook management tasks.
180
Excel 2002 F R O M A TO Z W
181
W Excel 2002 F R O M A TO Z
182
Excel 2002 F R O M A TO Z W
NOTE The Templates On My Web Sites and Templates On
Microsoft.com hyperlinks, also available in the New Workbook
pane, let you retrieve Excel templates over the Internet and Web.
Opening a Workbook
Workbook
You have several convenient choices for opening documents in Excel.
• Documents menu. If a workbook is listed under the Documents
menu (displayed when you click the Start button and point to the
Documents command) you can open the workbook by clicking it
on the Documents menu.
• New Workbook pane. When you start Excel, the New Workbook
task pane lists workbooks you’ve recently used and provides
hyperlinks you can click to create a new workbook.
• File menu list. If a workbook is one you’ve recently opened using
Excel, the workbook may be listed at the bottom of the File menu.
In this case, you can open the workbook by choosing it from the File
menu.
• File➞➞ Open command. You can choose the File➞Open command
to display the Open dialog box (see Figure W-14). To use the Open
dialog box, first select the folder containing your workbook from
the Look In list box. Then, when Excel lists the documents in that
folder, scroll through the list until you find the one you’re looking
for. When you see it, double-click it to open it.
183
W Excel 2002 F R O M A TO Z
• Open toolbar button. You can also click the Open toolbar button
to display the Open dialog box (see Figure W-14). Again, to use the
Open dialog box, select the folder containing your workbook from
the Look In list box, scroll through the list of documents until you
find the one you’re looking for, and then double-click that work-
book to open it.
• My Computer or Windows Explorer. If you use the My Computer
window or Windows Explorer to display the folder containing your
workbook, you can double-click the workbook to open it (see Figure
W-15). When you open an Excel workbook, Windows first starts
Excel and then instructs Excel to open the workbook.
184
Excel 2002 F R O M A TO Z W
Closing a Workbook
Workbook
To close a workbook, choose the File➞Close command or click the
workbook window’s Close box.
NOTE If you’ve made changes to a workbook that haven’t been saved,
Excel asks if you want to save your workbook or lose your
changes.
TIP You can close all the open workbooks by holding down the Shift
key and then choosing the File➞Close All command.
Saving a Workbook
Workbook
To save a workbook, choose the File➞Save command or click the Save
toolbar button.
The first time you choose the File➞Save command or click the Save
toolbar button for new workbook, Excel displays the Save As dialog
box so you can name the file and specify where it should be saved (see
Figure W-16). To use the Save As dialog box, follow these steps:
185
W Excel 2002 F R O M A TO Z
1. Use the Save In box to pick the folder you want to save the work-
book in.
2. Enter the name you want to use for the workbook into the File
Name box.
3. (Optional) If you want to use this workbook with other programs
or share the workbook with someone who doesn’t have Excel, open
the Save As Type list box and select a file format.
NOTE Excel’s workbook file format is readable by many other programs,
but if you want to be sure that a workbook can be read by almost
any program select the Text (Tab Delimited) file type.
Re-saving a Workbook
Workbook
The subsequent times you save a workbook—the times after you’ve
provided a name and specified a folder location—you also save the
workbook using the File➞Save command or the Save toolbar button.
When you re-save a workbook, however, Excel doesn’t display the
Save dialog box. It assumes you want to use the same file name and
location.
186
Excel 2002 F R O M A TO Z W
Renaming and Relocating a Workbook
Workbook
To name a workbook or relocate a workbook you’ve already saved,
choose the File➞Save As command. When Excel displays the Save
As dialog box, rename or relocate the workbook.
Deleting a Workbook
Workbook
To delete a workbook, use the My Computer window or the Win-
dows Explorer to display the folder holding the workbook. Then
right-click the workbook and choose the Delete command (see Figure
W-17).
Undeleting a Workbook
Workbook
You may be able to undelete, or restore, a workbook you’ve previously
deleted. Windows sets aside a percentage of your hard disk space to
store recently deleted files. To see which deleted files Windows is still
storing, double-click the Recycle Bin icon, which appears on the
Windows Desktop. Windows opens the Recycle Bin window, which
lists all the recently deleted files (see Figure W-18). Scroll through
the list. If you can find your workbook, right-click it and choose Re-
store from the shortcut menu.
187
W Excel 2002 F R O M A TO Z
m
nu.e
Exporting a Workbook
Workbook
To export an Excel workbook, save the workbook using the
File➞Save As command but use the Save As Type list box to choose
a file format that other programs can use. The trick, by the way, is to
use a file format that retains as much workbook information as pos-
sible. That means, if possible, you want to use the standard format for
a recent version of Microsoft Excel. In a pinch, you can also use the
Text (Tab Delimited) format, which returns most workbook infor-
mation including labels, values, and formulas. In a worst case situa-
tion, you can use the plain text format, which lets you export the text
of your workbook but not anything else.
Importing a Workbook
Workbook
To import a workbook into Excel—say a workbook someone created
using another spreadsheet program—just open the workbook. Excel
comes with a large set of filters that let it open most popular spread-
sheet documents.
188
Excel 2002 F R O M A TO Z W
Printing a Workbook
Workbook
To print a workbook, click the Print toolbar button or choose the
File➞Print command. If you click the Print button, Excel prints your
workbook using the default, or usual, print settings. If you choose the
Print command, Excel displays the Print dialog box (see Figure W-19).
Use the Print dialog box’s buttons and boxes to specify exactly how
Excel should print:
• Choose the printer you want to print the workbook from the Name
list box, if the Name box doesn’t already show the printer.
• Use the Print Range buttons to indicate whether you want to print
all the pages in the workbook, just the current page, or some set of
pages.
• Use the Copies boxes to specify the number of copies you want
printed and whether copies should be collated.
• Use the Print What list box to indicate whether you want to print
the current selection, the active worksheet or the entire workbook,
the workbook.
189
W Excel 2002 F R O M A TO Z
Previewing a Workbook
Workbook
You can preview what your printed workbook will look like by choos-
ing the File➞Print Preview command (see Figure W-20).
The Print Preview window includes a toolbar with several handy tools
for previewing your workbook:
• Print button. When you want to print the workbook, click the Print
button. Or, choose the File➞Print command.
• Zoom. The Zoom button is a toggle switch that tells Excel when
you click the workbook, Excel should alternatively magnify or reduce
the size of the preview display.
• Next. The Next button displays the next page of the to-be-printed
workbook.
• Previous. The Previous button displays the previous page of the to-
be-printed workbook.
190
Excel 2002 F R O M A TO Z W
• Setup. The Setup button displays the Page Setup dialog box so you
can adjust the page orientation, margins, header or footer and sheet
printing settings.
• Margins. The Margins button adds movable margins lines to the
print preview window. To move, or change, the margins, drag the
margin lines.
• Page Break Preview/ Normal View. The Page Break Preview/Nor-
mal view button together between a normal workbook view and page
break preview view of the workbook and returns you to the regu-
lar Excel program window.
• Close. The Close button closes the Print Preview button and returns
you to the regular Excel program window.
• Help. The Help button lets you click some item, such as a button
or menu command, and see relevant information from the Excel help
information file.
Dividing Workbooks
Workbooks
You can split a workbook that’s grown too large by cutting portions
out of the workbook and pasting them into other new documents.
Refer to the entry on Moving Text for information about how to do
this.
Worksheets
A worksheet provides columns and rows you use to enter labels, val-
ues, and formulas (see Figure W-21). Excel workbooks always include
worksheets. They may also include chart sheets and macro sheets.
191
X Excel 2002 F R O M A TO Z
XML
XML, an acronym for Extensible Markup Language, stores informa-
tion in files that use standard formats so the files can be read by other
programs. Excel can read many XML files and even has its own XML
spreadsheet format.
SEE ALSO HTML
192
Excel 2002 F R O M A TO Z Z
Zoom
The Zoom box, which often appears on the Standard toolbar, lets you
magnify or reduce the size of the workbook that shows in the work-
book window to some percentage of its actual size (see Figure W-22).
To use the Zoom box, enter a percent in the Zoom box or open the
Zoom list box by clicking its arrow and select a zoom percentage from
the list.
193