Академический Документы
Профессиональный Документы
Культура Документы
ADVANCED
Any other company name, brand name, product name or logo mentioned or
illustrated in this publication may be a registered trademark or trademark of its
respective owner.
More Information:
To learn more about becoming a Microsoft Office Specialist, visit
www.microsoft.com/officespecialist.
To learn about other Microsoft Office Specialist approved courseware from SVI
Training Products, Inc., visit www.svitrain.com.
The availability of Microsoft Office Specialist certification exams varies by application, application version and language.
Visit www.microsoft.com/officespecialist for exam availability.
Microsoft, the Microsoft Office Logo, PowerPoint, and Outlook are trademarks or registered trademarks of Microsoft
Corporation in the United States and/or other countries, and the Microsoft Office Specialist Logo is used under license from
owner.
SUMMARY OF
KEYBOARD AND
TOOLBAR
SHORTCUTS
OPERATION YES NO
Restrict cell entries to specific numbers, dates
or times
Restrict cell entries to specific entries in a list
Create a workspace
(Continued)
CONCLUSION
1 CONCLUSION
You have just completed our Microsoft Office Excel 2003 Advanced course. In
the course, you were introduced to many techniques. To reinforce your
understanding of these techniques, it is recommended that you read and work
through this manual once again. The manual will also serve as a valuable reference
when you wish to review any of the operations covered.
Our next course in this series, Microsoft Office Excel 2003 Macros, can enhance
the knowledge acquired in the current course. Major topics in this course include:
For more information about the above-mentioned course or any other SVI Training
Products course, call 1-800-995-2798.
1. Make sure that all workbooks are closed. Then open the file named First Quarter Sales.xls. The
first two worksheets of this workbook contain sales data for a company that sells in two locations --
New York and San Francisco. Notice that these worksheets are only partially set up. The third
worksheet of the workbook contains a vertical lookup table that will be used to enter the descriptions
and unit prices for the various products listed on the New York and San Francisco worksheets.
2. Begin by sorting the Product Code field entries in both the New York and San Francisco
worksheets so that they are listed in ascending alphanumeric order.
3. Assign the range name LookupTable to the cells in which the vertical lookup table appears.
4. Using the VLOOKUP function and the range name mentioned above, display the descriptions
and unit prices for the products listed on the New York worksheet. Display the unit prices with a
dollar sign and 0 decimal places.
5. Copy the VLOOKUP functions entered on the New York worksheet to the San Francisco
worksheet to display the descriptions and unit prices for the products listed on that worksheet. (Make
sure that the unit prices include a dollar sign and 0 decimal places. Note that the San Francisco
worksheet does not include all of the products listed on the New York worksheet.)
7. Set the necessary data restriction in the Quantity column on both the New York and San
Francisco worksheets so that a warning box appears if an entry is not a whole number between 0
and 100.
8. Enter values of your choice into the Quantity columns on both the New York and San Francisco
worksheets.
9. Assign the range name Total1 to the Total entries (E5:E14) on the New York worksheet.
10. Using the SUM function and the range name mentioned above, display a grand total in cell E16
of the New York worksheet.
11. Assign the range name Total2 to the Total entries (E5:E12) on the San Francisco worksheet.
12. Using the SUM function and the range name mentioned on the previous page, display a grand
total in cell E14 of the San Francisco worksheet.
16. On the same worksheet, enter the necessary formulas to calculate the summary information for
the two branches.
20. Open the file named What-If Analysis. Use Solver to develop a what-if solution where the Profit must
equal 25%, the overhead can change, but the unit price must remain the same as it is now.
This section discusses XML features that are available in Excel. In it, you will
learn how to:
The real power of XML is its ability to deliver data in a format that can be read by a
wide range of applications. This is accomplished by putting structured data, such as
entries in an Excel worksheet, in text files, following standardized guidelines and
rules.
From Excel, you can save a workbook as an XML spreadsheet, thereby creating an
XML file that can be read, and used by, other spreadsheet programs.
In the Save As dialog box, which is subsequently displayed, enter a name for the XML
file.
Expand the Save as type box, and select the XML Spreadsheet option.
In this exercise, you will save an Excel workbook as an XML spreadsheet. You
will then open the resulting XML file in Excel.
1. Make sure that the Workbook window is clear. Then open the workbook named Orders #2.xls.
XML is a standard that allows data to be exchanged between many different systems.
It facilitates organizational transactions, and business to business information
exchange. In the past, developers who needed to access data in Excel or Word
documents, have had to know the exact structure of the document. With that
knowledge, they would write software that located the specific information based on
the document structure. If the location of anything in the document changed, the
software would not work.
XML has changed all of that. XML identifies the worksheet content, so that
developers no longer need to know exactly where in the worksheet or document the
data that they require, is located. They only have to know what is defined. This
information is mapped using an XML schema. An XML schema is simply an XML file
that contains the rules for what is allowed to reside in an XML data file. The schema
file extension is .xsd. The XML data file extension is .xml. Creating schemas is
beyond the scope of this course, but a typical example of what a schema looks like is
given here to give you an idea of what we are talking about. This code listing
illustrates the schema that will be used in the exercise in this section.
Excel allows you to add schemas to a workbook. After an XML schema has been
created, the next step is to find a way of getting the data from the XML file into your
Excel worksheet. Excel uses XML mapping to relate the contents of an Excel
worksheet to the structure of an XML schema.
With the Excel worksheet open, choose the Data, XML, XML Source command, or
choose the View, Task Pane command, and display XML Source. Alternatively, press
[CTRL] + [F1] and select XML Source from the drop-down list.
From the XML Maps dialog box that is subsequently displayed, click on the Add button.
Drag the schema elements to the Excel worksheet and place them in the appropriate
cells.
Right-click on the element in the XML Source dialog box, and click on Remove
Element.
With the Excel worksheet open, choose the Data, XML, XML Source command, or
choose the View, Task Pane command, and display XML Source. Alternatively, press
[CTRL] + [F1] and select XML Source from the drop-down list.
From the XML Maps dialog box that is subsequently displayed, select the map that you
want to delete, and then click on the Delete button.
The contents of an XML workbook can be edited in the same way as any other
worksheet.
Using standard editing techniques, add, delete, cut, copy, paste and format the cell
contents.
With the Excel worksheet open, choose the Data, XML, Import command.
From the Import XML dialog box that is subsequently displayed, select the XML file that
you want to import the data from.
In this exercise, you will add the data structure of a schema to a worksheet
using XML mapping. You will then import data from an XML file into your
worksheet.
1. Make sure that the Workbook window is clear. Then open a new workbook.
4. Import the data from the Employees.xml file into your worksheet. (Only the Name and Salary data should be
displayed.) Remove the Occupation column.
Worksheets that have been created using XML files and schemas can be managed in
the same way as any other worksheet. The contents of the worksheet can be copied,
moved, deleted, and modified.
In this exercise, you will rearrange and format the contents of the Employee
Database.
1. Make sure that the file named Employee Database.xls is still open.
XML lists are similar to Excel lists. They are created when you map a repeating XML
element onto a worksheet. XML lists can be sorted and filtered.
Use the drop-down lists at the top of the worksheet data to select the appropriate sort or
custom filter option.
In this exercise, you will sort and filter the contents of the Employee Database.
3.6 Summary
Save an Excel workbook as an XML Use the File, Save command and the
spreadsheet. XML Spreadsheet option in the Save
as type box in the Save As dialog box.
View XML options. Use the drop-down lists at the top of the
worksheet data to select the appropriate
sort or custom filter option.
ADDITIONAL
ADVANCED EXCEL
FEATURES
This section discusses additional features that are available in Excel. In it, you
will learn how to:
You should know how to summarize the data in related worksheets by entering
formulas with links to the data. An alternate method for combining data in two or
more worksheets (either in a single workbook or in multiple workbooks) is Excel's
Data Consolidation feature, which allows you to specify ranges of data that are to
be totaled, averaged or summarized in some other way.
In the summary worksheet, select the cell in which the upper-left corner of the
summarized data is to appear.
Choose the Data, Consolidate command. Doing this displays the Consolidate dialog
box.
Select the first range of data that is to be summarized. Then, in the dialog box, click on
the Add button.
Select the next range of data that is to be summarized, and click on the Add button.
Repeat the previous step for any other range of data that is to be included in the
summary.
Optionally, select the Create links to source data to link the summary information to
the source data.
In this exercise, you will use the Data Consolidation feature to summarize three
sets of sales figures.
1. Make sure that all workbooks are closed. Then open the files named Fourth Quarter (USA).xls
and Combined USA Sales.xls.
11. Click on the OK button. The dialog box is closed, and the
summary information is displayed in
Fourth Quarter (USA).xls.
With the chart (or any element of the chart) selected, do one of the following:
Point to the relevant data series, right-click the mouse button, and select
the Add Trendline option on the shortcut menu.
On the Type panel of the Add Trendline dialog box, which is subsequently displayed,
select the type of trendline that is to be added.
On the Options panel of the dialog box, set any other necessary options (for example,
Forward and Backward, which specify the number of periods the trendline is to extend
into the future or past, respectively).
You can add a trendline only to an area chart, bar chart, column chart, line chart, xy
(scatter) chart or bubble chart.
1. Make sure that the Workbook window is clear. Then open the file named Sales History.xls.
3. Click on the Options tab. The Options panel of the dialog box is
displayed (as illustrated below).
1. With Sales History.xls open, add a linear trendline for the 2nd Qtr data series to the chart.
Basic formatting of charts, diagrams and graphics has been covered in the
intermediate level of this course series. In this subsection, additional formatting
options will be discussed. The Format, Data Series command provides a number of
different formatting options for data markers. A data marker is a graphic
representation of the data point (like a bar or area), that originates from the
worksheet on which the chart is based. You will examine some of the options,
including adding data labels and changing the order of the data series.
Choose the Format, Data Series command, or double-click on the chart item that you
want to format.
In the Format Data Series dialog box, which is subsequently displayed, select the Data
Labels tab.
Click on the appropriate Label Contains check box, to select the type of label that you
require.
Choose the Format, Data Series command, or double-click on the chart item that you
want to change.
In the Format Data Series dialog box, which is subsequently displayed, select the Series
Order tab.
Arrange the Series order by clicking on the Move Up or Move Down buttons in the
dialog box.
Excel has a number of tools that can be used for formatting and resizing pictures.
Using Excel’s Picture toolbar, you can easily crop pictures, change the brightness and
contrast, and rotate pictures.
To crop a picture:
Position the cropping tool over the appropriate cropping handle to achieve the result that
you require. To crop one side, drag the center handle inward. To crop the same amount
on two sides at once, hold down the [CTRL] key as you drag the center handle inward.
To crop the same amount on all four sides, hold down the [CTRL] key and drag one of the
corner handles inward.
Crop Button
Click on the More Brightness, Less Brightness, More Contrast, and Less Contrast
buttons on the Picture toolbar, to change the levels in your picture.
Click on the Rotate Left 90o button. Repeat this step to rotate the graphic by additional
90o amounts.
In this exercise, you will add data labels to a chart, and then change the order
of the data series.
1. Make sure that the Workbook window is clear. Then open the file named Sales History.xls.
1. Open the Sales History.xls file. Experiment using some of the other data label options.
In this exercise, you will modify the brightness and contrast of a picture. You
will also rotate the picture and then crop it.
1. Make sure that the Workbook window is clear. Then open a new workbook.
2. If the Picture toolbar is not displayed, choose the View, Toolbars, Picture command.
3. Click on the Insert Picture From File button, select the Apple.gif picture, and then click on the Insert button.
1. You can also define the contrast, brightness and crop amount numerically, by clicking on the Format Picture
button on the Picture toolbar.
Workbook properties are details about a workbook that help to identify it. Typical
information that can be included in the workbook properties are a title, subject,
author, manager, company, keywords and comments. Some properties are
automatically updated by Excel. These include statistics such as file size, and the
dates that files are created and modified. This information can be used to search for
files based on workbook properties. Some properties are preset. These can include
the title, author and company. They can, however, be modified.
1. Make sure that the Workbook window is clear. Then open the file named Sales History.xls.
In the Options dialog box, which is subsequently displayed, select the General tab.
Click on the drop down arrow for the Standard Font box.
In the Options dialog box, which is subsequently displayed, select the General tab.
Enter the appropriate number of worksheets in the Sheets in new workbook box.
In the Options dialog box, which is subsequently displayed, select the General tab.
Enter the appropriate file location in the Default file location box. If you want a
specific file to open on startup, specify the At startup, open all files in location.
The new default settings will only take effect after Excel is restarted.
In this exercise, you will modify the default font setting and the number of
worksheets in a workbook. You will also review how the default file location
is modified.
1. Make sure that the Workbook window is clear. Then open a new workbook.
1. Start Excel. Check that the default settings have changed back to Arial for the font, and 3 for the
number of worksheets.
4.7 Summary
Add data labels to the chart. Choose the Format, Data Series
command, or double-click on the chart
item that you want to format. Then
select the Data Labels tab.
Change the order of a data series. Choose the Format, Data Series
command, or double-click on the chart
item that you want to format. Then
select the Series Order tab.
Change the default setting for Choose the Tools, Options command.
fonts. Then select the General tab.
Change the default file location. Choose the Tools, Options command.
Then select the General tab.
WORKING WITH
OTHER EXCEL USERS
This section discusses workgroup and security features of Excel. In it, you will
learn how to:
To give others on a network access to a particular workbook, you must share it. (The
workbook file must, of course, be stored in an appropriate network location.) You can
activate change tracking and put a workbook into shared mode in one operation,
as described below.
To turn on change tracking in a workbook (and put the workbook into shared
mode):
In the Highlight Changes dialog box, which is subsequently displayed, select the Track
changes while editing option. (Make sure that the Highlight changes on screen
option is selected.)
Optionally, reset the When, Who and/or Where option to specify what changes you
want highlighted. (By default, the program highlights all changes made in a workbook.)
When change tracking is in effect and a workbook is in shared mode, all workgroup
members can simultaneously view and edit the workbook. Excel identifies the
revisions made by each reviewer by marking the associated cells with a different
color. The program also maintains a change history -- that is, a record of the
changes made, the individuals who made those changes, and the dates/times at
which the changes occurred.
There are, however, certain limitations as to what changes can be made in a shared
workbook. For example, an individual cannot merge or split cells, insert or delete
blocks of cells, delete a worksheet, group or outline data, add or change conditional
formats, insert or edit a chart, picture or hyperlink, create or modify a PivotTable
report, create, change or view scenarios, insert automatic subtotals, or assign,
change or remove passwords.
1. You can also share a workbook by using the Tools, Share Workbook command, by selecting the
Allow changes by more than one user at the same time option on the Editing panel of the Share
Workbook dialog box, and by clicking on the OK button. To highlight changes made in the workbook,
however, you must still use the Tools, Track Changes, Highlight Changes command.
2. Certain revisions in a shared workbook (for example, formatting changes) are not highlighted
when change tracking is in effect.
In this exercise, you will turn on change tracking in a workbook and put the
workbook into shared mode. You will then make several revisions in the
workbook.
In exercises of this section, you will act as both the project leader and the reviewer of
a workgroup project. As the project leader, for example, you will turn on change
tracking (in this exercise) and then accept and reject reviewer changes (in the next
exercise); as a reviewer, you will make changes in the worksheet, as well as insert a
comment (in this exercise).
1. Make sure that all workbooks are closed. Then open the file named Group
Forecast #1.xls.
You will begin by turning on change tracking and putting the workbook into
shared mode.
When an individual saves a shared workbook, Excel normally saves the changes
made by that individual and also incorporates changes made (and saved) by other
persons working on the workbook. If, however, another person has made a change in
the same cell as the individual saving the workbook, the Resolve Conflicts dialog
box is normally displayed, allowing the individual who has initiated the Save
operation to decide which change to keep. For more information on conflicting
changes between users, see the note at the end of subsection 11.6.
1. With Group Forecast #1.xls open, enter the specified new data into the
following cells:
You will now respond to the various changes that have been made in the current
worksheet. You will also review, and then remove the comment that has been
inserted.
In the Select Changes to Accept or Reject dialog box, which is subsequently displayed,
optionally reset the When, Who and/or Where option to specify what changes you want
to view. (By default, the program indicates all changes made in a workbook since it was
last reviewed.) Then click on the OK button.
Click on the Accept All or Reject All button to respectively accept all or
reject all changes made in the workbook.
Choose the Edit, Clear, Comments command, or select the Delete Comment option
on the shortcut menu.
In this exercise, you will accept or reject each of the proposed changes in the
current worksheet. You will also make an additional revision in the
worksheet after reviewing and removing the comment.
3. Click on the Accept button. The change is accepted, and the next
change is indicated.
4. Click on the Accept button. The change is accepted, and the next
change is indicated.
5. Click on the Reject button. The change is rejected, and the next
change is indicated.
Earlier in this section, you turned on change tracking in the current workbook and, as
a result, all changes made in the worksheet were marked. Any reviewer of this
workbook, however, could simply turn off change tracking and subsequently make
changes that were not identified by any special marks.
To prevent others from turning off change tracking in a workbook, Excel allows you to
protect a workbook with a password when activating the feature. Doing so makes the
option for turning off change tracking unavailable to anyone who does not have the
proper password.
In the Protect Shared Workbook dialog box, which is subsequently displayed, select the
Sharing with track changes option.
In the Confirm Password dialog box, which is then displayed, retype the password.
Then click on the OK button.
In this exercise, you will turn off change tracking in the current workbook. You
will then turn change tracking back on and protect the workbook at the
same time.
In the last subsection, you learned how to protect a shared workbook. You can also
protect an unshared workbook from modifications to its structure, as well as protect a
single worksheet in an unshared workbook from revisions. This is accomplished with
the Tools, Protection, Protect Workbook and Tools, Protection, Protect Sheet
commands, respectively.
In using the Tools, Protection, Protect Sheet command, you activate the Locked
option, which is set for each cell, by default, on the Protection panel of the Format
Cells dialog box. This makes the worksheet read-only. You can unlock specific ranges
when a worksheet is protected by using the Tools, Protection, Allow Users to Edit
Ranges command.
1. You can also protect an unshared workbook by specifying a password to open and/or modify it.
This is accomplished with options in the Save Options dialog box, which is displayed by clicking on
the Tools button in the Save As dialog box and by selecting General Options in the list that appears.
(These options are examined in the next exercise.)
In this exercise, you will protect both the current workbook and the current
worksheet.
2. Make sure that the insertion point is The Confirm Password dialog box is
location in the Password box. displayed.
Type: hello
Choose the OK button.
3. Type: hello The password is set, and the dialog box
Choose the OK button. is closed. You will now examine the
Protection options for cells in the
worksheet.
6. Click on the Cancel button. The dialog box is closed. You will now
protect the worksheet.
8. Make sure that the insertion point is The Confirm Password dialog box is
located in the Password box. displayed.
Type: hello
Choose the OK button.
9. Type: hello The password is set, and both dialog
Choose the OK button. boxes are closed. You will now test the
workbook protection by attempting to
delete the current worksheet.
10. Choose the Edit command. The Edit menu is displayed. Notice that
the Delete Sheet option is unavailable.
11. Close the Edit menu. You will now attempt to rename the
current worksheet.
21. Click on the New button. The New Range dialog box is displayed
(as illustrated below).
22. Type: Unit Price A title (name) for the range is entered.
23. Click in the Range password box. The Confirm Password dialog box is
Type: hello displayed.
Choose the OK button.
24. Type: hello The password is set, and the Allow Users
Choose the OK button. to Edit Ranges dialog box is redisplayed.
This section, up to this point, has been concerned with sharing a workbook with other
members of a workgroup on a network. If all or some members of your workgroup do
not have access to a network, you can still share a workbook and update it with
changes made by those individuals. To do this, you make copies of the workbook and
distribute a copy to each person. When they have made their revisions, you then
collect the various copies of the workbook and merge them into one workbook.
With the workbook open, choose the Tools, Share Workbook command.
In the Share Workbook dialog box, which is subsequently displayed, select the Allow
changes by more than one user at the same time option.
On the Advanced panel of the dialog box, make sure that the number of days specified
in the Keep change history for box will allow all reviewers to complete their work and
give you enough time to collect and merge the workbook copies.
Using the File, Save As command, save an appropriate number of copies of the
workbook, giving each copy a different filename.
Open the workbook into which the other workbook(s) is/are to be merged. (This
workbook must be shared.)
In the Select Files to Merge Into Current Workbook dialog box, which is subsequently
displayed, select the workbook(s) that is/are to be combined with the current
workbook.
In this exercise, you will merge three revised copies of a workbook into the
original workbook.
1. Open the file named Group Forecast #2.xls. (This is the original workbook.)
2. In the list of filenames, click on Copy Three files (Copy #1.xls, Copy #2.xls and
#1.xls (or Copy #1). Press and Copy #3.xls) are selected. (These files
hold down [SHIFT]. Click on Copy contain revised copies of the current
#3.xls (or Copy #3). Then release workbook.)
[SHIFT].
1. With Group Forecast #2.xls open, accept or reject each of the changes in the worksheet.
When two or more individuals make a change in the same cell, the Accept or
Reject Changes dialog box lists each change, as well as the original entry. In this
case, you make a choice by selecting the desired entry in the list (one of the
revised entries or the original entry) and by clicking on the Accept button.
The Advanced panel of the Share Workbook dialog box (which is displayed by
choosing the Tools, Share Workbook command) allows each person working on a
shared workbook to individually set certain options.
The Update changes section of the Advanced panel includes two options that
determine when a workbook is updated with changes made by others:
When file is saved (the default option) -- which updates the workbook each time it is
saved.
Automatically every -- which allows an individual to specify how often the workbook is
to be automatically updated. In selecting this option, the individual is given two
additional options: Save my changes and see others' changes and Just see other
users' changes. The first option saves the changes made by the individual who has set
the option and updates the workbook with changes made by others (as with the When
file is saved option described above). The second option simply updates the workbook
with changes made by others, without saving the changes made by the individual who
has set the option. (That person's changes can still be saved at any time.)
The Conflicting changes between users section of the Advanced panel includes
two options that determine what change is kept when two or more conflicting
changes by two or more users are made in the same cell:
Ask me which changes win (the default option) -- which displays the Resolve Conflicts
dialog box, allowing the individual who is saving the workbook to decide what change(s)
is/are to be kept and which is/are to be discarded.
The changes being saved win -- which simply keeps the changes made by the
individual who is saving the workbook, discarding all other changes.
This subsection discusses two additional workbook security features. These include:
Choose the Tools, Options command, and then click on the Security tab.
In the Digital Signatures dialog box, which is subsequently displayed, click on the Add
button.
In the Add Certificate dialog box, which is subsequently displayed, select the appropriate
certificate, and then click on OK.
A macro is simply a program that is used to automate tasks. This topic will be
explored in detail in the next course in the series called Microsoft Office Excel 2003
Macros. In this subsection, we will briefly discuss security considerations when using
macros.
A computer virus is a program or macro that infects computer files. It is usually
transmitted as an e-mail attachment, or is downloaded from the Web. When the file
is loaded into memory, it can destroy information on your PC. It is therefore very
important to protect your PC, by using antivirus software, and by setting macro
security levels appropriately. The security levels determine whether a macro will be
automatically disabled, or will be allowed to operate on your system.
Choose the Tools, Options command, and then click on the Security tab.
In the Security dialog box, which is subsequently displayed, click on the Macro Security
button, and choose the appropriate security level for your application. The available
options include Very High (maximum security), High, Medium and Low (not
recommended). Read the information in the dialog box to see the full definitions.
In this exercise, you will review the steps for working with digital signatures
and macro security settings.
1. Make sure that all workbooks are closed. Then open the file named Canada Sales.xls.
5.8 Summary
IMPORTING AND
EXPORTING DATA
This section discusses methods for importing external data into Excel and for
exporting Excel data to external applications. In it, you will learn how to:
Excel provides a number of tools for importing external data (that is, data created in
other applications) into your worksheets. Using the Text Import Wizard, for
example, you can import the data in a text file.
In the Select Data Source dialog box, which is subsequently displayed, specify the name
of the text file.
In this exercise, you will import data from a text file into a new Excel
worksheet.
1. Make sure that all workbooks are closed. Then open a new workbook (unless a new workbook is
currently open).
4. Make sure that the Delimited option The next Text Import Wizard dialog box is
is selected. Then click on the Next displayed. This dialog box allows you to
> button. specify the type of delimiter that is used.
Notice that the contents of the file
appear in a table at the bottom of the
dialog box.
5. Make sure that the Tab option is The last Text Import Wizard dialog box is
selected. Then click on the Next > displayed. This dialog box allows you to
button. format each column of data.
8. If the External Data toolbar is not You will use the External Data toolbar in
displayed, choose the View, the next two exercises.
Toolbars command, followed by
External Data. NOTE: The Refresh Data button on the
above toolbar allows you to update
imported data with changes made in the
source data.
9. Optionally, enhance the
appearance of the worksheet in
ways of your choice.
10. Save the workbook in a file named
Scores.xls.
11. Close the workbook. The worksheet is cleared from the
screen.
Using the Query Wizard, you can import data in a database file into an Excel
worksheet.
Choose the Data, Import External Data, New Database Query command.
In the Choose Data Source dialog box, which is subsequently displayed, select the
appropriate data source.
Make sure that the Use the Query Wizard to create/edit queries option is selected.
You can also use the Data, Import External Data, Import Data command (which
you used in the previous exercise to import data in a text file) to import database
information into Excel. Using this command, however, you cannot filter and sort the
data before importing it. (With the Query Wizard you can.)
In this exercise, you will import data in a Microsoft Access database file into a
new Excel worksheet.
1. Make sure that the Workbook window is clear. Then open a new workbook.
9. In the Column to filter box, click on The operator is selected, and the
Quantity. Then expand the insertion point appears in the box to the
Quantity box, and click on is right.
greater than or equal to.
12. Expand the Sort by box, and click on Records will be sorted by entries in the
Item. Item field.
14. Make sure that the Return Data to The Import Data dialog box is displayed.
Microsoft Excel option is selected.
Then click on the Finish button.
15. In the worksheet, click in cell B3. The selected cell is entered into the
dialog box. The upper-left corner of the
data will appear in this cell.
16. In the dialog box, click on the OK The dialog box is closed, and the
button. specified database records are displayed
in the Excel worksheet. You will now
modify the data that appears in the
worksheet by modifying the query.
17. Select any cell in the list. Then The Query Wizard -- Choose Columns
click on the Edit Query button on dialog box is redisplayed.
the External Data toolbar.
18. In the Available tables and The Description field is added to the
columns box, click on the plus sign query.
to the left of Merchandise. Then
double-click on Description in the
Merchandise table field list.
20. Click on the Next > button. Then The Query Wizard -- Sort Order dialog
click again on the Next > button in box is redisplayed.
the Query Wizard -- Filter Data dialog
box.
21. Expand the Sort by box, and click on Records will now be sorted by entries in
Order No. the Order No field.
22. Click on the Next > button. Then The worksheet is redisplayed. Notice the
click on the Finish button in the differences in the worksheet data.
Query Wizard -- Finish dialog box.
23. Increase the width of columns B
through E to 12.
24. Apply the mm/dd/yy format to the When you are finished, the worksheet
Order Date field entries. Then should appear similar to that illustrated
apply the Currency with 2 decimal below.
places format to the Price field
entries.
1. With Orders #1.xls open, use the Query Wizard once again to modify the data that currently
appears in the worksheet.
2. Optionally, enhance the appearance of the worksheet in other ways of your choice.
Up to this point, you have imported both the data in a text file and the data in a
Microsoft Access database table into an Excel worksheet. Using the Copy Paste
Web Query technique, you can also import refreshable data from a Web page, as
demonstrated in the next exercise.
1. You can also use the Data, Import External Data, New Web Query command to import data
from a Web page.
2. Before you import data from a Web site, you should make sure that you are allowed to do so. You
should also make sure that you comply with any applicable terms and/or conditions governing use of
the data you import from the site.
In this exercise, you will import data from a Web page you create into a new
Excel worksheet.
1. Make sure that the Workbook window is clear. Then open the file named Orders #2.xls.
You will begin by publishing (saving) the current worksheet as a Web page.
5. Make sure that the Open published The dialog box is closed, and the Web
web page in browser option is page is displayed in the Microsoft
selected. Then click on the Publish Internet Explorer window.
button.
14. Click on Create Refreshable Web The New Web Query dialog box is
Query. displayed (as illustrated below).
16. Click on the Import button. The dialog box is closed, and the
worksheet data is displayed.
17. Click on the Edit Query button on The Edit Web Query dialog box is
the External Data toolbar. displayed.
18. Click on the Options button on the The Web Query Options dialog box is
toolbar of the dialog box. displayed (as illustrated below).
19. Under Formatting, click on None. The Edit Web Query dialog box is
Then click on the OK button. redisplayed.
20. Click on the Import button. The dialog box is closed, and the
worksheet is redisplayed without its
original HTML formatting.
21. Click on the Undo button. The HTML formatting is restored to the
worksheet data.
22. Save the workbook in a file named
Orders #3.xls.
23. Close the workbook. The worksheet is cleared from the
screen.
In the previous exercise, you exported Excel data to HTML format by saving a
worksheet as a Web page. You can also export Excel data to a number of other file
formats by selecting the appropriate option in the Save as type box in the Save As
dialog box. You can also export Excel data to other applications by using the
standard Windows Copy and Paste technique, as demonstrated in the next exercise.
In this exercise, you will export data from an Excel worksheet into a Microsoft
Word document.
1. Make sure that the Workbook window is clear. Then open the file named Orders #2.xls.
6.6 Summary
Import data in a text file into Excel. Use the Text Import Wizard.
Access the Text Import Wizard. Use the Data, Import External Data,
Import Data command.
Access the Query Wizard. Use the Data, Import External Data,
New Database Query command.
Publish a Web based worksheet. Use the File, Save as Web Page
command.
Import data from a Web page into Use the Edit, Copy command (in the
Excel. Web browser window), the Paste button
(in Excel) and the Create Refreshable
Web Query option in the Paste Options
button list.
Export Excel data to other Select the appropriate file format in the
applications. Save as type box in the Save As dialog
box, or use the Copy button (in Excel)
and the Paste button (in the external
application).
ANALYZING
WORKSHEET DATA
While Excel may be used primarily for storing data, the program does offer many
powerful features for analyzing that data. This section discusses five of these
features: PivotTable reports, PivotChart reports, scenarios, the Analysis
ToolPak and the Solver. In it, you will learn how to:
Use the Analysis ToolPak and the Solver for worksheet analysis.
PivotTable Report
Using Excel's PivotTable and PivotChart Report Wizard, you can quickly create a
PivotTable report either in the worksheet containing the data to be analyzed or in a
worksheet of its own.
With the appropriate workbook open, choose the Data, PivotTable and PivotChart
Report command.
Follow the directions in the PivotTable and PivotChart Wizard dialog boxes that appear. In
these dialog boxes, you specify the source and location of the data that is to be
analyzed, define the layout for the report, and specify the area in which the report is to
appear. Click on the Next > button to move from one dialog box to the next. In the final
dialog box, click on the Finish button to complete the operation.
In this exercise, you will create the PivotTable report illustrated above.
1. Make sure that all workbooks are closed. Then open the file named Staff List.xls.
3. Make sure that the Microsoft Excel The second PivotTable and PivotChart
list or database and PivotTable Wizard dialog box is displayed. You are
options are selected. Then click on prompted to confirm the range of the
the Next > button. source data.
12. Click on the Close button on the Title The PivotTable Field List window is
bar of the PivotTable Field List closed. (You will redisplay this window in
window. a later step when it is needed.) You will
now reformat the PivotTable report.
13. Click on the Format Report button The AutoFormat dialog box is displayed
on the PivotTable toolbar. (as illustrated on the following page).
14. Click on the Report 4 option. Then The dialog box is closed, and the new
click on the OK button. format is applied to the report.
15. Cancel the selection. The new format is now visible.
16. Click on the Undo button. The original report format is restored.
You will now modify the amount of
information that appears in the
PivotTable report.
17. In the PivotTable report, click on the The button is expanded, and the two
down arrow at the right side of the DEPT field entries (Admin and Sales) are
DEPT button. listed in a box.
18. Click in the Admin check box to The information for the Administration
deselect the option. Then click on department is hidden, and only the
the OK button. information for the Sales department
now appears in the PivotTable report.
19. Click on the down arrow at the right The button is expanded, and the two
side of the GENDER button in the GENDER field entries (F and M) are listed
PivotTable report. in a box.
When you create a PivotTable report, the Sum function is used, by default, to
summarize the field information. You can, however, choose from several other
summary functions to display such information as average values, maximum or
minimum values, counts, etc.
In the PivotTable Field dialog box, which is subsequently displayed, select the desired
function.
You can also reset the summary function while creating a PivotTable report by
double-clicking on the summary field button after placing that field in the sample
table (in the PivotTable and PivotChart Wizard -- Layout dialog box). Doing this,
displays the PivotTable Field dialog box (described above).
In this exercise, you will reset the summary function in a PivotTable report.
Specifically, you will copy the current PivotTable report and then use the Average
function in the second PivotTable report.
2. Create a PivotTable report on Sheet1 of the worksheet that shows the average price of goods,
organized by the DEPT and ORIGIN fields.
3. Apply the Currency with 2 decimal places format to the numeric data in the PivotTable report.
PivotChart Report
In this exercise, you will create the PivotChart report illustrated above.
1. Make sure that the Workbook window is clear. Then open the file named Staff List.xls.
2. Create a PivotChart report that shows the total value of goods, organized by the DEPT and
ORIGIN fields.
3. Apply the Currency with 0 decimal places format to the value axis labels of the chart.
A scenario shows the effect a particular value (variable) has on other data as that
value changes. With Excel's Scenario Manager, you can create scenarios with one
or more variables to answer such "what-if" questions as "What if inflation increases
by 3% and growth increases by 6%?" or "What if we lower both our sales price and
unit cost by $25?"
To create a scenario:
In the Scenario Manager dialog box, which is subsequently displayed, click on the Add
button.
In the Add Scenario dialog box, which is then displayed, enter a name for the scenario.
Enter the coordinates of the variable cell(s). Then click on the OK button.
In the Scenario Values dialog box, which is then displayed, enter a value for each
variable cell. Then click on the OK button to return to the Scenario Manager dialog
box.
Click on the Close button to close the Scenario Manager dialog box.
2. When creating one or more scenarios, you may want to create an additional scenario that resets the
variable cells back to their original values.
To display a scenario:
Open all of the workbooks which contain the scenarios that you want to merge.
Make the worksheet where you want to place the merged scenarios current.
In the Merge Scenarios dialog box, which is then displayed, select a workbook name in
the Book box, and a worksheet name in the Sheet box.
Enter the cell reference/s impacted by the scenarios, in the Result cells box.
In this exercise, you will create two scenarios. You will then display each
scenario, create a summary report, and finally, merge scenarios from
different workbooks.
1. Make sure that the Workbook window is clear. Then open the file named What-If Forecast.xls.
1. Open the file named What-If Forecast.xls. Edit the Best Case and Worst Case scenarios as
follows:
Best Case
Worst Case
To edit a scenario, select the scenario name in the Scenario Manager dialog box,
and click on the Edit button. Notice that both of the above scenarios are to
include four variables (the values in cells D1, D2, D3 and D4).
In the Data Analysis dialog box, which is subsequently displayed, select Moving
Average, and then click on the OK button.
In the Moving Average dialog box, which is subsequently displayed, enter the Input
Range. This is location of the row or column of data for which you want to calculate the
moving average.
In the Interval box, enter the number of data points to be used to calculate the moving
average.
Enter the cell address where you want the results to be displayed, in the Output Range.
Select the Chart Output check box to see a graph of the actual and forecast data.
If the Data Analysis command is not available on the Tools menu, choose the Tools,
Add-Ins command and select Analysis ToolPak. Then click on the OK button. This
will add the Data Analysis command to the Tools menu.
In this exercise, you will use the Moving Average Data Analysis tool to help a
company to project inventory levels in a forecast period, based on past
history. You are also going to create a chart to display the results.
1. Make sure that the Workbook window is clear. Then open the file named Data Analysis.xls.
3. Click in the Input Range box. Then You will now specify the number of data
click on cell B6, and select B6:J6. points to use for calculating the moving
average.
4. In the Interval box, type: 3 You will now enter the cell address where
you want the results to start.
5. Click in the Output box, and then
click on cell B12.
6. Select the Chart Output check box. The results should now resemble the
Click on the OK button. worksheet displayed below.
2. Create a moving average chart using an interval of 2 for the second item in the worksheet (FX34).
Solver is another Excel tool used for “what-if” analysis. It works with a group of
adjustable cells that are related to a formula in a target cell. Solver changes the
values in the adjustable cells that you specify, to get a result for the target cell. You
can also specify constraints for specific cells that affect the target cell formula.
In the Solver Parameters dialog box, which is subsequently displayed, enter a cell
reference or name for the target cell.
Select the value of the target Equal To option. Min will have the smallest possible value
for the target cell. Max will have the highest possible value, and Value of will be a
specific value that you type in the box for the target cell.
Enter a cell reference or name for each adjustable cell in the By Changing Cells box.
The adjustable cells must be linked to the formula in the target cell. Cell names or
references (up to 200) must be separated by commas if they are nonadjacent. Solver
can automatically propose adjustable cells if you click on the Guess button.
In the Solver Results dialog box, which is then displayed, either accept the solution by
clicking on the OK button, or restore the original data by selecting the Restore Original
Values option, and then clicking on the OK button.
If Solver is not available on the Tools menu, choose the Tools, Add-Ins command
and select Solver. Then click on the OK button. This will add Solver to the Tools
menu.
In this exercise, you will use Solver to perform what-if analysis. You are going to
modify an existing profit forecast worksheet to determine what changes are
necessary, to increase the profit to a specific amount, while restricting one or more
parameters.
1. Make sure that the Workbook window is clear. Then open the file named What-If Analysis.xls.
2. Select Value of. Click in the Value of The target value is set. You will specify
box and type: 300000 that the sales volume can change, but
the overhead is fixed.
3. Click in the By Changing Cells box. The adjustable cell reference is entered.
Then click on cell B7.
4. Click on the Add button. The Add Constraint dialog box is
displayed (as illustrated below). You will
specify that the overhead cannot change.
5. Click in the Cell Reference box. The Constraint parameters are set and
Then click on cell B12. Click on the the Solver Parameters dialog box is
down arrow and select the = sign. displayed.
Enter B12 in the Constraint box.
Click on the OK button.
6. Click on the Solve button. The Solver Results dialog box is
displayed. You will accept the solution.
7. Click on the OK button. The worksheet is recalculated (as
illustrated below). Notice the changes
that have been made to the worksheet
entries to achieve the profit target of
$300,000.
2. Use Solver to create a worksheet that has a profit value of $200,000. Choose the Guess option for changing
cells, and no restraints.
7.8 Summary
Merge scenarios from different Use the Merge button in the Scenario
workbooks. Manager dialog box.
Use Solver for what-if analysis. Use the Tools, Solver command.
Use the Data Analysis tool. Choose the Tools, Data Analysis
command.
FILTERING AND
SUMMARIZING
WORKSHEET DATA
This section discusses methods for filtering worksheet data, as well as methods
for generating summary information for worksheet data. In it, you will learn
how to:
After sorting the records of a list to your requirements, you can generate subtotals
for the numeric entries, along with a grand total of the subtotals. For example, if
you have sorted sales records by salesperson, you could total the sales of each
individual, as illustrated below.
To display a grand total, make sure that the Summary below data option is selected.
In this exercise, you will add subtotals and a grand total to the current list.
1. Open the file named Sales List #1.xls. (Records should be sorted first by the entries in the LAST
NAME field, then by the entries in the DATE field, and then by the entries in the PRODUCT field.)
2. Make sure that LAST NAME appears The subtotal options are set.
in the At each change in box, that
Sum appears in the Use function
box and that ORDER TOTAL is
selected in the Add subtotal to box.
By filtering a list, you can extract and summarize subsets of data. The Data, Filter,
Advanced Filter command lets you use advanced criteria to filter a list. Do not
confuse this command with the Data, Filter, AutoFilter command learned in the
Excel 2003 Intermediate level course.
Create the criteria range for the list, above the range you want to filter. The criteria
range must have column labels. Allow at least 2 blank rows below the column labels to
be used for entering filtering criteria. Make sure that there is at least 1 blank row
separating the criteria range from the list to be filtered.
Enter the criteria that you want to match, in the row/s below the criteria range column
labels. If you enter more than one condition in the same row, the list will be filtered only
if all criteria in that row are satisfied. If you enter multiple conditions in a single column,
the list will be filtered if either of the criteria in the column is satisfied.
To filter the list and only display results that match your criteria, select Filter the list, in
place.
To filter the list and display the results in another area of your worksheet, select Copy to
another location and specify where the result should be placed.
In this exercise, you will apply an advanced filter to the current list.
7. Specify the Criteria range as The criteria range now consists of 2 rows
$A$3:$F$4. including the label row. So far, only one
condition has been entered in row 4. You
will accept the default setting for filtering
the list in the existing place.
8. Click on the OK button. All records that contain radios are
displayed (as illustrated below).
1. Open the file named Sales List #2.xls. Filter the list to display the records for sales made by
salesperson Brown or Evans in which the order total exceeds $300. (HINT: To do this, perform the
filter operation by defining the criteria range to include the label heading row and two additional rows.
Begin by entering the criteria for each person in separate rows. Use >300 to display “exceeds $300”.
In a previous exercise, you created an outline in an Excel list when you added
subtotals to the list. You can also use Excel's Outline feature to outline any
worksheet containing related data with numeric subtotals and/or a grand total.
The next level includes formulas based on the formulas at the level immediately below,
and so on.
By using the buttons that appear above and to the left of the worksheet display, you
can collapse, as well as expand the outline, to display the desired number of levels.
To outline a worksheet:
You can also use the Data, Group and Outline, Group command to manually
group rows and/or columns of a worksheet. (This technique is demonstrated in the
Further Practice that follows the next exercise.)
In this exercise, you will outline a worksheet. You will then collapse and expand
the worksheet outline.
1. Make sure that the Workbook window is clear. Then open the file named Summary Outline.xls.
This activity demonstrates the manual method for grouping data in a worksheet.
1. With Summary Outline.xls open, select rows 4 through 8. Then choose the Data, Group and
Outline, Group command to group those rows.
6. Select the range A3:G15. (Only three rows should appear in the selection.)
7. Click on the Chart Wizard button on the Standard toolbar. Using the Chart Wizard, create a
chart of the selected data. (Choose any appropriate chart type and subtype, and insert the chart on the
current worksheet.) Notice that only the data displayed in the worksheet is represented in the chart.
8. Display all data in the worksheet. Notice that all of the worksheet data is now represented in the
chart.
9. Select rows 4 through 15. Then choose the Data, Group and Outline, Ungroup command to
remove the highest level group.
10. Choose the Data, Group and Outline, Clear Outline command to remove the other two groups.
8.5 Summary
Remove subtotals (and grand Use the Remove All button in the
total) from a list. Subtotal dialog box.
Apply an advanced filter to a list. Use the Data, Filter, Advanced Filter
command.
LINKING MULTIPLE
WORKBOOKS
This section discusses the method for linking two or more workbooks to perform
similar consolidation operations as in a single workbook. In it, you will learn how to:
Create a workspace.
The procedure for entering a formula to link multiple workbooks is essentially the
same as that for entering one to link multiple worksheets in a single workbook.
However, in addition to including the appropriate worksheet names with the cell
references, you must also include the workbook names (filenames), enclosed in
square brackets, for example:
1. You must also enclose the workbook name/worksheet name in single quotes (as indicated above)
if either or both include non-alphabetic characters.
3. If you use the "pointing" method to specify cells, the workbook names, worksheet names,
exclamation points, etc. are entered automatically.
1. Make sure that all workbooks are closed. Then open the workbooks named Canada Sales.xls,
USA Sales.xls and North America Summary.xls. (To do this in one operation, press and hold down
[CTRL] while selecting each of the filenames in the Open dialog box.)
2. If North America Summary.xls is not currently displayed, choose the Window command, and
click on North America Summary.xls (or North America Summary) in the list of open workbooks
at the bottom of the Window menu. (Sheet1 of this workbook will be used to summarize the totals in
row 8 of USA Sales.xls and Canada Sales.xls.)
1. Open the workbooks named Region A.xls, Region B.xls and Region C.xls.
3. In Sheet1 of the new workbook, enter the appropriate labels and formulas to summarize the
numeric data in the three other workbooks by region.
6. Open the workbook named Region A.xls. Make some changes in the numeric data (not in the
formulas). Save the workbook, and then close it.
7. Open the workbook named Region Summary.xls. When a message box appears, displaying
information about updating links, click on the Update button.
8. Verify that the summary information in the worksheet has been updated.
To save you time in opening and closing multiple workbooks, Excel allows you to save
two or more workbooks in a special workspace. Subsequently opening this
workspace automatically opens all associated workbooks.
To create a workspace:
With the appropriate workbooks open, choose the File, Save Workspace command.
In the Save Workspace dialog box, which is subsequently displayed, enter a name for
the workspace file.
In this exercise, you will create a workspace that includes the Canada Sales.xls,
USA Sales.xls and North America Summary.xls workbooks.
1. Make sure that the Workbook window is clear. Then open the workbooks named Canada
Sales.xls, USA Sales.xls and North America Summary.xls.
2. Type: North America Sales The filename is entered, and the dialog
Click on the Save button (in the box is closed. You are then asked if you
dialog box). want to save the changes in North
America Summary.xls.
(Optional)
1. Open the workbooks named Region A.xls, Region B.xls, Region C.xls and Region
Summary.xls.
9.4 Summary
AUDITING A
WORKSHEET
10 AUDITING A WORKSHEET
10.1 Introduction
Select the appropriate cell. (If you are tracing a precedent, the cell must contain a
formula.)
When you use any of the above commands or buttons, a blue tracing arrow is
displayed, connecting the selected cell to each of its precedents or dependents,
assuming, of course, that the cell has a precedent or dependent.
Choose the Tools, Formula Auditing, Remove All Arrows command, or click on the
Remove Precedent Arrows, Remove Dependent Arrows or Remove All Arrows
button on the Formula Auditing toolbar.
arrow displays the Go To dialog box in which the precedent/dependent cell(s) is/are listed. (To trace
precedents or dependents in another workbook, that workbook must be open.)
2. You can also the trace the precedents of a cell containing a formula by selecting the cell and by
pressing [F2]. Doing this displays each operand of the formula in a different color and marks the
cell(s) referenced by each operand with a border of the same color. (This technique is demonstrated in
the next exercise.)
In this exercise, you will trace the precedents and dependents of various cells
in a worksheet.
1. Make sure that all workbooks are closed. Then open the file named International Summary.xls.
3. Choose the Tools, Formula A blue arrow pointing from the selected
Auditing command, followed by cell to cell G5 (which uses the value in
Trace Dependents. cell B9) is displayed.
4. Choose the Tools, Formula A blue arrow pointing from cell G5 to cell
Auditing command, followed by K5 (which uses the value in cell G5) is
Trace Dependents. displayed. The worksheet should now
appear as illustrated below.
5. Choose the Tools, Formula All tracing arrows are removed from the
Auditing command, followed by worksheet. You will now use the Formula
Remove All Arrows. Auditing toolbar.
6. Choose the Tools, Formula The Formula Auditing toolbar is displayed
Auditing command, followed by (as illustrated below).
Show Formula Auditing Toolbar.
7. Select cell G5. You will now trace the precedents and
dependents of this cell.
8. Click on the Trace Precedents Blue arrows pointing from cells B9, B17
button on the Formula Auditing and B25 to the selected cell are
toolbar. displayed.
9. Click again on the Trace The precedents of cells B9, B17 and B25
Precedents button. are also indicated.
10. Click on the Remove Precedent The second set of tracing arrows is
Arrows button on the Formula removed from the worksheet.
Auditing toolbar.
11. Click again on the Remove The first set of tracing arrows is removed
Precedent Arrows button. from the worksheet.
12. Click on the Trace Dependents A blue arrow pointing from the selected
button on the Formula Auditing cell to cell K5 is displayed.
toolbar.
13. Click on the Remove Dependent The tracing arrow is removed from the
Arrows button on the Formula worksheet. You will now use the
Auditing toolbar. alternate method for tracing precedents.
2. Trace the dependents of cell C4 (which contains the overtime rate of pay). (Repeat the procedure
until tracing arrows can no longer be added.)
4. Trace the precedents of cell F11 (which contains the total pay for all individuals). (Repeat the
procedure until tracing arrows can no longer be added.)
7. Remove the Formula Auditing toolbar from the Application window (by clicking on the Close
button on the Title bar of the toolbar).
Using the Tools, Formula Auditing, Trace Error command or the Trace Error
button on the Formula Auditing toolbar, you can quickly find the source of an error
resulting from an incorrect formula.
Excel uses rules to check for common problems in formulas. These rules can be
turned on or off individually.
In the Options dialog box, which is subsequently displayed, choose the Error Checking
tab.
Make sure that the Enable background error checking and the appropriate rules
check boxes, are selected.
Click on the OK button. If a cell contains a formula that breaks a rule, a colored triangle
appears in the top-left corner of that cell. You can choose to correct or ignore the error.
In this exercise, you will enable background error checking, and then create an
intentional error in a formula. You will then use the Trace Error button to find
the source of the error.
3. Make sure that the Enable This will ensure that automatic error
background error checking check checking can take place. You will now
box is selected. enable the rule which reports on
formulas referring to empty cells.
4. Make sure that Formulas referring
to empty cells rule is selected.
5. Click on the OK button. You will now revise a formula in the
worksheet, thereby creating an error.
6. Select cell B8. Delete the cell entry. A colored triangle appears in the top-left
corner of cell B9 indicating that a rule
has been broken.
7. Select cell B9. A small Trace Error button is displayed to
the left of the selected cell.
9. Select cell B8. Type: 120 The colored triangle disappears from the
Then press[ENTER]. top-left corner of cell B9. The error has
been corrected. You will now create
another intentional error.
10. Select cell C9. Edit the function in The error message #NAME? appears in
this cell to read =SSUM(C5:C8). cell C9, as well as in cells H5 and K5
Then press [ENTER]. (both of which depend on the value in
cell C9), since the program does not
recognize the SSUM function.
11. Select cell K5. A small Trace Error button is displayed to
the left of the selected cell.
Using the Tools, Formula Auditing, Show Watch Window command, you can
quickly monitor cells and their formulas even when they are out of view. This is
especially useful for large worksheets.
Choose the Tools, Formula Auditing, Show Watch Window, Add Watch command.
Alternatively, choose the Tools, Formula Auditing, Show Formula Auditing Toolbar
command, then click on the Show Watch Window button, and click on Add Watch.
In the Add Watch dialog box, which is subsequently displayed, select Add.
Select the cells in the watch window that you want to remove.
The Evaluate Formula tool is another very useful auditing feature in Excel. It allows
you to evaluate the different parts of a nested formula in the order in which the
formula is resolved.
Choose the Tools, Formula Auditing, Show Formula Auditing Toolbar command.
From the Evaluate Formula dialog box, which is subsequently displayed, step through the
calculation of the formula result by clicking on the Evaluate button as many times as
necessary, to reach the answer.
In this exercise, you will open a watch window and monitor cell contents. You
will also evaluate a formula using the Evaluate Formula tool.
4. Select cell A14. You will now type a formula that will be
used to demonstrate how the Evaluate
Formula tool analyzes a conditional
formula.
5. Type:
=IF(C11<=4000,IF(C11<2500,”P
ayroll too low”,”Payroll
acceptable”),”Payroll too high”)
10. Click on the Evaluate button as Payroll too low should be displayed in
necessary and watch the progression this example.
of the formula calculation until the
result is shown.
11. Click on the Close button. The Evaluate Formula dialog box is
closed.
12. Close the workbook, the Formula
Auditing toolbar, and the Watch
Window dialog box.
10.5 Summary
Use the Evaluate Formula tool. Click on the Evaluate Formula button
on the Formula Auditing toolbar.
CREATING A
CUSTOM
WORKBOOK
TEMPLATE
This section discusses the methods for setting up and using a custom workbook
template. In it, you will learn how to:
In the worksheet(s), enter the necessary labels and formulas. Also, apply the desired
formatting.
Choose the File, Save command, or click on the Save button on the Standard toolbar.
In the Save As dialog box, which is subsequently displayed, enter a name for the
template file.
Expand the Save as type box, and select the Template option.
You can also create a worksheet template (which is actually a workbook template
with only one worksheet) by using a procedure similar to that described above. In
this section, however, you will be concerned only with workbook templates.
1. Make sure that all workbooks are closed. Then open a new workbook (unless a new workbook is
currently open).
B3: North
C3: South
D3: East
E3: West
F3: Central
4. Bold the text of the above labels, The labels are reformatted.
and center them in their respective
cells.
5. Enter the specified labels into the
following cells:
A4: Lemon
A5: Lime
A6: Orange
A7: Cherry
A8: Grape
A9: Totals
6. Italicize the text of the labels in The labels are reformatted.
the range A4:A8. Bold the text of
the label in cell A9.
7. Increase the width of columns A
through F to 9.
11. Click on the Save button. The Save As dialog box is displayed.
12. Type: Soft Drink Sales The filename is entered.
13. Expand the Save as type box, and The file type is selected.
click on the Template option.
14. Click on the Save button (in the The template is saved in a file named
dialog box). Soft Drink Sales.xlt.
The Spreadsheet Solutions panel of the Templates dialog box (which is displayed by
selecting the On my computer option in the New Workbook task pane) lists a
number of predesigned templates for setting up common types of Excel workbooks.
In the Style dialog box, which is subsequently displayed, click on the Modify button.
In the Format Cells dialog box, which is then displayed, set the desired format
option(s).
Click on the OK button to return to the Style dialog box. Then click on the OK button to
close that dialog box.
You can create a new style by using a procedure similar to that described above.
Before clicking on the Modify button, however, you must enter a name for the style.
After defining the formatting for the style, you can then either add the style to the
style list by clicking on the Add button or add the style to the style list and apply it to
the current cell(s) by clicking on the OK button.
In this exercise, you will modify the default (Normal) style of the current
workbook template.
2. Click on the Modify button. The Format Cells dialog box is displayed.
You will now reset the format for numeric
entries.
3. Display the Number panel of the
dialog box if it is not currently
displayed.
Once you have created a workbook template, you can use it as a basis for any new
workbook. The workbook is given a temporary name (for example, Soft Drink Sales1)
until it is saved under a different name.
In the New Workbook task pane, which is subsequently displayed, select the On my
computer option.
On the General panel of the Templates dialog box, which is then displayed, click on the
icon for the template you wish to use.
In this exercise, you will create a new workbook that is based on your Soft
Drink Sales template.
The range B10:F10 should contain formulas to total the entries in columns B
through F. Notice the adjustment in the width of column A. Notice also the
formatting that has been applied to various entries, as well as the borders that
have been added.
3. Modify the Normal style for the template by selecting a new font of your choice and by resetting
the number format so that values, including the totals, will appear with a dollar sign and 0 decimal
places.
8. In cell A2 of Sheet1, enter the label July. Then enter data of your choice into the range B5:F9.
9. Save the workbook (in the folder in which the course data files are stored) in a file named
Beverage Sales (July).xls.
11.5 Summary
Create a new workbook template. Select the Template option in the Save
as type box in the Save As dialog box.
Base a new workbook on a custom Use the File, New command and the On
workbook template. my computer option in the New
Workbook task pane.
USING ADVANCED
FUNCTIONS
It is assumed that you are familiar with such Excel functions as SUM, AVERAGE,
MAX and MIN. This section continues the discussion of functions. In it, you will learn
how to:
VLOOKUP(Lookup_Value,Table_Array,Column_Index_Number)
The entries in the first column of the lookup table should be sorted in ascending
order. Otherwise, you must include the optional Range_Lookup argument of FALSE
after the Column_Index_Number argument in order for the VLOOKUP function to
return the correct entry.
In this exercise, you will use the VLOOKUP function to retrieve several entries from
a vertical lookup table.
1. Make sure that all workbooks are closed. Then open the file named Sales Transactions #1.xls.
In Sheet2 of this workbook, you will create a vertical lookup table. This table will
include a list of employee initials, along with the names the initials represent. In
Sheet1 of the workbook, you will then enter initials, along with VLOOKUP
functions, to display the detail information.
A1: AB
A2: CD
A3: EF
A4: GH
3. Select cell B1. Then enter the Next, you will assign a range name to the
specified names into the following cells in which the table appears.
cells:
14. Click on the OK button. The dialog box is closed, and the order
numbers are entered.
15. Cancel the selection. The worksheet should now appear similar
to that illustrated below.
1. With Sales Transactions #1.xls open, enter the following information into the range D1:F6 of
Sheet2:
3. Assign the name TABLE2 to the range in which the table appears.
=VLOOKUP(D5,TABLE2,2)
=VLOOKUP(D5,TABLE2,3)
8. Complete the worksheet by entering items codes of your choice into the range D6:D12. Apply
the Currency with 0 decimal places format to the PRICE entries. When you are finished, the
worksheet should appear similar to that illustrated on the following page. (The actual ITEM entries, of
course, will depend on what you have entered into column D.)
Excel also provides an HLOOKUP function, which is similar to the VLOOKUP function,
except that it is used to locate a particular entry in the top row of a horizontal
lookup table and return a label or value in the column in which that entry appears.
HLOOKUP(Lookup_Value,Table_Array,Row_Index_Number)
The entries in the first row of the lookup table should be sorted in ascending order.
Otherwise, you must include the optional Range_Lookup argument of FALSE after
the Row_Index_Number argument in order for the HLOOKUP function to return the
correct entry.
In this exercise, you will use the HLOOKUP function to retrieve several entries
from a horizontal lookup table.
1. Make sure that the Workbook window is clear. Then open the workbook named Sales
Transactions #2.xls.
Notice that Sheet1 of this workbook is the same as Sheet1 of the Sales
Transactions #1 workbook, with data already entered into columns A, B and D.
(Optional)
1. With Sales Transactions #2.xls open, enter the appropriate HLOOKUP functions into cells E5
and F5 to display the ITEM and PRICE entries, respectively.
3. Apply the Currency with 0 decimal places format to the PRICE entries.
The DSUM function is used to add the numbers in a column of a database or list, that
match specific criteria.
=DSUM(Database,Field,Criteria)
=DAVERAGE(Database,Field,Criteria)
The Database is the range of cells that make up the database. The Field specifies
which column is used in the function. The field can be the column heading enclosed
in double quotation marks, or a number that represents the position of the column
within the database. The first column would be represented by a 1, the second by a
2, etc. The Criteria is the range of cells that contains the conditions you specify.
Any range can be used, provided that it includes at least one column heading and
one cell below the column heading, for specifying a condition for that column.
In this exercise, you will use the DSUM and DAVERAGE functions to calculate the
total salaries for all clerks, and then the average medical insurance
payments for all managers.
1. Make sure that the Workbook window is clear. Then open the workbook named Staff Database.xls.
4. Enter the specified label into the This represents the criteria field. Next,
following cell: you will enter the DAVERAGE function to
C4: Manager calculate the average medical insurance
payments for all managers.
(Optional)
1. With Staff Database.xls open, enter the appropriate DSUM function into cell A24 to calculate
the total salaries for all secretaries earning more than $25,000.
If you have more than one condition as required in the example above, each
condition must be placed below the appropriate field heading in the same row. In this
example, you will type secretary in cell A4, and >25000 in cell E4. Both of these
conditions must be met in order to get a positive result.
12.5 Summary
NAMING RANGES
13 NAMING RANGES
13.1 Introduction
This section discusses the methods for assigning names to ranges and using
those names instead of cell references. In it, you will learn how to:
A range, as you know, is normally identified by the references for its first and last
cells (for example, A1:A10 or B5:E20). You can also assign a special name to any
range (as well as to a single cell) and then use that name, in place of the cell
references, to identify the range.
The number of named ranges in a workbook is limited only by computer memory. All
names within a particular workbook, however, must be unique.
Select the cell(s) that is/are to be named. (The selection can include contiguous, as well
as non-contiguous, cells.)
In the Define Name dialog box, which is subsequently displayed, enter the name for the
selection.
Press [ENTER].
Name Box
1. You can also use the Insert, Name, Create command to name a range by giving it the name that
appears in an adjacent label. (This technique is demonstrated in the next exercise.)
2. A range name can include letters, numbers, periods and underscores. (The first character must be
a letter or an underscore.) Spaces are not allowed. The name, furthermore, cannot be the same as a
cell reference.
3. The program does not distinguish between uppercase and lowercase characters in a range name.
For example, the names "WEEK1," "Week1" and "week1" are considered to be the same.
1. Make sure that all workbooks are closed. Then open the file named January Sales.xls.
10. Click on the OK button. The dialog box is closed, and the range
names are assigned.
11. Cancel the selection. Then save The changes are saved.
the workbook.
1. With January Sales.xls open, use the Insert, Name, Define command or the Name box to assign
the names Week2, Week3 and Week4 to entries in the appropriate columns.
Since a range name identifies specific cells, you can use it in a formula in place of the
references for those cells. This can save time in building formulas, especially when
specifying ranges in a large worksheet or when linking individual worksheets within a
workbook.
1. With January Sales.xls open, enter a SUM function into cell F4 to total the entries in the range
named Vanilla.
2. Enter SUM functions to total the entries in the ranges named Cherry, Apricot, Lemon and
Coffee.
Using the Name box or [F5] (the "Go to" key), you can quickly select any named
range in a workbook.
In this exercise, you will select various named ranges in the current
worksheet.
4. Click on Week4. Then click on the The dialog box is closed, and the
OK button. specified range is selected.
5. Optionally, use the Name box and/or
[F5] to select other named ranges
in the current worksheet.
6. Close the workbook. The worksheet is cleared from the
screen.
To facilitate your understanding of range name concepts, you have used a relatively
small worksheet in this section. Named ranges are especially useful in large
worksheets, as well as in multiple-sheet workbooks, since they can greatly simplify
worksheet navigation.
13.5 Summary
Use a range name in a formula. Enter the range name in place of the
cell references.
ADVANCED DATA
ENTRY AND
FORMATTING
TECHNIQUES
To prevent the input of invalid data into a worksheet, Excel allows you to restrict the
entries that are allowed in a particular cell or range of cells. This is accomplished by
specifying the condition an entry must satisfy to be considered valid.
On the Settings panel of the Data Validation dialog box, which is subsequently displayed:
Expand the Allow box, and select the type of data that is to be allowed.
Expand the Data box, and select the appropriate operator, if necessary.
To prevent the entry of blank (null) values, deselect the Ignore blank option.
On the Input Message panel of the dialog box, enter an optional input message. (This
message appears next to a restricted cell when it is selected.)
On the Error Alert panel of the dialog box, select a message box style, and enter an
optional error message. (This message box and message appear when an invalid entry
is made.)
2. If you are using a data diskette (instead of storing the course data files on the hard disk), insert that
diskette into the appropriate drive. Then start Excel.
3. If necessary, reset the working folder with the Tools, Options command.
File extensions may or may not appear in file listings on your screen.
3. Expand the Allow box (by clicking on Both whole numbers and decimal
the down arrow), and click on numbers will be allowed in the field. You
Decimal. will accept the default operator
(between).
4. Click in the Minimum box. The minimum value allowed in the field
Type: 0 (0) is entered, and the insertion point
Press [TAB]. moves to the Maximum box.
5. Type: 10000 The maximum value allowed in the field
(10,000) is entered.
6. Click on the Input Message tab. The Input Message panel of the dialog
box is displayed (as illustrated on the
following page).
7. Click in the Input message box. The message you have entered will
Type: Enter sales for Week 1 appear next to a restricted cell when it is
selected.
8. Click on the Error Alert tab. The Error Alert panel of the dialog box is
displayed (as illustrated on the following
page).
9. Expand the Style box, and click on A warning box will appear when an
Warning. invalid entry is made.
16. Click on the Yes button. The warning box is closed, the value is
entered into cell B6, and the cell pointer
moves to cell B7. You will now enter
another value that is outside the range of
valid entries.
17. Type: 19800 The warning box is redisplayed. This
Press [ENTER]. time you will reject the entry.
18. Choose the No button. The warning box is closed, and the entry
in cell B7 is highlighted.
NOTE: You can "choose" a button
either by clicking on it or by pressing
[ENTER].
19. Type: 9800 The new value replaces the previous
Press [ENTER]. entry, and the cell pointer moves to cell
B8.
20. Enter values of your choice into the
remainder of the selected range
(cells B8, B9 and B10).
21. Save the workbook. The changes are saved.
1. With Weekly Sales.xls open, restrict cell entries in the range C4:C10 to values between 0 and
10000. (Enter messages of your choice on the Input Message and Error Alert panels of the Data
Validation dialog box. Set the appropriate option so that a warning box appears when a value outside
the specified range of valid entries is input.)
2. Enter data of your choice into the range C4:C10. (Enter values that are outside the specified
range of valid entries to display the warning box.)
3. When you are finished, save the workbook, and then close it.
You can also require a cell entry to match an entry in a predefined list.
On the Settings panel of the Data Validation dialog box, which is subsequently displayed:
In the Source box, specify the range in which the list of valid entries appears.
On the Input Message panel of the dialog box, enter an optional input message.
On the Error Alert panel of the dialog box, select a message box style, and enter an
optional error message.
In this exercise, you will restrict cell entries to specific entries in a list.
1. Make sure that the Workbook window is clear. Then open the file named Final Exam.xls.
13. Choose the Retry button. The error box is closed, and the entry in
cell D6 is highlighted.
If an entry does not meet its data validation criteria, the relevant cell(s) can be
circled to indicate an error. This feature is enabled by choosing the Tools, Formula
Auditing, Show Auditing Toolbar command, and then clicking on the Circle
Invalid Data button. The circle is removed by clicking on the Clear Validation
Circles button, or by entering valid data in the cell.
1. Open the file named Final Exam Information.xls. Restrict cell entries in the range D4:D10 to Whole
numbers between 1 and 10. Uncheck the Show input message when cell selected, and Show error alert
after invalid data is entered check boxes in the Input Message and Error Alert panels of the Data Validation
dialog box.
2. Enter values outside the specified range of valid entries into the range D4:D10.
3. Choose the Tools, Formula Auditing, Show Auditing Toolbar command, and then click on the Circle Invalid
Data button.
If none of Excel's predefined number formats are acceptable for certain entries, you
can create your own custom number format.
On the Number panel of the Format Cells dialog box, select the Custom option in the
Category box.
In the Type box, select a format code that is similar to the code you wish to define.
The following placeholders can be used to represent digits in a number format code:
Placeholder Description
# Displays only significant digits; does not display insignificant
zeros.
0 (zero) Displays insignificant zeros when a number includes fewer
digits than what is specified in the format code.
? Adds spaces for insignificant zeros on either side of the
decimal point so that entries are aligned on the decimal
point.
You can display a numeric entry in the respective color by preceding the format code
with one of the following:
[Black]
[Blue]
[Cyan]
[Green]
[Magenta]
[Red]
[Yellow]
[White]
You can also display a numeric entry with added text (for example, $25.50 total cost)
by including the text, in quotation marks, in the format code.
1. If an entry includes more digits to the right of the decimal point than are specified in the format
code, the entry is rounded to as many digits as there are placeholders. If an entry includes more digits
to the left of the decimal point than are specified in the format code, the additional digits are displayed.
2. You can include a thousands separator in a number format code by including a comma within the
code. (Entering a comma at the end of the code divides the number by 1000, as demonstrated in the
next exercise.)
1. Make sure that the Workbook window is clear. Then open the file named Sales Performance
#1.xls.
5. Click on the OK button. The dialog box is closed, and the new
format is applied to the selected entries.
You will now create another number
format by modifying the current format.
6. Make sure that the range B4:D11 is
still selected. Then redisplay the
Format Cells dialog box.
7. Click in the edit box above the list of The new format will display positive
Type options. Then edit the entries in blue and negative entries in
current format code to read as magenta.
follows:
[Blue]$#,##0;[Magenta]-$#,##0
A1: 123
A2: 123.4
A3: 123.45
A4: 123.456
3. Create a custom number format that aligns entries on the decimal point, and apply the new
format to the entries in the range A1:A4. (HINT: The format code ?.??? displays any number of
digits to the left of the decimal point and three digits to the right of the decimal point.)
5. Create a custom number format that displays an entry as a currency value followed by the text
per hour, and apply the new format to the entry in cell B1. (HINT: The format code $0.00 "text"
displays an entry with a dollar sign and 2 decimal points and displays the specified text to the right of
the entry.)
Excel's Conditional Formatting feature allows you to specify a format (for example,
a new font color or shading) that is to be applied to specific worksheet cells when one
or more conditions are met. It is an important data-tracking tool since it can help
identify worksheet entries that exceed, or fall short of, a particular amount.
In the Conditional Formatting dialog box, which is subsequently displayed, define the first
condition. Then click on the Format button.
In the Format Cells dialog box, which is then displayed, specify the format option(s)
that is/are to be applied when the specified condition is met. Then click on the OK
button to return to the Conditional Formatting dialog box.
To define another condition, click on the Add >> button, and repeat the previous two
steps. (You can define up to three conditions.)
1. Make sure that the Workbook window is clear. Then open the file named Sales Performance
#2.xls.
20. Select cell C4. Cell C4 is now shaded with the color
Type: 22000 designating an entry of less than
Press [ENTER]. $23,000.
21. Click on the Undo button. The previous entry ($24,000) is restored
in cell C4, and the previous shading is
reapplied to that cell.
22. Save the workbook. The changes are saved.
1. With Sales Performance #2.xls open, modify the formatting of the range C4:C10 so that only
those cells containing an entry of $25,000 or more are shaded. (To do this, you will need to delete the
second condition. You can delete one or more conditions by clicking on the Delete button in the
Conditional Formatting dialog box, by specifying the condition(s) to be deleted in the Delete
Conditional Format dialog box, and by clicking on the OK button.)
14.6 Summary
Create a custom number format. Select the Custom option in the Category
box in the Format Cells
dialog box.
INTRODUCTION
15 INTRODUCTION
Welcome to this one-day Microsoft Office Excel 2003 Advanced course. The
primary objective of the course is to broaden a user's knowledge of Microsoft Office
Excel 2003, hereafter referred to as simply "Excel," in most cases. More detailed
objectives are listed later in this section.
You will also need Microsoft Word to complete the section regarding the importing
and exporting of Excel data.
Some experience in working with Excel is also required. It is recommended that you
complete the Microsoft Office Excel 2003 Introduction and Intermediate courses prior
to doing this course. In particular, at the very least, you should be able to:
Perform basic worksheet editing operations, such as copying and moving cell
entries, clearing cells, and inserting rows and columns.
Create a workspace.
A number of conventions are used in this manual. Please be sure that you
understand them.
The course is divided into sections. Most sections consist of an introduction and
various subsections.
Exercises are presented in two columns, with each step clearly numbered. Your
instructions are in the column headed ACTION (You Do); the second column headed
COMPUTER RESPONSE / Comments describes the program response and/or may
include other comments. Be sure to complete each step in the order shown.
Example 1
This means that you should select the File command on the Menu bar.
Example 2
This means that you should first select the File command on the Menu bar and then
select the Open option on the File menu.
Example 3
When a shortcut button is available for a command sequence, that button is usually
indicated.
This means that you should position the mouse pointer on the Print button and then
click the mouse button. (When clicking on any command, button or other screen
object, or when dragging a screen object, use the left mouse button unless otherwise
instructed.)
Example 4
This means that you should type the words Department Budget and then press the
[ENTER] key. (In such instructions, special keys, such as [ENTER], [ESC] and [F1], can
be easily identified because they are always enclosed in square brackets.)
Example 5
When you are required to press two keys at the same time, the + sign is used.
This means that you should press the [CTRL] key and, while holding it down, press
the letter O.
At several points throughout the course, Further Practice activities are provided.
These have been included to enable you to review techniques you have learned.
Again, follow the instructions carefully. If necessary, refer to any notes you may have
taken as you work through these activities.
This course assumes that you are using a mouse. Basic mouse techniques are
summarized below.
ACTION DESCRIPTION
Point Position the mouse pointer on the specified screen item.
Click Press and release the left mouse button.
Double-click Press and release the left mouse button two times in rapid
succession.
Right-click Press and release the right mouse button.
Drag Move the mouse pointer from its initial position to another area of
the screen while holding down the left mouse button.
1. This course assumes that all default Excel settings are in effect when you start the program.
2. What appears on your screen may sometimes vary slightly from what is shown in this manual.