Part 3. Editing Worksheets
The old paper-and-pencil method of calculating was a pain
because if you made a mistake or forgot something, you had to do a lot of
erasing—maybe even redo the whole thing. With an electronic worksheet, however,
you can easily make changes. Forget something? You can insert a cell, row, or
column. You also can delete entries. You can change a value, find and replace
data, and even check for spelling errors. Besides editing the data in your
worksheets, you can add comments to remind yourself of information and track
when changes are made and by whom.
Inserting Comments and
Changes

Editing Data

Double-click the cell you want
to edit. The insertion point appears to the left of the data in the current
cell (the entry also appears in the Formula bar).
Press the left and/or right
arrow keys to move the insertion point where you want to make the change.
Type your changes (using the
Backspace key if necessary).
Press the Enter key to accept your changes (the cell below
becomes the active cell).
INTRODUCTION
Being able to make changes to the values in your worksheet
is what makes Excel such a valuable analysis tool. You can change any of your
entries and see how that affects the formulas in your worksheet. To put the
active cell in Edit mode, press F2 on the keyboard or click the mouse pointer
on the data line of the Edit bar. You can then continue typing at the end of
the current data, use the Backspace key to delete some data, use the left and
right arrow keys to move through the data, or use the Home and End keys to
move quickly to the beginning or the end of the data. Press Enter when you
have finished editing the data.
|
TIP
Pressing the Enter key
You can't press an arrow key to confirm the entry and move
to another cell. You must press Enter.
|

Click in the next cell you
want to edit and press the F2 key. The
insertion point appears to the right of the data in the current cell (the entry
also appears in the Formula bar).
Type your edits.
Click the green checkmark Enter button to accept the changes.
The changes are accepted and
the edited cell remains the active cell.
TIP
Selecting characters
You can drag the mouse pointer across characters to select
them. Press the Delete key to delete the
selected characters.
|
TIP
Copying and moving
In addition to editing data, you might find it useful to
copy and move data to a different location. See the tasks "Cutting, Copying, and Pasting Data" and
"Moving Data" later in this part
for more information on copying and moving data.
|
Overwriting and Deleting
Data

Click the cell whose contents
you want to overwrite, making it the active cell.
Type the correct data into the
cell and press the Enter key.
Click the cell whose contents
you want to delete, making it the active cell.
Press the Delete key to delete the data in a cell.
INTRODUCTION
When you overwrite a cell,
you replace the cell's contents with new data. Overwriting is handy when you
want to correct typing errors or when a cell contains the wrong data. You can
also easily erase the contents of a cell by using the Delete key. Erasing a
cell is useful when you change your mind about the contents after you enter
the data in the cell. You might find that a piece of data you initially typed
into a cell is incorrect and needs to be changed.
|
TIP
Overwriting formulas
Be careful not to overwrite formulas if that is not what you
intended. If you overwrite a formula with a constant value, Excel no longer
updates the formula. If you accidentally overwrite a formula but you've saved
your spreadsheet recently, you can reopen the spreadsheet to a version saved
before you overwrote the formula.
|
Undoing and Redoing
Changes

To undo your most recent
action, click the Undo button on the Standard
toolbar. Continue clicking the Undo button to
undo more of your recent actions.
To undo multiple actions at
the same time, click the down arrow next to the
Undo button and select the action you want to
undo.
If you undo an action in
error, click the Redo button on the Standard
toolbar to redo the action. Continue clicking the Redo
button to redo more actions.
To redo multiple actions at
the same time, click the down arrow next to
the Redo button and select the actions.
INTRODUCTION
If you make a mistake while working on your spreadsheet, and
you detect your error immediately, you can undo your action. In addition, if
you undo an action by mistake, you can use Excel to quickly redo it.
|
TIP
Keyboard undo
A quick and easy way to undo an action is to use the Ctrl+Z shortcut key; you can redo an action using
Ctrl+Y.
|
TIP
Undo not available?
When you save the worksheet, the available actions in the
Undo/Redo lists are erased, so make sure you are happy with any changes
before you perform a save operation.
|
Inserting Cells

Click the spot in your
worksheet where you want to insert a cell.
Open the Insert menu and choose Cells
to open the Insert dialog box.
Select what you want to happen
to the existing cells when the new cell is inserted; for example, Shift cells down, and click OK.
The existing cells shift and a
new cell is inserted.
INTRODUCTION
There might be times when you are entering data into your
worksheet and notice that you typed the wrong information, so that you are
off by one cell in a column or row. To avoid retyping all the data again, or
copying and pasting, you can insert cells and shift the current cells to
their correct locations.
|
TIP
Using the shortcut menu
Another way to insert a cell is to right-click the spot in
your worksheet where you want the new cell to appear and choose Insert from the shortcut menu that appears. The
Insert dialog box opens; proceed as normal.
|
TIP
Using the Insert Options Format
Painter smart tag
When the new cell is inserted, click the Insert Options
Format Painter smart tag to apply formatting to the inserted cell. Format the
new cell like the cell above it or below it, or specify that no formatting be
applied.
|
Deleting Cells

Select the cell (or cells) you
want to delete.
Open the Edit menu and choose Delete
to open the Delete dialog box.
Select what you want to happen
to the rest of the cells when the selected cells are deleted; for example, Shift cells up, and click OK.
The selected cell(s) are
deleted, and other cells are shifted.
INTRODUCTION
As you work with worksheets, you might find that data needs
to be eliminated to keep the worksheet up-to-date. Or you might accidentally
add an extraneous cell of data in a row or column. To avoid typing all your
data again to rectify the error, you can delete extraneous cells and shift
other cells to their correct locations.
|
TIP
#REF! error
If the #REF! error appears
in a cell after you delete a cell, it means you deleted a cell or cells that
contained data that your worksheet needs to calculate a formula. To resolve
the problem, undo the change (refer to the task "Undoing and Redoing Changes" earlier in this part to
learn how).
|
Inserting and Deleting
Rows

After you click a cell above
which you want to add a row, open the Insert
menu and choose Rows.
A new row is inserted (notice
the Insert Options Format Painter smart tag, which allows you to format the row
like the one above it, below it, or to apply no formatting).
To delete a row, right-click
the row header for the row you want to delete, and choose Delete from the shortcut menu that appears.
The row is deleted.
INTRODUCTION
You can insert extra rows into a worksheet to make more room
for additional data or formulas. Adding more rows, which gives the appearance
of adding space between rows, can also make the worksheet easier to read.
Alternatively, you can delete rows from a worksheet to close up some empty
space or remove unwanted information.
|
TIP
Automatic formula row updates
When you insert a new row, Excel automatically updates any
formulas affected by the insertion (see Part 5
for more information).
|
TIP
#REF! error
If the #REF! error appears
in a cell after you delete a row, it means you deleted a cell or cells that
contained data that your worksheet needs to calculate a formula. To resolve
the problem, undo the change (refer to the task "Undoing and Redoing Changes.")
|
Inserting and Deleting
Columns

After you click a cell to the
left of which you want to add a column, open the Insert
menu and choose Columns.
A new column is inserted
(notice the Insert Options Format Painter smart tag, which allows you to format
the column like the one to its left, to its right, or to apply no formatting).
To delete a column,
right-click the column heading of the column you want to delete, and choose Delete from the shortcut menu that appears.
The column is deleted.
INTRODUCTION
You can insert extra columns into a worksheet to make room
for more data or formulas. Adding more columns, which gives the appearance of
adding space between columns, can also make the worksheet easier to read.
Alternatively, you might want to delete columns from a worksheet to close up
some empty space or remove unwanted information.
|
TIP
Automatic formula column updates
When you insert a new column, Excel automatically updates
any formulas affected by the insertion (see Part
5 for more information).
|
TIP
#REF! error
If the #REF! error appears
in a cell after you delete a column, it means you deleted a cell contained
data that your worksheet needs to calculate a formula. To resolve the
problem, undo the recent change.
|
Cutting, Copying, and
Pasting Data

Select the cells you want to
cut and click the Cut button. These cells now
display an active selection border.
Click in the worksheet where
you want to paste the cut data and click the Paste
button.
The cut cells appear in the
new location. Select the cells you want to copy and click the Copy button. These cells now display an active
selection border.
INTRODUCTION
You can save the time and trouble of retyping duplicate
information in a worksheet by cutting or copying cell text and data and
pasting it. In addition to the cut, copy, and paste commands, use the Office
Clipboard task pane to work with multiple items known as "scraps."
For example, if you need to copy two different selections of data from the
beginning of a worksheet to two different locations toward the end of a worksheet,
you can use the Clipboard to perform the procedure in fewer steps than if you
were to copy and paste each separately.
|
TIP
Cutting versus copying
When you want to move (rather than copy) data from its
current location to a new location, click the Cut
button on the Standard toolbar. The Cut option removes the selected value
from the old location.
|

Click in the worksheet where
you want to paste the copied data and click the Paste
button.
The copied text is pasted in
the new location. Unless the Clipboard task pane is already displayed, open the
Edit menu and choose Office Clipboard.
Notice the copied data is
displayed on the clipboard. Additional cut or copied items will display on the
clipboard; click each "scrap" to paste them.
Click the Close (x) button on the Clipboard Task pane when
finished.
TIP
Using the Paste button
You can still use the Copy
or Cut and Paste
buttons on the Standard toolbar when you want to perform a single cut/paste
or copy/paste.
|
TIP
Using the Clipboard
If you want to clear all the items copied to the Clipboard,
click the Clear All button in the Clipboard
task pane. To paste all the items saved to the Clipboard in one location,
click the Paste All button in the task
pane.
|
TIP
Pasting formulas
If you paste cells using Ctrl+V,
you can paste cell formulas. If you
paste cells with formulas from the multi-element Clipboard, you paste the values, not the formulas.
|
Flipping Rows and Columns

Select the range you want to
transpose.
Click the Copy button on the Standard toolbar.
|

|
Click the
first cell in which you want to paste the range.
|
INTRODUCTION
Transposing (flipping rows
and columns) is a special copy feature you might need to use if you want to
change the layout of your worksheet. For example, suppose your worksheet is
set up with quarters in rows and divisions in columns, but that your boss
prefers the opposite: quarters in columns and divisions in rows. In a case
such as this one, you can flip the worksheet.
|
CAUTION
You cannot transpose a range of cells onto the original
range selection. You must first transpose the range and then move the range.
|

Open the Edit menu and choose Paste
Special to open the Paste Special dialog box.
Click the Transpose check box
to mark it.
Click OK.
The range is transposed (or
flipped).
TIP
Using the Paste Special dialog
box
Notice that the Paste Special dialog box enables you to
paste all different types of formulas, values, formats, and so on. Practice
using this dialog box and see the different types of results that you get.
|
TIP
Eliminating the original data
To eliminate the original data that you transposed, you must
delete it. Refer to the task "Overwriting
and Deleting Data" earlier in this part for more information.
|
Moving Data

Select the cells you want to
move.
Click the border of the
selected cells and drag the cells to the location in the worksheet where you
want to paste the cell data.
Release the mouse button to
drop the data in its new location.
INTRODUCTION
Excel lets you move information from one cell into another
cell, which means you do not have to type the data into the new cell and then
erase the data in the old location. You might want to move data in a
worksheet because the layout of the worksheet has changed.
|
TIP
Undoing a move
If you move the wrong data or move the data to the wrong
location, click the Undo button on the
Standard toolbar to undo the most recent move. Then start over. (See the task
"Undoing and Redoing Changes"
earlier in this part for more information.)
|
Finding Data

Open the Edit menu and choose Find.
The Find and Replace dialog box opens with the Find tab displayed.
In the Find what text box, type the data you want to find.
Click the Find Next button.
Excel finds the first instance
of the data you typed and makes the cell that contains it the active cell.
Click Find Next to search for the next
instance, or Close to end.
INTRODUCTION
There might be times when you'll need to find specific
information in a large spreadsheet. For example, suppose you want to quickly
find the row that deals with sales data in Region 5 of your company. Instead
of scanning each row for the data you need, which can be time-consuming, you
can use Excel's Find feature.
|
TIP
Finding all instances of data
Click the Find All button
in the Find and Replace dialog box to view a list, complete with cell
locations and worksheet tab names, of all the instances of the data you
entered in the Find what text box.
|
Replacing Data

Open the Edit menu and choose Replace. The Find
and Replace dialog box opens with the Replace tab displayed.
In the Find what text box, type the data you would like to
find. Press the Tab key to move the cursor to the Replace
with text box, and type the replacement data.
Click Replace All to replace all instances of the data
you typed. (Or, click Find Next to find the
first instance of the data, and click Replace
to replace it.)
Excel notifies you of the
number of replacements it made; click OK.
When you're done using the Find and Replace dialog box, click its Close button to close it.
INTRODUCTION
Suppose you discover that you consistently misspelled a
company's name in your worksheet, or that a person you reference in several
cells has gotten married and changed her name. Fortunately, Excel enables you
to search for instances of incorrect or outdated data and replace it with new
data using its Find and Replace feature.
|
TIP
Narrowing search criteria
Click the Options button
on the Find and Replace dialog box to make your search criteria more
specific. To conduct a case-sensitive search (for example, finding all
instances of Hoffman but not hoffman), choose the Match
case option. Choose Match entire cell
contents to limit your search to cells that contain no more and no
less than the data you type (for example, to find all instances of Hoffman, but not Hoffmann.
You can also specify where the search should be conducted (Within Sheet or Within
Workbook), ways to search (By Rows
or By Columns).
|
Adding and Viewing Cell
Comments

Right-click the cell to which
you want to add a comment, and choose Insert Comment
from the shortcut menu that appears.
Type the desired text into the
comment area. When you're finished, click anywhere in the worksheet to accept
the comment.
The cell's upper-right corner
now contains a red triangle, indicating the presence of a comment. To view the
comment, move the mouse pointer over the triangle.
The comment appears as a
ScreenTip. To remove it from view, simply move the mouse pointer away from the
triangle.
INTRODUCTION
Some cells contain data or formulas that require an
explanation or special attention. Comments
provide a way to attach this type of information to individual cells without
cluttering the cells with extraneous information. A red triangle indicates
that a cell contains a comment, which you can view in several different ways.
|
TIP
Displaying comments
You can make it so that Excel automatically displays the
full text of a cell's comments while you work in the worksheet. To do so,
right-click the commented cell and choose Show/Hide
Comment from the shortcut menu that appears. To re-hide the comment,
right-click the commented cell and choose Hide
Comment.
|
Editing and Deleting Cell
Comments

Right-click the cell that
contains the comment you want to edit and choose Edit
Comment from the shortcut menu that appears.
Type the edits into the
comment area, and click anywhere in the worksheet area to accept the changes to
the comment.
To delete a comment,
right-click the cell that contains the comment and choose Delete Comment from the shortcut menu. The comment
is deleted.
INTRODUCTION
Excel lets you quickly edit or delete a comment. For
example, if you no longer need the note to yourself or want to change the
information about a cell.
|
TIP
Displaying comments
You can make it so that Excel automatically displays the
full text of a cell's comments while you work in the worksheet. To do so,
right-click the commented cell and choose Show/Hide
Comment from the shortcut menu that appears. To re-hide the comment,
right-click the commented cell and choose Hide
Comment.
|
Inserting Symbols

After you click the cell in
which you want to add a symbol, open the Insert
menu and choose Symbol to open the Symbol
dialog box.
Double-click the symbol you
want to insert into the cell—for example, the Copyright sign (©).
Click the Close button to close the Symbol dialog box.
The symbol is placed in the
selected cell.
INTRODUCTION
The Symbol command enables you to insert special characters,
international characters, and symbols such as the registered trademark (®)
and trademark (™) symbols. You can easily add these and other special
characters to your Excel worksheets. You delete symbols and special
characters just as you delete any other text—by using the Backspace or Delete
key.
|
TIP
Finding symbols
You can locate different types of symbols by clicking the Font drop-down arrow and selecting from the
various fonts. Each font provides you with different symbols to choose from.
|
TIP
Adding foreign letters
Many foreign spellings (for example, Latin) include acute
accent (´), grave accent (`), tilde (~), or other marks. To display those
marks in the Symbol dialog box, open the Font
drop-down list in the Symbol dialog box and select (normal text).
|
Tracking Changes

Open the Tools menu, choose Track
Changes, and select Highlight Changes
to open the Highlight Changes dialog box.
Click the Track Changes While Editing. This Also Shares Your
Workbook checkbox to select it.
The Highlight Which Changes options become available;
click OK to accept the default change
options.
INTRODUCTION
Suppose you're working on a team project, and each member
has access to the same workbook. To keep track of who makes what changes to
the workbook, you can use Excel's Track Changes feature; that way, each
person's edits appear in a different color. An edit can be changing the
current information or adding completely new information to the workbook.
(The only time the colors won't be different is when two people use the same
computer or user information—such as login or password.)
|

Excel notifies you that the
workbook will be saved; click OK. The
workbook is now shared, with Track Changes enabled.
Type a change in a cell and
press Enter. The upper-left corner of the
cell now contains a Track Changes marker, and a colored border.
Move the mouse pointer over
the revised cell. A ScreenTip appears, showing the change that was made, who
made the change, and when.
TIP
Rejecting changes
If a member of your team has changed the value in a cell in
error, you can reject the change; see the next task to learn how.
|
TIP
Stopping sharing/tracking
The word [Shared] in the
title bar of your workbook indicates that other people can use it. This is
mostly useful in a network setting, where others can easily access your worksheet
via the network. When you turn on Excel's Track Changes feature, you
automatically share the workbook. To disable sharing and tracking, open the Tools menu, choose Track
Changes, and select Highlight Changes
to open the Highlight Changes dialog box. Then, deselect the Track Changes While Editing… check box and click OK.
|
Accepting or Rejecting
Tracked Changes

Open the Tools menu, choose Track
Changes, and select Accept or Reject Changes
to open the Select Changes to Accept or Reject dialog box.
Excel notifies you that the
workbook will be saved; click OK. (If you
have already saved your changes to the workbook, you won't get this message.)
Click OK to accept the default options in the When, Who, and Where
fields.
Excel locates the first
changed cell in your worksheet. To accept the change, click the Accept button.
INTRODUCTION
When you are ready to finalize a worksheet containing
tracked changes, you must determine which changes you want to keep, or accept, and which you want to reject. When you
reject a change, Excel restores the cell to its previous value.
|
TIP
Accepting or rejecting all
changes
Click Accept All if you
want to accept all changes in the workbook; select Reject All if you want to reject all the changes
in the workbook.
|

Excel locates the next changed
cell in your workbook. To reject the change, click the Reject button.
When you're finished searching
for tracked changes, click the Close button.
Notice that the Track Changes
marker remains for your reference on cells in which you accepted changes, but
is removed for rejected changes.
TIP
Viewing descriptions of changes
Any changes made to your work book while the Track Changes
feature is on will be displayed in the Accept or Reject Changes dialog box.
|
Checking Spelling

Click the Spelling button on the Standard toolbar. The
Spelling dialog box opens, displaying the first spelling error it finds.
If the correct spelling of the
word appears in the Suggestions list, click
the word. If the correct spelling isn't listed, type the correction directly in
the Not in Dictionary box.
Click Change to change only this instance of the word, or
Change All to correct all instances in the
workbook. Excel makes the change, and flags the next word.
INTRODUCTION
If your worksheet is for your eyes only, you might not think
that misspellings are a big deal. But if you plan to turn over your worksheet
to your manager, she might not think the mistakes are so minor. Fortunately,
you can use Excel to check your spelling quickly and easily.
|
TIP
Adding words to your dictionary
If you notice that Excel incorrectly flags a word as a
misspelling, you can add that word to the Office dictionary that Excel uses
to check spelling. To do so, click the Add to
Dictionary button in the Spelling dialog box.
|

If the word flagged by Excel
is not misspelled (for example, it's a proper name), click Ignore Once to ignore this instance or Ignore All to ignore it throughout.
If you started the spelling
check in the middle of the workbook, Excel checks until it reaches the end. If
you want to continue checking from the beginning, click Yes.
As Excel continues locating
spelling errors, change or ignore them as needed. Excel notifies you when all
inaccuracies have been reviewed; click OK.
TIP
Checking from the beginning
You don't have to be at the beginning of a workbook when you
check for spelling errors. If you start in the middle of a workbook, Excel
checks until it reaches the end and then asks you whether you want to
continue checking from the beginning of your workbook.
|