Excel 2003
Excel 2003
E
PL
M
SA
Page 2 - Excel 2003 - Advanced Level Manual
No part of this document may be copied without written permission from Cheltenham Courseware unless
produced under the terms of a courseware site license agreement with Cheltenham Courseware.
All reasonable precautions have been taken in the preparation of this document, including both technical and
non-technical proofing. Cheltenham Courseware and all staff assume no responsibility for any errors or
omissions. No warranties are made, expressed or implied with regard to these notes. Cheltenham Courseware
shall not be responsible for any direct, incidental or consequential damages arising from the use of any material
contained in this document. If you find any errors in these training modules, please inform Cheltenham
Courseware. Whilst every effort is made to eradicate typing or technical mistakes, we apologise for any errors
you may detect. All courses are updated on a regular basis, so your feedback is both valued by us and will help
us to maintain the highest possible standards.
E
FOR TRAINING, SAMPLE, or similar, then it cannot be used as part of a training course, and is made available
purely for content and style review. This is to give you the opportunity to preview our courseware, prior to making
a purchasing decision. Sample versions may not be re-sold to a third party.
Contact Information
PL
Cheltenham Courseware reserves the right to alter the licensing conditions at any time, without prior notice.
Please see the site license agreement available at: www.cheltenhamcourseware.com.au/agreement
USA / Canada
Email: [email protected]
M
Web: www.cheltenhamcourseware.com
UK
Email: [email protected]
Web: www.cctglobal.com
SA
Cheltenham Courseware
Affordable - Customisable - Unbeatable
We provide the training manuals so you can concentrate on the training delivery.
Purchase your IT courseware from a company that has a proven track record.
Questions to ask our competitors
• Do they supply a library of training courses, at a price even remotely close to our low prices?
• Are complete samples of ALL the IT courses available for download so that you can judge the quality?
• If they offer courses on a site license basis, is the full range of courses are included?
• Is the site license an annual license or a one-off payment?
• Are the training materials fully editable and can you add your own name and logos?
• Are the manuals easy to edit using standard 'cut and paste' techniques and can the table of contents
be easily updated, or do I have to use proprietary software to edit the materials?
• Are upgrades and new courses included free of charge for 12 months?
• Are Intranet versions available?
• Are PowerPoint slides included in the price?
If you are unhappy with your current computer courseware supplier, please download our samples
now and switch to our quality driven, cost effective courseware solution.
Contact Details:
UK/Ireland: www.cctglobal.com
USA/Canada: www.cheltenhamcourseware.com
Australia/Rest of the world: www.cheltenhamcourseware.com.au
1995-2007 Cheltenham Courseware Pty. Ltd. Phone: 1300 852 204 Fax: 1300 852 206
Email: [email protected] Internet: http://www. cheltenhamcourseware.com.au
Page 3 - Excel 2003 - Advanced Level Manual
E
ANALYSING DATA .......................................................................................................................................... 29
WHAT-IF ANALYSIS .......................................................................................................................................... 29
GOAL SEEK ...................................................................................................................................................... 30
DATA TABLES ................................................................................................................................................... 31
SCENARIO MANAGER ....................................................................................................................................... 34
PL
SOLVER ............................................................................................................................................................ 39
USING PIVOT TABLES ...................................................................................................................................... 43
REVIEW QUESTIONS ........................................................................................................................................ 48
MACROS AND CUSTOM CONTROLS ......................................................................................................... 49
WORKING WITH MACROS ................................................................................................................................. 49
RUNNING MACROS ........................................................................................................................................... 51
ADDING CUSTOM CONTROLS .......................................................................................................................... 52
REVIEW QUESTIONS ........................................................................................................................................ 54
M
SECURITY AND PROOFING .......................................................................................................................... 56
SECURITY FEATURES ....................................................................................................................................... 56
PROTECTING EXCEL FILES .............................................................................................................................. 57
WORKSHEET PROTECTION .............................................................................................................................. 61
WORKING WITH DIGITAL SIGNATURES ............................................................................................................ 63
CHECKING SPELLING ....................................................................................................................................... 65
USING DATA VALIDATION ................................................................................................................................. 66
SA
E
user environment (with individual profiles). The instructions above may
require modification within a Windows mutliuser environment. Where
possible pre-install the relevant work files prior to use by students/delegates.
PL
M
SA
Importing Data
When you have completed this learning module you will have seen how to:
• Import data from external sources
• Import data into Excel
• Import text files into Excel
• Import text using the Text Import Wizard
• Refresh data from imported text files
• Use Microsoft Query
• Add a data source
• Create a Query
• Query data from the Web
E
• Access the New Web Query dialog box
• Create a new Web Query`
• Save a Web Query
• Set Web Query options
• Run a saved Web Query
• Refresh a Web Query
PL
• Refresh external data without losing the formatting
• Refresh external data automatically
• Data Sources: The data source informs the ODBC Manager about the type of
data being used and its location.
• Microsoft Query: A stand-alone program supplied with Microsoft Excel. It
acts as an interface, allowing you to create queries that are translated into
SQL format.
• ODBC: It stands for Open Database Connectivity, and is a term used to
describe an industry standard used to connect cross-platform databases.
• ODBC Add-in: It allows Excel to communicate with the ODBC Manager
directly (without using the Microsoft Query as an intermediary). It also
provides the SQL.REQUEST worksheet function, as well as providing an
Application Programmers Interface (API) for application developers.
• ODBC Driver: The ODBC Manager uses the ODBC driver as an intermediate
step. ODBC drivers supplied with Excel include Access, dBase, FoxPro,
Paradox, SQL Server, Oracle, Excel Worksheets, and text files.
• ODBC Manager: This is a Microsoft derived technology that allows programs
such as Excel and Microsoft Query to interface with a range of different
databases. When you perform a Microsoft query, an SQL statement is sent to
the ODBC Manager. The ODBC Manager then acts as an intermediary
between the application and the database. This has the advantage that the
same query may be used to access different database servers, including SQL
Server, Oracle, dBase or Paradox.
• Structured Query Language (SQL): An industry standard language used
for database communication. Excel queries using Microsoft Query use SQL
behind the scenes.
E
Importing Data into Excel
• You can import data using the following methods:
PL
Open command: From the main menu, choose File > Open to display the
Open dialog box, and select the data file type from the File of type
dropdown list. You can choose from the following types of file: Access, Lotus
1-2-3, Quattro Pro, Microsoft Works, dBase, SYLK, Data Interchange Format
(DIF), All Web Pages, XML, and previous versions of Excel. The selected file
will be translated by Excel and imported as an Excel spreadsheet.
Export data into text files: From the database application where your data
is stored, you can usually export the data you want into text files. You can
M
then import these text files using the Text Import Wizard.
Web Queries: Microsoft Excel 2003 allows you to query and refresh data
from the Internet.
XML: Microsoft Excel 2003 now allows you to import XML files and map out
individual elements to specified cells in a Worksheet. However, this added
feature is only available in the Professional Edition of Office 2003, and not
other versions of Office. (If you are not sure which Office edition you are
currently using, ask your instructor for assistance).
Pivot Tables: Pivot Tables are useful for accessing and integrating external
databases into Excel. They will be covered in chapter 3 of this manual.
• Text: Text files are plain text with no formatting information except line
returns. Usually this file type contains one record of information per line, but
the means of identifying the fields in a record varies.
• Text (Tab Delimited): With this text file format, tabs are used to identify
fields in a record.
• Formatted Text: Formatted text files make use of position to define fields;
E
each field starts at a defined position on the line. You may find this field type
also referred to as Space Delimited, Fixed Width, or Column Delimited.
• Comma Separated Values (CSV): Commas are used by CSV text files to
delimit (separate) fields. Although these files are called Comma Separated
Values text files, commas are not always used as the delimiter. Examples of
PL
other delimiters include vertical bars (|) and at signs (@).
• Click Open to display the Text Import Wizard - Step 1 of 3 dialog box:
E
•
PL
Excel will analyse the selected text file, and determine the file's data type,
and display a preview of the data to be imported. In the above example,
Excel determined the file to be a Delimited file.
• You can choose to alter the file type selection as needed. If your file contains
M
header rows that you do not want imported, you can change the Start
import at row number to exclude the header rows. When you change the
Start import at row number, the preview will be updated to reflect the
change.
• When you are satisfied with the options selected, click on the Next button to
continue to the Text Import Wizard - Step 2 of 3 dialog box.
SA
Note: You can always use the Back button to go back to the previous dialog
box and revise the options:
E
•
PL
From this dialog box, you can set the delimiters your data contains--choose
the type of Delimiters, select to Treat consecutive delimiters as one,
and define the Text qualifier. The Data preview will display the data
based on your choices.
• When you are satisfied with the options selected, click on the Next button to
continue to the Text Import Wizard - Step 3 of 3 dialog box.
M
Note: You can always use the Back button to go back to the previous dialog
boxes and revise the options:
SA
• From this dialog box, you can determine the data format of each column by
selecting each column in the Data preview area and selecting its Column
data format. If you do not want to import one of the columns, click on the
column in the Data preview area, and select the Do not import column
(skip) radio button in the Column data format area.
• When you are satisfied with the options selected, click on the Finish button
to import the text into Excel.
Note: You can always use the Back button to go back to previous dialog
boxes and revise the options. Alternatively, you can click Cancel to close the
wizard without importing the data:
E
PL
M
Refreshing data from imported text files
• Select the Worksheet that contains external data from a text file.
• From the main menu, choose Data > Refresh Data
OR from the External Data toolbar, click on the Refresh Data icon to
SA
Excel. For illustrations purposes, we will run a query with the NorthWind
Traders database, which is a sample database supplied with Microsoft Access.
• Make sure that Microsoft Query is installed.
• From the main menu, choose Data > Import External Data > New
Database Query to display the Choose Data Source dialog box:
E
•
•
PL
Click on the Databases tab.
With <New Data Source> selected, click OK to display the Create New
Data Source dialog box:
M
SA
• In the field numbered 1, enter a name for the new data source. In our
example, we will enter My Data.
• In the field numbered 2, click on the down arrow and select a driver for your
database. In our example, the selected driver is Microsoft Access Driver
[*.MDB].
• Click Connect. In our example, you will see the ODBC Microsoft Access
Setup dialog box:
E
•
PL
Click on the Select button to display the Select Database dialog box:
M
SA
• Locate and select the database you want. In our example, we will use the
NorthWind Traders database. You will normally find this in the following
location:
E
•
PL
In field 4, you can enter a default table for your data source. In our
example, we will leave this blank, but all the tables in our database are listed
in the dropdown list:
M
• From the Create New Data Source dialog box, click OK to return to the
Choose Data Source dialog box. (Notice that the new data source, My
Data, has been added):
SA
Creating a Query
• From the main menu, choose Data > Import External Data > New
Database Query to display the Choose Data Source dialog box.
• Click on the Databases tab.
• Select the data source you want to use. In our example, we will select My
Data:
E
•
•
PL
Click OK to display the Query Wizard - Choose Columns dialog box.
To add the columns you want to include in your query, locate the columns
you want by expanding the plus icon beside each table, select the column,
and click the right arrow button.
Note: You can add all the columns in a table by selecting the table name and
M
clicking on right arrow button:
SA
In our example, we will add the columns in the Categories and the
Products tables to the query.
• Click Next to continue to the Query Wizard - Filter Data dialog box.
• To add a filter to your query, select the Column you want to filter. In the
Only include rows where: area, select an operand from the first dropdown
list and a column value from the second dropdown list.
Note: You can add another filter by selecting the And or Or radio buttons:
E
PL
In our example, we only want datathat has a CategoryID of 2 or 8.
• Click Next to continue to the Query Wizard - Sort Order dialog box.
M
• To sort your data, select the Column you want in the Sort by dropdown list
and select the Ascending or Descending radio button.
• To display the results of your query in Excel, select the Return Data to
Microsoft Excel radio button.
Note: You can save this query for future use by clicking on the Save Query
button:
E
•
PL
Click Finish to display the Import Data dialog box:
M
SA
• You can determine where you want to place the data. Make your selection
and click OK. In our example, the worksheet may appear as follows:
E
PL
Querying Data from the Web
To access the New Web Query dialog box from Internet Explorer
• In Internet Explorer, browse to the Web page that contains the data you
want.
• From the toolbar, click on the Edit icon arrow, and select Edit with
Microsoft Excel to display the New Web Query dialog box with the Web
page displayed in the preview area:
E
Creating a new Web Query
• Once you have previewed the Web page you want in the New Web Query
PL
dialog box, you can select the data you want to import. The Web Query
function works best with data within HTML table tags. Importable data will
be identified by yellow arrow icons .
Note: To display the yellow arrow icons, click on the Show Icons
button, located at the top of the dialog box.
• From the preview area of the New Web Query dialog box, locate the data
M
you want to import, and click on its corresponding yellow arrow icon. The
icon will change to a green check mark icon to indicate that it is selected.
Note: To import the entire page, click on the yellow arrow icon in the top-left
corner of the preview area.
SA
• When all the data you want to import is selected, click on the Import button
to display the Import Data dialog box:
• From the Import Data dialog box, select the Existing worksheet radio
button to import the data into the existing worksheet, or select the New
worksheet radio button to import the data into a new worksheet. (If you
are importing the data into an existing worksheet, you can place the data in
the cell or cell range you want.)
• To change the properties of the data, click on the Properties button, and
select the options you want in the External Data Range Properties dialog
box:
E
PL
M
• When you are satisfied with the property options, click OK to return to the
SA
Note: It may take a moment to run the Web Query. You can check the
query status by double-clicking the Refresh button.
• Click Save to save the query as a text file with an .iqy file extension.
• From the Edit Web Query dialog box, click Cancel to close the dialog box.
E
PL
• Set the Formatting and Import options you want.
M
• Click OK to apply the options.
exchange rates.
• From the main menu, choose Data > Import External Data > Import
Data to display the Select Data Source dialog box:
• From the Import Data dialog box, select the Existing worksheet radio
button to import the data into the existing worksheet, or select the New
worksheet radio button to import the data into a new worksheet.
• Click OK to import the data.
OR from the External Data toolbar, click on the Refresh Data icon.
E
Refreshing Data
•
•
PL
Refreshing external data without losing the formatting
Select one of the cells that contain external data.
From the main menu, choose Data > Import External Data > Data Range
Properties
OR from the External Data toolbar, click on the Data Range Properties
icon to display the External Data Range Properties dialog box.
M
• To preserve the cell formatting, select the Preserve cell formatting
checkbox.
• To keep any custom column widths, deselect the Adjust column width
checkbox:
SA
OR from the External Data toolbar, click on the Refresh Data icon.
OR from the External Data toolbar, click on the Data Range Properties
icon to display the External Data Range Properties dialog box.
• Select the Refresh data on file open checkbox, or select the Refresh
every checkbox, and set the time period in minutes:
E
• Click OK.
PL
Note: To reduce file size, you can save the Workbook with the query
definition but without the external data. Select the Remove external data
from worksheet before saving checkbox. The data will be automatically
refreshed next time you open the Workbook.
M
Review Questions
How would you:
• Import data into Excel?
• Import text files into Excel?
SA
E
Working with Templates
Using Templates
• When working with spreadsheets, you may wish to use the same layout or
•
PL
design. Instead of re-creating the design, you can create a template.
Templates have the .XLT file extension, and can contain layout and
formatting information, including text and graphics, layouts and styles,
headers and footers, formulas, and macros.
When templates are used to create a new Workbook, a copy is made, leaving
the original template file intact for further use.
M
Creating a Template
• Create a Workbook that contains all layout and formatting elements you want
in your template.
• From the main menu, choose File > Save As to display the Save As dialog
box.
SA
E
•
PL
Click Save to save the template in the Templates folder.
Applying Templates
• From the main menu, choose File > New to display the New Workbook
pane.
M
• From the Template section of the New Workbook pane, click on the blue
On my computer link to display the Templates dialog box:
SA
Note: Excel 2003 allows you to access additional templates on the Microsoft
Office website (note: internet access is required to use this feature). Simply
click on the Templates on Office Online link in the New Workbook pane,
and you will be directed to the Office website, where you can search for the
template you need. Experiment!
E
Working with Styles
Using Styles
•
•
PL
Whereas a template is a collection of layout and formatting information for a
workbook, a style is a collection of formatting information for a cell. Styles
can contain formatting information, including Number, Font, Alignment,
Border, Patterns, and Protection.
You can use styles to reapply pre-defined formatting to multiple cells. When
styles are used to format cells, you can reformat the Worksheet by modifying
the styles. It is possible to copy styles from one Workbook to another.
• Excel 2003 comes with a number of pre-defined styles. By default, all cells
M
are assigned the Normal style.
Creating a Style
• Select the cell that contains the formatting you want in your style.
• From the main menu, choose Format > Style to display the Style dialog
SA
box.
• In the Style name dropdown list box, type a style name.
• Select the attributes (Number, Alignment, Font, Border, Patterns, and
Protection) you want to include in the new style:
E
• Click Add to create the style. Click OK to closes the Style dialog box.
Applying a Style
•
•
•
PL
Select the cell or cell range you want to format.
From the main menu, choose Format > Style to display the Style dialog
box.
From the Style name dropdown list box, select the style you want to use:
M
SA
Editing a Style
• From the main menu, choose Format > Style to display the Style dialog
box.
• From the Style name dropdown list box, select the style you want to edit.
• Click on the Modify button to display the Format Cells dialog box:
E
PL
• Use the tabs to access the attributes you want, and make the changes
needed.
• Click OK to return to the Style dialog box.
M
• Click OK to apply the changes to all cells formatted with this style.
Deleting a Style
• From the main menu, choose Format > Style to display the Style dialog
SA
box.
• From the Style name dropdown list box, select the style you want to delete.
• Click on the Delete button. Click OK to close the Style dialog box.
E
• Click OK to close the Style dialog box.
Review Questions
How would you:
• Create a template?
• Use templates?
• Create a style?
PL
• Use styles?
• Edit a style?
• Delete a style?
M
• Copy styles from another Workbook?
SA
Analysing Data
When you have completed this learning module you will have seen how to:
• Use Goal Seek
• Use a Data Table
• Create a one-variable Data Table
• Create a two-variable Data Table
• Speed up calculations with Data Tables
• Use Scenario Manager
• Add a scenario
• Show a scenario
• Delete a scenario
E
• Edit an existing scenario
• Summarise scenarios
• Use Solver
• Install Solver
• Change a constraint
• Delete a constraint
• Understand Pivot Tables
• Create Pivot Tables
PL
• Drop data into Pivot Tables
• Modify data and refresh Pivot Tables
• Group data within Pivot Tables
M
What-If Analysis
• Excel provides a number of tools to help you find answers to "What-If" type
questions. What-If Analysis allows you to see the effect that input value
changes have on the result of the formulas. For example, what happens to a
car loan payment if you reduced the down payment or increased the interest
rate?
Goal Seek: Allows you to find the correct input to produce the desired
outcome. Simple to use, but limited in power and flexibility.
Data Tables: Allows you to see how the results are affected by changes in
the input values displayed in a table. Simple to use, but limited in power and
flexibility.
Solver: Allows you to find the best solution to complex problems that revolve
around the manipulation of multiple variables and constraints. More difficult
to use, but very powerful and extremely flexible.
Goal Seek
E
• Goal seeking is the means to say, "This is the final value that I want to
achieve, what input value do I need?"
• Excel calculates the input value needed by varying the value in the formula
until the result is achieved.
• From the main menu, choose Tools > Goal Seek to display the Goal Seek
dialog box. The cell reference for the selected cell will appear in the Set cell
text box.
• In the To value text box, enter the end result you want to achieve. In our
example, we want to purchase a more expensive car; enter 30000.
• In the By changing cell text box, enter the cell containing the input value
that you want changed to achieve the end result. In our example, we want
to know what Down payment is required. Click on cell B1:
E
•
•
PL
Click OK to accept the new values.
Click Cancel to close the Goal Seek Status dialog box and leave the values
unchanged.
Data Tables
M
Using Data Tables
• You can use Data Tables to calculate and compare the outcome of different
inputs of a formula. The different combinations of input values and results
are presented in a table format for easy comparison. Depending on your
needs, you can change one or two variables in Data Tables.
SA
• Enter the formula, using the Input Cell in the formula, as follows:
If your substitution values are row-oriented, enter the formula in the cell
that is one row below and one cell to the left of the first substitution value.
For example, if your first substitution value were in cell C3, then you would
enter your formula in cell B4.
• Select a cell range that includes the formula and all the substitution values.
In our example, the selected range is C2:D6:
E
• PL
From the main menu, choose, Data > Table to display the Table dialog box:
M
If your Data Table is column-oriented, in the Column input cell, enter the
cell reference for the Input Cell. In our example, the Input Cell is B3.
If your Data Table is row-oriented, in the Row input cell, enter the cell
reference for the Input Cell.
SA
• Begin by designing the Worksheet with your initial input values. The input
values that you want varied are referred to as the Input Cells. In our
example, the Input Cells are B3 and B5.
• Create the Data Table by entering your formula, using both Input Cells in
your formula, in a cell that will define the top-left corner of your Data Table.
In our example, we will enter the formula in cell C2.
• List the substitution values of your first Input Cell down a column to the
below your formula. In our example, we will list the Down Payment
substitution values in cell range C3:C6.
• List the substitution values of your second Input Cell across in a row to the
right of your formula. In our example, we will list the Interest Rate
substitution values in cell range D2:G2.
• Select a cell range that includes the formula and all the substitution values.
In our example, the selected range is C2:G6:
E
•
PL
From the main menu, choose, Data > Table to display the Table dialog box:
M
SA
In the Row input cell, enter the cell reference for the row Input Cell. In
our example, the row Input Cell is B5.
In the Column input cell, enter the cell reference for the column Input
Cell. In our example, the column Input Cell is B3.
E
• Click OK.
Scenario Manager
PL
Using Scenario Manager
• In analysing your data, you will frequently want to look at a number of
M
differing options within your spreadsheet. Scenario Manager allows you to
change multiple cells in order to see the effect of the changes, and keep your
scenarios for review later.
• Scenarios are useful in forecasting the results of models, and can be printed
in summary form.
• For example, we can use Scenario Manager to see the changes in total
SA
Adding a Scenario
• Begin by creating the initial scenario using our best guess on the percentage
increases:
• Select the cells containing values that will change with different scenarios. In
our example, select cell range C2:C5.
• From the main menu, choose Tools > Scenarios to display the Scenario
Manager dialog box. (Notice that no scenarios have been defined):
E
•
PL
Click on the Add button to display the Add Scenario dialog box. In our
example, we will create a scenario for Low Inflation, where the expected
percentage increases are as follows: Rent - 1%, Staff - 2.5%, Energy - 10%,
and Other - 2%:
M
SA
• In the Scenario name text box, enter a name for the scenario you are about
to create. In this case, enter the name Low Inflation.
• Click OK to display the Scenario Values dialog box:
• Change the value in text box 1 to 1, change the value in text box 2 to 2.5,
change the value in text box 3 to 10, and change the value in text box 4 to
2:
• Click OK to add the scenario and return to the Scenario Manager dialog
E
box. (Notice that 'Low Inflation' is now listed in the Scenarios list box):
PL
M
SA
Showing a Scenario
• From the main menu, choose Tools > Scenarios to display the Scenario
Manager dialog box:
• From the Scenarios list box, select the scenario you want to see.
• Click on the Show button to display the results of the scenario in the
Worksheet:
E
Deleting a Scenario
• From the main menu, choose Tools > Scenarios to display the Scenario
Manager dialog box.
•
•
•
PL
From the Scenarios list box, select the scenario you want to delete.
Click on the Delete button to delete the scenario.
Click Close to close the Scenario Manager dialog box.
E
• Click OK to add the scenario and return to the Scenario Manager dialog
box.
• Click Close to close the Scenario Manager dialog box.
Summarising Scenarios
•
•
PL
From the main menu, choose Tools > Scenarios to display the Scenario
Manager dialog box.
Click on the Summary button to display the Scenario Summary dialog box:
M
SA
E
Solver
Using Solver
•
PL
Solver is the most versatile What-if Analysis tool. It can handle many
different variables, and where possible, Solver will produce the optimum
answer.
• In order to understand Solver, you will need to know the following terms:
M
Target Cell: The cell that will be set to a value, maximum or minimum.
Often this cell is where you specify the maximum cost of a project.
Adjustable Cell: The cells that Solver will change the contents of to achieve
the desired objective.
SA
• For example, we can use Solver to figure out the optimal combination of cars
we should purchase based on budget and other constraints.
Installing Solver
• By default, Solver is not installed with the basic Excel installation. If Solver
is installed, it is listed under the Tools menu. If Solver is not listed, you can
install it easily.
• From the main menu, choose Tools > Add-Ins to display the Add-Ins
dialog box:
E
•
•
PL
Select the Solver Add-in checkbox.
Click OK to install.
Applying Solver
M
• Begin by constructing a Worksheet with the data you want Solver to use. In
the following example, we have a budget of €500,000 to purchase as many
new cars as possible for the new company car fleet. We need a mix of small,
medium, and large cars:
SA
E
• In the Equal To area, set the Max, Min, or Value of constraint by selecting
the appropriate radio button, and entering the value into the text box. In our
example, we will select Value of and enter 500000 in the text box to set the
•
budget constraint. PL
In the By Changing Cells area, select the cell(s) that we want to change to
meet our target. In our example, we will be changing the numbers of cars in
each class; select cell range C4:C6.
Note: If you are not sure which cells to select, click on the Guess button,
and Excel will suggest a range based on your worksheet.
M
• In the Subject to the Constraints area, click on the Add button to display
the Add Constraint dialog box.
• In the Cell Reference text box, select the cell that the constraint will be
applied to. In the dropdown list, select the operand you want. In the
Constraint text box, enter a value or cell reference. For our example, to
enter the budget constraint of €500,000, we will use $D$8 as the cell
SA
reference, select the <= (less than or equal to) operand, and enter 500000
as the constrained value:
• When you are satisfied with your Solver Parameters, click Solve. After a
short time you will see the Solver Results dialog box:
• Select the Keep Solver Solution or Restore Original Values radio button.
• Click OK to apply your choice. In our example, the worksheet will appear as
follows: (You may notice that the solution suggests the purchase of part of a
car. You can create another constraint to force Excel to solve for whole
E
number only):
PL
M
Changing a Constraint
• From the Solver Parameters dialog box, select a constraint you want to
modify.
• Click on the Change button to display the Change Constraint dialog box:
SA
Deleting a Constraint
• From the Solver Parameters dialog box, select a constraint you want to
delete.
• Click on the Delete button.
E
Creating Pivot Tables
• Open the workbook containing the data from which you wish to create your
pivot table:
PL
M
SA
• Click within the body of the data and then click on the Data drop down menu
and select the PivotTable and PivotChart Report command. This will
display a wizard.
• In step 1 of the PivotTable and PivotChart Wizard, you can specify where the
data is located and what type of report you wish to create. In this case
accept the default offered:
E
•
•
wizard.
PL
Click on the Next button to continue. This will display the next page of the
Step two of the wizard allows you to specify the exact data that you wish to
use. Again accept the default offered:
M
SA
E
PL
M
• As you can see in the illustration above, the Pivot Table Field List pane is
also launched automatically when you create your Pivot Table.
SA
• To begin creating your Pivot Table, simply drag and drop items from the
Pivot Table Field List pane to the table. The following example will
illustrate this feature:
• From within the Pivot Table task pane, click on the Sales Person field, and
drag it into the part of the Pivot Table labelled ‘Drop Row Fields Here’.
• From within the Pivot Table task pane, click on the Customer field, and
drag it into the part of the Pivot Table labelled ‘Drop Column Fields Here’.
• From within the Pivot Table task pane, click on the Total Value field, and
drag it into the part of the Pivot Table labelled ‘Drop Data Items Here’.
When you have finished, the table should be as illustrated. As you can see a
very easy way of extracting and summarising data!:
E
was created on a new worksheet, within your Excel worksheet.
• In this example, the Pivot Table is located on the Sheet1 Worksheet, while
the original Worksheet that the table is based on is located in the Pivot
Table Data Worksheet.
•
•
PL
Click on the Pivot Table Data Worksheet tab:
Make some changes, such as in this case change the value within cell D4,
which we have changed from 1 to 10:
M
SA
• Click on the Sheet1 tab, which contains the Pivot Table, and you will notice
that the Pivot Table has not been updated to take account of your changed
data:
• If you click on the Refresh Data icon (within the Pivot Table toolbar),
you will see the data change, as illustrated:
E
Grouping data within Pivot Tables
•
•
•
PL
Following on from the previous example, let's say that Lou and Sue are
working together as a team, and we want to group their sales together.
First we need to click on cell A5 (the cell containing the text Lou).
While depressing the Ctrl key we then need to click on cell A8 (the cell
containing the text Sue).
• When you release the Ctrl key, both cells should remain selected.
• Right click over the selected cells and from the popup menu displayed select
the Group and Show Detail command. From the submenu displayed select
M
Group:
SA
• The screen will then change to display the grouped results, as illustrated:
Review Questions
E
How would you:
• Use Goal Seek?
• Use a Data Table?
• Create a one-variable Data Table?
• Delete a scenario?
• Edit an existing scenario?
• Summarise scenarios?
M
• Use Solver?
• Install Solver?
• Change a constraint?
• Delete a constraint?
• Understand Pivot Tables?
SA
E
• Link an existing Macro to a button
• Delete a button
Using Macros
•
PL
A Macro is a series of instructions that enables Excel 2003 to perform
commands or actions for you. They are useful for complex or repetitive tasks
that you perform regularly.
• Macros do not necessarily involve programming. The easiest way to create a
new Macro is to have Excel record your actions and then store these actions
M
as a Macro. Actions can be any combination of Excel commands.
• Macros are very flexible since they can be played back or modified at any
time.
SA
Recording a Macro
• From the main menu, choose Tools > Macro > Record New Macro to
display the Record Macro dialog box:
• In the Macro name text box, enter a name for the Macro.
E
Assigning a shortcut key to your Macro
• From the main menu, choose Tools > Macro > Macros to display the
Macro dialog box:
PL
M
SA
• Type a letter into the Ctrl + text box. This key combination will be used to
E
invoke the Macro. In the above example, the key combination is Ctrl + m.
• Click OK to return to the Macro dialog box. Click Cancel to close the Macro
dialog box.
Running Macros PL
Running a Macro using the main menu
• From the main menu, choose Tools > Macro > Macros to display the
Macro dialog box.
M
SA
• In the Macro name list box, select the Macro you want to run.
• Click Run.
E
Working with Buttons
• You can create buttons that may be inserted into an Excel 2003 Worksheet
and Macros can then be assigned to them.
• If you click on these buttons you can run the Macro (or any other action
From the main menu, choose View > Toolbars > Forms to display the
Forms toolbar:
M
SA
E
• PL
Click Cancel to close the Assign Macro dialog box and create the button.
Note: From the Assign Macro dialog box, you can record a Macro by clicking
on the Record button and recording the Macro as you would normally.
Renaming a Button
• Right-click on the button you want to affect.
M
• Select Edit Text from the popup menu.
• Edit the text on the button to rename the button.
• Click outside the button to deselect the button.
Formatting Buttons
SA
• Click on the appropriate tab to access the formatting properties you want.
• When you have finished, click OK to apply the formatting.
• Select Assign Macro from the popup menu to display the Assign Macro
dialog box.
• From the Macro name list box, select the Macro you want:
E
•
PL
Click OK to assign the selected Macro to your button.
Note: The selected Macro replaces any Macro that is already assigned to the
button.
M
Deleting a Button
• Right-click on the button you want to delete to select the button and display
the popup menu.
• Click on the grey border around the button to hide the popup menu:
SA
Review Questions
How would you:
• Record a Macro?
• Assign a shortcut key to your Macro?
• Run a Macro using the main menu?
• Run a Macro using a shortcut key?
E
PL
M
SA
E
• Use Digital Signatures
• Sign a file
• Remove a Digital Signature from a file
• Use the Spell Checker
• Use Data Validation
• Set Data Validation
PL
• Create the Input Message
• Display an Input Message
• Create the Error Alert
• Display an Error Alert
• Use Text To Speech
• Read back a group of cells
M
• Use Speak On Enter
• Turn off Speak On Enter
• Work with Comments
• Add a Comment
• Display a Comment
SA
• Edit a Comment
• Delete a Comment
Security Features
E
Specifying a password for opening a workbook
• To prevent unauthorised access to your Workbook, you can specify a
password that is required before the Workbook is opened. Once the
•
PL
password is set, you will be required to enter this password to open this file
or if you refer to a cell in the protected Workbook in a formula.
From the main menu, choose File > Save As to display the Save As dialog
box.
Click on the Tools icon, and from the dropdown menu, select General
Options to display the Save Options dialog box:
M
SA
• In the Password to open text box, enter your password. The password can
be up to 15 characters in length and is case sensitive. (The password
required the exact combination of upper and lower case letters.)
E
• Re-enter the password.
• Click OK to set the password.
• From the Save As dialog box, click Save.
PL
WARNING! If you forget the password, there is no way of to retrieve the
information contained within the Workbook.
• Click on the Tools icon, and from the dropdown menu, select General
Options to display the Save Options dialog box.
• In the Password to modify text box, enter your password. The password
can be up to 15 characters in length and is case sensitive. (The password
required the exact combination of upper and lower case letters:
E
displayed with asterisks.)
• Click OK button to close the Save Options dialog box.
• From the Save As dialog box, click Save. The following message will be
displayed:
PL
• Click Yes to save the file without the password.
M
Note: To change the password, follow the above directions, and clear the old
password but enter the new password before continuing. You will be
prompted to re-enter the password.
SA
• Click OK. From the Save As dialog box, click Save. When this file is
reopened, the following message will be displayed:
E
PL
Creating backup files automatically
• Excel can automatically create a backup copy of the Workbook every time a
Worksheet file is saved. Backup copies have the .BAK file extension, and are
saved in the same folder as the original file. Backup files are useful if your
original file becomes corrupted, or if you want to revert to an older original
file.
• From the main menu, choose File > Save As to display the Save As dialog
M
box.
• Click on the Tools icon, and from the dropdown list displayed select General
Options, which will display the Save Options dialog box.
• Select the Always create backup checkbox:
SA
• Click OK.
• From the Save As dialog box, click Save.
WARNING! All Excel automatically backup files are stored with the file
extension .BAK. If you had two files in the same folder with the same name
but different extension (ex. CCT.XLS and CCT.XLT), both files will create
the same backup file (i.e., CCT.BAK) and would overwrite each other.
Worksheet Protection
Protecting Worksheets
• You can prevent users from altering the contents of a Worksheet. Worksheet
protection is applied to all the cells that are locked. A password can be added
to prevent unauthorised users from un-protecting the Worksheet.
• From the main menu, choose Tools > Protection > Protect Sheet to
display the Protect Sheet dialog box:
E
PL
M
• Select the Protect worksheet and contents of locked cells checkbox.
SA
• In the Allow all users of this worksheet to scrolling box, select the
actions you want to allow users to perform.
• If you want, you can add a password in the Password to unprotect sheet
text box. The password can be up to 255 characters, and is case sensitive.
(The password required the exact combination of upper and lower case
letters.)
• Click OK.
Note: If a password was entered, you will be asked to confirm the password.
Re-enter the password, and click OK:
E
Un-Protecting Worksheets
• From the main menu, choose Tools > Protection > Unprotect Sheet.
dialog box.
• Click on the Protection tab:
E
•
PL
Select the protection you want:
Signing a File
• On the Tools menu, click Options, and click the Security tab.
• Click Digital signatures.
• Click Add.
• Select the certificate you want to add, and then click OK.
• From the main menu, choose Tools > Options to display the Options dialog
box.
• Click on the Security tab.
• Click on the Digital Signatures button to display the Digital Signature
dialog box:
E
PL
M
• Click Add to display the Select Certificate dialog box:
SA
Note: Installed digital certificates will appear in the above list box. For
information on how to install digital certificates, please refer to Microsoft
Excel Help.
• From the list box, select the certificate you want to use. Click OK.
E
Checking Spelling
•
PL
It is important that a Worksheet is properly audited for errors prior to release
to other users. Excel provides a Spell Checker to help you identify spelling
mistakes.
To spell check the entire Worksheet, select a single cell.
• From the main menu, choose Tools > Spelling
• From the Spelling dialog box, select one of the following options:
Ignore All: ignore all further occurrences of the word in the document.
Change: change this occurrence of the word to the selected word in the
Suggestions text area.
Change All: change all occurrences of the word to the selected word in the
E
Suggestions text area.
Cancel: stop the spelling check and closes the Spelling dialog box.
• When the spelling check is complete, the following message will appear.
Click OK:
M
SA
Note: If you began the spelling check in the middle of the worksheet, you
may be asked whether you want to continue checking at the beginning of the
sheet. Click Yes to continue:
E
• From the Minimum text box, enter 0.
• From the Maximum text box, enter 99:
PL
M
SA
• Click OK.
E
•
•
•
PL
In the Title text box, enter the title for the input message.
In the Input message text area, enter the body of your message.
Click OK.
E
•
•
•
PL
From the Style dropdown list, select the style of Error Alert message you
want: Stop, Warning, or Information.
In the Title text box, enter the title for the error message.
In the Error message text box, enter the body of your message.
• Click OK.
M
Displaying an Error Alert
• Once you have set an Error Alert and closed the Data Validation dialog
box, you can check your Error Alter in the Worksheet.
• Select a cell that has been formatted with an Error Alert.
• Enter incorrect data, and press the Return button. The Error Alert will be
SA
displayed:
• From the main menu, choose Tools > Speech > Show Text To Speech
Toolbar:
E
Make your changes, and click on the Speak Cells icon to resume.
• Read back will stop after the last cell is read.
•
•
PL
You can use Text To Speech to read data back as you enter it. In order for
this feature to work, your computer must have speakers correctly installed.
Make sure that the Text To Speech component is installed.
From the main menu, choose Tools > Speech > Show Text To Speech
Toolbar.
• From the Text To Speech toolbar, click on the Speak On Enter icon .
You will hear the following message: Cells will now be spoken on enter.
M
• Enter data as you normally would, and press Return. The data that was just
entered will be read back to you.
• From the main menu, choose Tools > Speech > Show Text To Speech
Toolbar.
• From the Text To Speech toolbar, click on the Speak on Enter icon .
You will hear the following message: Turn off Speak On Enter.
Documentation
Adding a Comment
• Select the cell you want to add a comment.
• From the main menu, choose Insert > Comment to display the comment
text box.
• Enter your comment in the text note box.
• When finished, click outside of the text note box:
E
Displaying a Comment
• If the Comments are not visible, move your mouse over the cell with a
comment indicator and in a moment the comment will be displayed:
PL
M
Editing a Comment
• Right-click on the cell containing the comment you want to edit.
• Select Edit Comment from the popup menu.
• Edit the comment in the text note box.
• When finished, click outside the text note box.
SA
Deleting a Comment
• Right-click on the cell containing the comment you want to delete.
• Select Delete Comment from the popup menu.
Review Questions
How would you:
• Work with security features?
• Specify a password for opening a Workbook?
• Specify a password for saving a Workbook?
• Remove a Workbook password?
• Use the Read-only option?
• Create backup files automatically?
• Protect Worksheets?
• Un-protect Worksheets?
• Protect cells?
• Use Digital Signatures?
• Sign a file?
• Remove a Digital Signature from a file?
• Use the Spell Checker?
• Set Data Validation?
• Create the Input Message?
• Display an Input Message?
• Create the Error Alert?
• Display an Error Alert?
• Read back a group of cells?
E
• Use Speak On Enter?
• Turn off Speak On Enter?
• Add a Comment?
• Display a Comment?
• Edit a Comment?
• Delete a Comment?
PL
M
SA
E
• Customise International options
• Customise Save options
• Customise Error Checking options
• Customise Spelling options
• Click on the tab you want to access the options under that tab.
• When finished, click OK to apply the changes.
E
PL
• In the Show area, select the workspace element(s) you want to display.
• In the Comments area, select how you want Comments to be displayed.
• In the Objects area, select how you want Objects to be displayed.
M
• In the Window options area, select the Workbook element(s) you want to
display.
• When finished, click OK to apply the changes.
SA
E
•
•
•
PL
In the Calculation area, select when and how you want the Worksheet to be
calculated.
In the Workbook options area, select the option(s) you want.
When finished, click OK to apply the changes.
• In the Settings area, select the setting(s) you want to use for editing.
• When finished, click OK to apply the changes.
E
PL
• In the Settings area, select the setting(s) you want.
M
• When finished, click OK to apply the changes.
E
•
•
PL
In the Settings area, select the navigation settings you want.
In the Sheet Options area, select the Transition option(s) you want.
• When finished, click OK to apply the changes.
M
Customising Custom Lists Options
• From the main menu, choose Tools > Options to display the Options dialog
box.
SA
E
PL
• Use this tab to Add, Delete, or Import custom lists.
• When finished, click OK to apply the changes.
M
Customising Chart Options
• From the main menu, choose Tools > Options to display the Options dialog
box.
• Click on the Chart tab:
SA
E
•
•
•
PL
In the Active chart area, select how you want empty cells are plotted.
In the Chart tips area, select how you want the tips are displayed.
When finished, click OK to apply the changes.
• In the Standard colors area, you can modify the standard palette.
• In the Chart fills and Chart lines areas, you can modify the standard chart
colours.
E
PL
M
• In the Number handling area, select the separator you want for your
numbers.
• In the Printing area, select whether you want to allow for paper size
resizing.
• In the Right-to-left area, select the direction of display and cursor
movement.
SA
E
•
•
PL
In the Settings area, select the AutoRecover options you want.
When finished, click OK to apply the changes.
E
PL
M
SA
E
•
•
PL
Select the security options(s) you want.
When finished, click OK to apply the changes.
E
• In the Toolbar name text box, enter a name for your custom toolbar.
• Click OK to create the Toolbar. By default, the new toolbar is displayed:
•
•
PL
Position the Customize dialog box so that you can see the new toolbar.
In the Customize dialog box, click on the Commands tab.
• In the Categories scrolling box, select a command category.
• From the Commands scrolling box, find the command you want to add, and
drag the command onto the new toolbar:
M
SA
Note: You can modify the appearance of the new button by clicking on the
Modify Selection button. (The button on the toolbar must be selected.)
• From the Commands tab of the Customize dialog box, click on the Modify
Selection button:
E
•
•
PL
From the Name item of the popup menu, select the text in the text box, and
enter a name for your new menu.
To add items to your new menu, locate and drag the command you want
onto the popup menu portion of the new menu icon. (You will need to hold
the command over the new menu icon, and wait for the popup menu to
appear):
M
SA
Attaching a Toolbar
• Sometimes you may want to create a toolbar that contains all the commands
frequently used by the Workbook. You can attach the toolbar to the
Workbook so that you can share that toolbar along with the Workbook.
• From the Workbook that will use your toolbar, create the custom toolbar you
want.
• From the main menu, choose Tools > Customize to display the Customize
dialog box.
• Click on the Toolbars tab.
• Click Attach to display the Attach Toolbars dialog box:
• In the Custom toolbars scrolling box, select the custom toolbar you want.
E
• Click Copy to copy the toolbar to the Toolbars in workbook scrolling box.
• Click OK.
• Save the Workbook.
•
PL
From the main menu, choose Tools > Customize to display the Customize
dialog box.
Click on the Toolbars tab.
• Select the toolbar you want to delete by clicking on the toolbar name:
M
SA
Resetting a Menu
• Excel allows you to customise menus by adding commands, editing names,
E
changing icons, etc. You can return your menus to their default state by
resetting them.
• From the main menu, choose Tools > Customize to display the Customize
dialog box.
• Leaving the Customize dialog box open, right-click the menu you want to
PL
restore, and select Reset from the popup menu:
resetting them.
• From the main menu, choose Tools > Customize to display the Customize
dialog box.
• Click on the Toolbars tab.
• Select the toolbar you want to reset by clicking on the toolbar name.
• Click Reset. The following warning message will appear:
E
PL
M
• For example, if you are working with multiple Workbooks, and have
positioned them in a manner that they can be viewed at the same time. You
SA
can save that positioning as a workspace file, and use the workspace file at a
later date to re-display your Workbooks in the same way.
• Workspace files have the .xlw extension, and do not contain the actual
spreadsheet files.
Review Questions
How would you:
• Customise Excel options?
• Customise View options?
• Customise Calculation options?
• Customise Edit options?
• Customise General options?
• Customise Transition options?
• Customise Custom Lists options?
• Customise Chart options?
• Customise Colour options?
E
• Customise International options?
• Customise Save options?
• Customise Error Checking options?
• Customise Spelling options?
• Customise Security options?
PL
• Display toolbars using the Customise dialog box?
• Create a custom toolbar?
• Add a menu to a toolbar?
• Attach a toolbar?
• Delete a custom toolbar?
• Reset a menu?
• Reset a toolbar?
M
• Save your Workspace?
SA
E
Sharing Workbooks
•
PL
A Workbook can be made available over a network, allowing multiple users to
work on the shared Workbook at the same time.
Each user can modify the Workbook (including the data, rows, columns, etc.).
Users can apply filters to the data without affecting other users sharing the
Workbook.
M
Allowing Workbook Sharing
• From the main menu, choose Tools > Share Workbook to display the
Share Workbook dialog box.
• Click on the Editing tab.
• Select the Allow changes by more than one user at the same time checkbox:
SA
• Click OK.
Note: When you re-open the Share Workbook dialog box, you will notice
that the Workbook is no longer marked as exclusive.
E
PL
M
SA
Track changes: Allows you to keep a log of changes for a period of time that
you define.
Update changes: Allows you to see your changes and changes made by
others each time you save the Workbook.
Include in personal view: Allows you to specify your own print and filter
details that will always be available to you when you use the Workbook.
E
• Click OK.
PL
Note: Changes to the merged Workbook are identified with comments:
M
Sending Workbooks
SA
E
PL
M
• Enter the recipients you want to include.
• Customise your email subject and message.
• Click Send.
Note: This feature, when used with Microsoft Outlook, will turn on change
SA
Note: You can attach only a section of a Workbook. Begin by opening the
Workbook you want to send and selecting the range you want to send. If
asked whether you want to send the entire Workbook or just the section,
click Send, and the selection will appear in the body of the message. To view
the message, reviewers will need an email program that supports HTML.
Routeing a Workbook
• When you send a Workbook for review, each mail recipient receives their own
copy of the message and Workbook. This requires you to merge their
comments and changes at the end of the review.
• Alternatively, you can route a Workbook. With routeing, only one copy of
the Workbook is passed from recipient to recipient. In order for this function
to work, all recipients must use Microsoft Outlook as their email program.
• While the Workbook is being routed, you can keep track of its progress. At
the end of the routeing, the Workbook, with its changes, is returned to you.
E
• Begin by opening the Workbook you want to send.
• From the main menu, choose File > Send to > Routing Recipient.
• Enter the routeing recipients you want to include.
• Customise your email subject and message.
• Click OK.
PL
Routeing a Workbook to the next recipient
• When you receive a routed Workbook, you can review the file, add your
comments, and send the routed Workbook to the next recipient.
• Open the routed Workbook by following the instructions provided by your
email program.
M
• Review the Workbook.
• Add comments or make changes as needed.
• From the main menu, choose File > Send to > Next Routing Recipient.
• Click OK.
SA
Consolidation
Consolidating
• Consolidation allows you to select blocks of data from several different
Worksheets, or different pages of the same Workbook, and combine their
values into a single, summary range in a Workbook.
• This feature is easier than copying data from several Worksheets and then
pasting the data into a single Worksheet.
• For example, you have a Workbook that contains sales figures for each
quarter on a different Worksheet, and you want to create an annual
summary. You can use Data Consolidation to consolidate the sales figures.
• From the main menu, choose Data > Consolidate to display the
Consolidate dialog box:
E
•
•
PL
Click in the Reference text box, and from the Worksheet select the first data
range you want to consolidate. (Do not include row and column labels, only
numeric data.)
Click Add. This will add the range to the All reference text area:
M
SA
• Continue to select other data ranges you want to consolidate; click Add after
each selection. (You can use the Sheet tabs to navigate to other
Worksheets.)
• From the Function dropdown list, select the function you want. The default
is Sum that will add the data across the selected range.
• If you want the summary report to create linking formulas to the source data
automatically, select the Create links to source data checkbox.
• Click OK to consolidate.
Note: Any formulas in the selected ranges will only be used as values in the
consolidation.
E
• From the main menu, choose Data > Consolidate to display the
Consolidate dialog box.
•
PL
Click in the Reference text box, and from the Worksheet select the first data
range you want to consolidate. This time make sure you include row or
column labels, as well as numeric data:
M
• Click Add. This will add the range to the All reference text area.
• Continue to select other data ranges you want to consolidate; click Add after
SA
each selection. (You can use the Sheet tabs to navigate to other
Worksheets.)
• From the Function dropdown list, select the function you want. The default
is Sum that will add the data across the selected range.
• If you want the summary report to create linking formulas to the source data
automatically, select the Create links to source data checkbox.
• If you entered row labels in the first step, select the Top row checkbox in
the Use labels in area. If you entered column labels in the first step, select
the Left column checkbox:
E
• Click OK to consolidation.
consolidation.
Review Questions
PL
Note: Any formulas in the selected ranges will only be used as values in the