Module 4 - Spreadsheets (Excel)
Module 4 - Spreadsheets (Excel)
REFERENCE MANUAL
Spreadsheets
Microsoft Excel XP Edition for ECDL Syllabus Four
PAGE 2 - ECDL MODULE 4 (USING OFFICE XP) - MANUAL
© Cheltenham Courseware Ltd. 1995-2005 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.
PLEASE NOTE: Web sites listed or illustrated within this document are purely for illustrative purposes
and their inclusion does not imply endorsement by the authors or suppliers of this document. No
company or organisation has paid to have their web sites or other information included within this
document.
""European Computer Driving Licence" and ECDL and Stars device are registered trade marks of the European
Computer Driving Licence Foundation Limited in Ireland and other countries. Cheltenham Courseware Ltd is an
independent entity from the European Computer Driving Licence Foundation Limited, and not affiliated with the
European Computer Driving Licence Foundation Limited in any manner. ‘Cheltenham Courseware Ltd ECDL
Courseware’ may be used in assisting students to prepare for the European Computer Driving Licence
Examination. Neither the European Computer Driving Licence Foundation Limited nor Cheltenham Courseware
Ltd warrants that the use of this ‘Cheltenham Courseware Ltd ECDL Courseware’ will ensure passing the
relevant Examination. Use of the ECDL-F approved Courseware Logo on this product signifies that it has been
independently reviewed and approved in complying with the following standards:
Acceptable coverage of all courseware content related to the ECDL Syllabus Version 4.0. This courseware
material has not been reviewed for technical accuracy and does not guarantee that the end user will pass the
associated ECDL Examinations. Any and all assessment tests and/or performance based exercises contained in
this ‘Cheltenham Courseware Ltd ECDL Courseware’ relate solely to this ‘Cheltenham Courseware Ltd ECDL
Courseware’ and do not constitute, or imply, certification by the European Driving Licence Foundation in respect
of any ECDL Examinations. For details on sitting ECDL Examinations in your country please contact the local
ECDL Licensee or visit the European Computer Driving Licence Foundation Limited web site at
http://www.ecdl.com.
“Candidates using this courseware material should have a valid ECDL/ICDL Skills Card/Log book. Without such a
skills card/Log book no ECDL/ICDL tests can be taken, no ECDL/ICDL certificate, nor any other form of
recognition can be given to the candidate. ECDL/ICDL Skills Cards may be obtained from any accredited
ECDL/ICDL Test Centre or from your country's National ECDL/ICDL designated Licensee".
References to the European Computer Driving Licence (ECDL) include the International Computer Driving
Licence (ICDL). ECDL Syllabus Version 4.0 is published as the official syllabus for use within the European
Computer Driving Licence (ECDL) and International Computer Driving Licence (ICDL) certification programme."
4.4.1.1 Generate formulas using cell references and arithmetic operators (addition, subtraction,
multiplication, division). ............................................................................................................................ 40
4.4.2.1 Recognise and understand standard error values associated with using formulas........... 41
4.4.2 CELL REFERENCING ............................................................................................................................... 44
4.4.2.1 Understand and use relative, mixed, absolute cell referencing in formulas........................ 44
4.4.3 WORKING WITH FUNCTIONS ................................................................................................................... 46
4.4.3.1 Generate formulas using sum, average, minimum, maximum, count, functions................ 47
4.4.3.2 Generate formulas using the logical function if (yielding one of two specified values)...... 52
4.5 FORMATTING............................................................................................................................................. 56
4.5.1 NUMBERS/DATES ................................................................................................................................... 56
4.5.1.1 Format cells to display numbers to a specific number of decimal places, to display
numbers with, without commas to indicate thousands. ....................................................................... 56
4.5.1.2 Format cells to display a date style. .......................................................................................... 57
4.5.1.3 Format cells to display a currency symbol. .............................................................................. 58
4.5.1.4 Format cells to display numbers as percentages.................................................................... 58
4.5.2 CONTENTS .............................................................................................................................................. 60
4.5.2.1 Change cell content appearance: font sizes, font types. ....................................................... 60
4.5.2.2 Apply formatting to cell contents such as: bold, italic, underline, double underline. .......... 60
4.5.2.3 Apply different colours to cell content, cell background. ........................................................ 62
4.5.2.4 Copy the formatting from a cell, cell range to another cell, cell range. ................................ 63
4.4.2.5 Apply text wrapping to contents within a cell. .......................................................................... 63
4.5.3 ALIGNMENT BORDER EFFECTS .............................................................................................................. 64
4.5.3.1 Align contents in a cell range: left, centre, right; top and, bottom......................................... 64
4.5.3.2 Centre a title over a cell range................................................................................................... 65
4.5.3.3 Adjust cell content orientation. ................................................................................................... 66
4.5.3.4 Add border effects to a cell, cell range. .................................................................................... 66
4.6 CHARTS / GRAPHS .................................................................................................................................. 69
4.6.1 USING CHARTS/GRAPHS ........................................................................................................................ 69
4.6.1.1 Create different types of charts/graphs from spreadsheet data: column chart, bar chart,
line chart, pie chart.................................................................................................................................... 69
4.6.1.2 Add a title or label to a chart/graph. Remove a title or label from a chart/graph. ............... 71
4.6.1.3 Change the background colour in a chart/graph. .................................................................... 72
4.6.1.4 Change the column, bar, line, pie slice colours in a chart/graph. ......................................... 73
4.6.1.5 Change the chart/graph type...................................................................................................... 74
4.6.1.6 Duplicate, move charts/graphs within a worksheet, between open spreadsheets. ........... 75
4.6.1.7 Resize, delete charts/graphs...................................................................................................... 76
4.7 PREPARE OUTPUTS ................................................................................................................................ 78
4.7.1 WORKSHEET SETUP ............................................................................................................................... 78
4.7.1.1 Change worksheet margins: top, bottom, left, right ................................................................ 78
4.7.1.2 Change worksheet orientation: portrait, landscape. Change paper size............................. 78
4.7.1.3 Adjust page setup to fit worksheet contents on one page, on a specific number of pages.
..................................................................................................................................................................... 79
4.7.1.4 Add, modify text in Headers, Footers in a worksheet............................................................. 79
4.7.1.5 Insert fields: page numbering information, date, time, file name, worksheet name into
headers....................................................................................................................................................... 80
4.7.2 PREPARATION......................................................................................................................................... 82
4.7.2.1 Understand the importance of checking spreadsheet calculations and text before
distribution.................................................................................................................................................. 82
4.7.2.2 Preview a worksheet. .................................................................................................................. 83
4.7.2.3 Turn on, off display of gridlines, display of row and column headings for printing
purposes..................................................................................................................................................... 83
4.7.2.4 Apply automatic title row(s) printing on every page of a printed worksheet........................ 84
4.7.3 PRINTING ................................................................................................................................................ 84
4.7.3.1 Print a cell range from a worksheet, an entire worksheet, number of copies of a
worksheet, the entire spreadsheet, a selected chart. .......................................................................... 84
The worksheets in turn are grouped together into workbooks. By default each
workbook in Excel contains 3 worksheets, which are identified by tabs
displayed along the bottom of your screen, which identify the individual
worksheets making up the workbook. By default the first worksheet is called
Sheet1, the next is Sheet2 and so on.
By default each new workbook you open will contain 3 blank worksheets,
although you can increase this number or reduce it down to a workbook,
which only contains one worksheet.
To close Excel
• From the File menu, select Exit
OR press Alt+F4
OR click on the Excel Close icon (top-right of the Excel program window).
• Locate the file which you wish to open and then double click on the file name
to open it. If you need to change to a different folder, then you can use the
Up One Level icon
OR you can click on the down arrow next to the Look in field.
To select, and open, multiple files which are not in a continuous block
• Click on the Open icon which will display the file Open dialog box. Click on
the first file which you wish to select and while keeping the Ctrl key
depressed, click on the other files which you wish to select. When you release
the Ctrl key, the selected files will continue to be highlighted.
• In the section of the dialog box called File Name, enter a name for your file.
Then click on the Save button to save the file.
• Click on the down arrow to the right of the Save in section of the dialog box,
which will display a drop down menu, as illustrated.
4.1.1.6 Save a spreadsheet in another file type such as: text file, HTML,
template, software specific file extension, version number.
To save a file in a format other than Excel format, such as Lotus 123
• From the File drop down menu, click on the Save As command.
• If necessary, select the folder in which you wish to save the file from the
Look in list box.
• Click on the down arrow to the right of the Save as type: box, and select the
type of file format in which you wish to save the file as, i.e. WKS, Excel 4 etc.
• If necessary, select the folder in which you wish to save the file in from the
Look in list box.
• Click on the down arrow to the right of the Save as type: box, and select the
type of file format you wish to save the file as, such as the example shown
where we have selected the Microsoft Excel 5.0/95 format.
• Templates are stored with the extension .XLT and when they are accessed to
create a new sheet, a copy of the original is made. The original template is
left untouched ready for further use. A template is produced by creating a
spreadsheet which contains all the elements you want, and then saving it as
an .XLT file.
To use a template
• From the File menu, select New to display the New dialog box.
• Select the template you require. Notice that you normally see a number of
tabs on this dialog box, such as General and Spreadsheet Solutions. If
you wish to use the default template, select Workbook from the General
tab.
• Select OK to open a copy of the template, i.e. a Workbook.
To switch to a different, open workbook (using the Window drop down menu)
• Within Excel, click on the Window drop down menu, and you will see
workbooks listed, as illustrated (in this case Book1 and Book2)
Today's Tip
• By default Excel will display a tip of the day each time you start Excel. If you
take the time to read these when they are displayed, then you will soon find
that you are on the way to becoming an Excel expert!
To close a spreadsheet
• From the File menu, select Close.
You will be asked if you wish to save any changes you have made to the file.
Select Yes to save, or No to ignore the changes.
If you are saving a new file, the Save As dialog box will be displayed. In the
File name text box, enter a name and click on the Save button.
To freeze panes
• To freeze a horizontal (column) heading, move the mouse pointer to the
location indicated and drag and drop to display one or more column.
• To freeze a vertical (row) heading, move the mouse pointer to the location
indicated and drag and drop to display one or more row.
To unfreeze panes
• From the Window menu, choose Unfreeze Panes.
To set the user name: Enter your name in the User Name section of the
dialog box.
To set the default directory: Enter the path to the directory which you
wish to set up as the default directory, in the Default file location section of
the dialog box. Once applied this default directory will be the one displayed in
opening and saving dialog boxes within Excel
4.2 Cells
To enter numbers
• Select the cell in which you want to enter a number and type in the number.
If you want to make the number a negative, type a minus sign in front of it
or enclose it in parentheses (i.e. brackets).
• To indicate decimal places, you type a full stop.
• The numbers will be right aligned by default. If you wish to enter a number
or formula as text, type an apostrophe before it.
To select a cell
• Click on the cell you wish to select.
To select a row
• Click the row heading number.
To select a column
• Click on the column-heading letter.
NOTE: If you enter text which exceeds the column width, it will spill over into
the next column as long as the cell does not contain any data. If it contains
data the entry will be truncated at the edge of the cell. Although the entire
entry does not appear, it will still be intact. If you enter a number which
exceeds the width of a column, ### signs will be displayed in the cell to let
you know that the column is not wide enough.
• Let’s say that we wanted to change the data in the selected cell from
Accounts for 2002 to Accounts for 2003 There are two ways of doing
this:
Method One: Click in the editing bar towards the top of your screen, where
you will see the contents of the selected cell displayed. Make your changes.
Method Two: Called 'in place editing'. Double click on the cell containing the
data which you wish to edit, and then edit the data directly within that cell.
To undo a command
• Click the Undo icon on the Standard toolbar
To redo a command
• Click the Redo icon on the Standard toolbar.
4.2.5.2 Use the autofill tool/copy handle tool to copy, increment data
entries.
To use AutoFill
• Enter a starting value for the series which you wish to create.
• Enter the second value in the next cell.
• Move the mouse pointer to the "fill handle" (this is the small black square at
the bottom right of the selected area). When the mouse pointer is over the
fill handle, it will change shape, from a large white cross to a small black
cross.
• Depress the mouse button and drag as far as you wish to extend the range.
• When you release the mouse button the range will have been filled with
incremental values.
• Autofill can be used for number sequencing, days of the week, or months of
the year.
NOTE: You could add your own custom lists using this dialog box.
4.2.5.3 Move cell range contents, entire row(s), entire column(s) within a
worksheet, between worksheets, between open spreadsheets.
NOTE: If you delete values from cells, which are used in formulas, the
formulas will return errors.
• Click on the Find Next button to find the next occurrence of the text you are
looking for.
• Type the replacement text in the Replace with text box. Select from the
following:
Replace All: Will replace all occurrences of the text in the Find What
section
with the text in the Replace With section.
4.3 Worksheets
The effect is illustrated below, where the new sheet four has been inserted
before sheet two.
• You can then type over the default worksheet name, which will become
highlighted.
• Click on the down arrow to the right of the Before Sheet section of the
dialog box. Select which worksheet you wish to insert the copy in front of.
Click on Create a copy.
• Click on the OK button. An example of the effect is illustrated below (in this
example we choose to insert before worksheet 1)
• Release the mouse button and the worksheet will be moved to the required
location
• Click on the down arrow to the right of the To book section of the dialog box.
Select the name of the second workbook, (Book2, in the example
illustrated).
• Click on the down arrow to the right of the Before Sheet section of the
dialog box. Select which worksheet you wish to insert the copy in front of.
• When the formula is complete, press Enter. The result of the formula will be
calculated and displayed in the cell.
• You can display the formula itself in the Formula bar at the top of the screen
by placing the cell pointer on the cell.
• If there is an error in a formula, an error message is displayed which will
begin with a # sign.
NOTE: If you cannot find an error in a function you can use the Paste
Function to debug it. Highlight the problem cell and click on the Paste
Function icon on the formula bar or Standard toolbar.
The contents of the cell cannot be displayed correctly as the column is too
narrow.
Indicates that a cell reference is invalid. This is often displayed when you
delete cells which are involved in a formula.
• From this screen you can get detailed information about each type of error
message.
If we used drag and drop techniques to highlight cells C6 and D6 and extend
the formulas down the page, we might expect this to work OK but it does
not.
• To try this click on cells C6 and while keeping the Control key depressed
click on cell D6. Release the Control key and the two cells will remain
selected.
• Move the mouse pointer to the fill handle, i.e. the small, square black dot at
the bottom right corner of the selected range.
• Depress the mouse button and drag down for two rows, then release the
mouse button.
• If you look in cells C7 and C8 there is no VAT calculated!
• Clicking on cell C7 gives the clue as to why this did not work. It contains a
formula as follows:
=B7*E2%
I.e. instead of picking up the VAT rate from cell E1, the formula is pointing to
E2 (which is blank).
If we used drag and drop techniques to highlight cells C6 and D6 and extend
the formulas down the page, we might expect this to work OK and this time it
does!
• To try this click on cell C6 and while keeping the Control key depressed click
on cell D6. Release the Control key and the two cells will remain selected.
• Move the mouse pointer to the fill handle, i.e. the small, square black dot at
the bottom right corner of the selected range.
• Depress the mouse button and drag down for two rows, then release the
mouse button.
As you can see to use absolute addressing, you prefix both parts of the cell
address, by a dollar ($) symbol.
NOTE: While entering formula into a worksheet you can use the F4 key to
quickly convert a relative cell reference to absolute, e.g. Select a cell and
type =B4 and press the F4 key, Excel will insert the dollar symbols for you.
What is a function?
• A function allows you to calculate a result such as summing numbers
together, or finding the average of a range of numbers.
Common functions
• Some commonly used functions include:
COUNT: Used to count how many numbers are in the list of arguments.
Commonly used functions, as displayed when you click on the down arrow
next to the AutoSum icon.
• If the range is correct, press Enter. In the example shown, clicking on the
AutoSum icon produced the following =SUM(F3:F6). This means that the
numbers within the cell range, F3:F6 will be summed.
If Excel has not summed the correct range, then select the range you want to
sum and press Enter.
• In the example illustrated, the function has automatically selected the range
D7:D10, and will calculate the average value of the grades for English tests.
• In the example illustrated, the function has automatically selected the range
D7:D10, and will calculate the maximum value.
• In the example illustrated, the function has automatically selected the range
D7:D10, and will calculate the minimum value.
• To list the number of people present using the Count function , we first need
to click on the cell you want to contain the Count formula, i.e. cell D15.
• Click on the down arrow next to the AutoSum icon and select the Count
function.
• As you will see in this case the function has not selected the range which
includes all the names, but only the two names in the range D13:D14. The
reason for this is the gap in the column of numbers in cell D12.
NOTE: We can use the same technique to display the number of persons not
present in cell E15.
The IF Function
• Excel has a number of functions which allow us to evaluate values and make
decisions based on the result of the evaluation. The IF( ) Function is one of
these.
IF( ) Syntax
The format (Syntax) of the IF( ) function is as follows:
IF(Logical_test, Action_if_true, Action_if_false)
Logical_test
The logical_test evaluates an expression to see if it passes the test, i.e. is
TRUE or does not pass the test, i.e. is FALSE
• Action_if_true
Action_if_true can be a value or an operation. Whichever, the result is placed
in the cell which contains the IF( ) Function if the logical_test is true.
Action_if_false
Action_if_false can be a value or an operation. Whichever, the result is placed
in the cell which contains the IF( ) Function if the logical_test is false.
NOTE: To display the Insert Function dialog box you could have pressed the
Shift+F3 key combination.
• Select the IF function, and then click on the OK button, which will display the
Functional Arguments dialog box for the IF function.
In the Logical_test section of the dialog box, we enter the logical test, i.e.
H8>70
In the Value_if_true section of the dialog box, we enter the word Pass
In the Value_if_false section of the dialog box, we enter the word Fail
Click on the OK button to continue. Use the normal Excel drag techniques to
extend this function to the cells I9:I13.
4.5 Formatting
4.5.1 Numbers/Dates
Currency
23456 will become £23,456.00 (or your local currency equivalent)
Percent
.25 will become 25%
Comma
12345 will become 12,345.00
Increase Decimal
23,456.00 will become 23,456.000
Decrease Decimal
23,456.00 will become 23,456.0
NOTE: Formatting a cell using the percentage style, multiplies the value by
100 and displays the results using a percentage symbol. Thus if you wished
to use a value which would display as 20%, you would enter 0.2 into a cell
formatted this way.
4.5.2 Contents
4.5.2.2 Apply formatting to cell contents such as: bold, italic, underline,
double underline.
• Click on the OK button to close the dialog box. An example of this effect is
illustrated below.
• Select the colour you wish to use for the cell background (be careful that you
select a colour which will allow you to still see the cell contents, for instance,
do not select a dark background, if you are using black as the cell contents
colour!)
• Press the OK button when you have made your selections. An example is
illustrated below.
4.5.2.4 Copy the formatting from a cell, cell range to another cell, cell
range.
• Select the text to which you wish to copy the formatting, and when you
release the mouse button you will see that the formatting applied to the first
block of text has been copied to the newly selected text.
Before
After
4.5.3.1 Align contents in a cell range: left, centre, right; top and, bottom.
To align data within a cell range, to the left, to the right or to centre data
• Select the cell(s) you wish to align.
• Click on the Align Left icon to align data to the left.
• Click on OK.
• Now let’s say that you wanted the word WEEKDAY, to be centred within the
range C3 to G3.
• Enter the word WEEKDAY in cell C3 and press Return.
• Select the range C3 to G3.
• Click on the Merge and Centre icon, as illustrated.
• To view border options, click on the down arrow next to the Borders icon on
the Formatting toolbar.
• Select the option you require. Once you have added a border using the
Borders icon, the border you selected will appear on the Borders icon. You
can add the same border simply by clicking on the icon after you have
selected the cell(s) to which you wish to apply the border.
To apply a border to a cell range (using the Format Cells/Border dialog box)
• You could select a cell, or range of cells, and then click on the Format drop
down menu, from which you can select the Cells command. This will display
the Format Cells dialog box.
• Select the Border tab, as illustrated.
• You can use this dialog box to apply borders and also to vary the type of
border applied.
• First choose a preset format to apply a border style.
• Then click on the Border icons within the dialog box.
• Finally use the Style and Color options to customise your borders.
• Click on the OK button to apply the border formatting and close the dialog
box.
• From within the Chart Type section of the dialog box, select the required
chart type, such as column chart, bar chart, line chart or pie chart. In this
example we have selected the Column.
• Click on the Next button.
• The next page of the Chart Wizard is displayed. You can make changes if
required.
• Click on the Next button. The next page of the Chart Wizard allows you to
add items such as chart titles, gridlines, etc.
• You can make changes as required, and then click on the Next button.
• The final page of the Chart Wizard is displayed. You would normally click on
the Finish button at this point to insert the chart as an object into your
worksheet.
I.e. the Data drop down menu is replaced by a Chart drop down menu.
• Click on the Chart drop down menu, and select the Chart Options
command. Make sure that the Titles tab is selected. Enter or modify a title
as required.
We could have used the same method to select and delete a label, for
instance in the example shown, we have selected the Y axis label.
• Select the required background colour, and then click on the OK button.
4.6.1.4 Change the column, bar, line, pie slice colours in a chart/graph.
To change the colour of a column, bar, line or pie slice within a chart
• Click on the chart to select it.
• Click on the chart column, bar, line or pie slice to select it.
• Click on one of the chart types which are displayed within the drop down
menu. NOTE: When wishing to convert to a Pie chart you have to use only
one data series.
• Click on the Edit drop down menu and select the Copy command.
• Click elsewhere within the worksheet, click on the Edit drop down menu and
select the Paste command. You may have to move the chart to the required
position.
To re-size a chart
• Move the mouse to one of the corner selection handles (the small square
black boxes) and drag and drop. The chart is re-sized in the same way that
any graphic is re-sized within the Microsoft suite of applications.
To delete a chart
• Click on the chart you wish to delete to select it and press Delete. The chart
will be deleted.
• Click on the down arrow to the right of the Header list box to reveal a list
of available headers.
• Click on the header required to select it.
• Click on the down arrow on the right of the Footer list box to reveal a list
of available footers.
• Click on the footer required to select it.
• Click on OK to accept the header and footer and close the dialog box.
4.7.1.5 Insert fields: page numbering information, date, time, file name,
worksheet name into headers
• Click within the section of the header or footer where you wish the page
number to be displayed, i.e. left, centre or right.
• Click on the Page Numbering icon.
• Click on the OK button, and then click on the OK button of the Page Setup
dialog box, so that all the dialog boxes are now closed.
• Click within the section of the header or footer where you wish the field to be
displayed, i.e. left, centre or right.
Font: Allows you to modify the font type and font attributes.
Total Pages: Inserts the total number of pages into the footer/header.
By using this in conjunction with Page Number you can have a header which
would, for instance, display in the format Page 7 of 20.
File Name: Insert the name of the current workbook (i.e. file name).
• When you have made your selections, click on the OK button, and then click
on the OK button of the Page Setup dialog box, so that all the dialog boxes
are now closed.
4.7.2 Preparation
To preview a worksheet
• Click on the Print Preview icon within the Standard Excel toolbar.
You will see a new toolbar displayed. Click on the Close button to return to
the normal Excel view of your data.
4.7.2.3 Turn on, off display of gridlines, display of row and column
headings for printing purposes.
• Select OK.
• Select OK.
• Select OK. If you view a multi-page document within the Print Preview view,
you will now see each row title is automatically printed on each page.
4.7.3 Printing
To print the entire workbook (including all the worksheets within it)
• Click on the File drop down and select the Print command.
• Within the Print what section of the dialog box, select the Entire workbook
option.
• Make any other changes as required from the dialog box, and then click on
the OK button to print the chart.