E C D L: Uropean Omputer Riving Icence
E C D L: Uropean Omputer Riving Icence
C omputer
D riving
L icence
ECDL Syllabus 5.0
Module 4
Spreadsheets
ECDL Syllabus 5 Courseware Module 4
Contents
i
CHARTS ................................................................................................................................................. 41
CREATING & SELECTING CHARTS ...........................................................................41
CHANGING THE CHART TYPE .................................................................................42
MOVING, RESIZING & DELETING CHARTS .................................................................43
ADDING, EDITING & REMOVING CHART TITLES ...........................................................44
ADDING DATA LABELS ........................................................................................44
CHANGING CHART COLOURS .................................................................................45
CHANGING THE FONT SIZE & COLOUR OF CHART TEXT ..................................................45
PREPARE OUTPUTS ........................................................................................................................ 46
SETTING THE WORKSHEET MARGINS .......................................................................46
SETTING THE WORKSHEET ORIENTATION & PAPER SIZE.................................................46
ADJUSTING PAGE SETUP TO FIT WORKSHEET CONTENTS ................................................47
ADDING, EDITING & DELETING DATA IN HEADERS & FOOTERS ........................................48
INSERTING & DELETING FIELDS IN HEADERS & FOOTERS ...............................................49
TURNING ON & OFF GRIDLINES AND ROW & COLUMN H EADINGS .....................................49
APPLYING AUTOMATIC TITLE ROWS PRINTING ............................................................50
PREVIEWING WORKSHEETS ..................................................................................50
PRINTING .......................................................................................................50
Courseware compiled by
James Cilia
2012
ii
ECDL Syllabus 5 Courseware Module 4
MS Excel comes in a variety of versions. Over the years the program has been
updated, making it more powerful and easier to use. These course notes are based on
MS Excel 2010.
To open MS Excel:
1. Click Start button.
2. Select All Programs.
3. Click Microsoft Office.
4. Click Microsoft Excel 2010.
5.
MS Excel
Button
Quick Access Help
Toolbar Title Bar Tabs Button
Command
Ribbon
Home
Cell
Group
Scroll bars
Row Column
Cells Heading
Heading
Status bar
View buttons Zoom
Features of the MS Excel Screen
MS Excel screen displays a grid of rectangles similar to a graph paper. This grid is
known as a spreadsheet or worksheet - it is the primary document where you store
and manipulate data.
A worksheet is made up of vertical lines called columns and horizontal lines called
rows.
Worksheets are like pages in a book. The workbook is the book containing these pages
or worksheets.
Each column has a heading, consisting of one or two alphabet letters. Each row has a
heading, consisting of a number.
The screen shows only a small portion of the whole worksheet. Every single worksheet
is made up of 256 columns and 65,536 rows. The intersection of each column and row
is a cell. The total number of cells in a worksheet is 16,777,216.
Each cell has a unique address known as its ‘cell reference’. A cell reference consists
of:
Note that:
Cell references always start with the column heading and then the row
heading.
Cell references are not case sensitive i.e. you can use lowercase letters (a5)
or uppercase letters (A5).
2
ECDL Syllabus 5 Courseware Module 4
To close MS Excel:
1. Click File tab.
2. Click Exit.
3. Select the drive and/or folder that contains the workbook to open e.g.
Desktop.
4. Double-click the workbook you want to open.
Note that:
You can also open a recently used document by clicking the File tab and
choosing Recent. A sub-menu showing a list of recently used workbooks is
displayed. Click the name of the workbook you want to open.
You can open an existing workbook using the shortcut key combination:
CTRL+O keys.
To open other existing workbooks repeat steps 1-4 as above.
To close a workbook:
1. Save your work.
2. Click File tab.
3. Click Close.
3
Note that:
You can close a workbook using the shortcut key combination: CTRL+F4
keys.
Note that:
You can open a new workbook using the shortcut key combination: CTRL+N
keys.
You can also create a new workbook based on other templates available in MS Excel or
created by you.
1. Repeat steps 1 and 2 as above.
2. Click Sample templates or My templates
4
ECDL Syllabus 5 Courseware Module 4
Saving Workbooks
It is important to save your work from time to time whilst typing. When you save a
workbook for the first time, you need to give it a name. Workbook names can have up
to 255 characters including spaces. File names cannot include any of the following
characters: forward slash (/), backslash (\), greater than sign (>), less than sign (<),
asterisk (*), period (.), question mark (?), quotation mark ("), pipe symbol (|), colon
(:), or semicolon (;).
3. Select the disk and/or folder where the workbook will be saved.
4. Type a name for your workbook in the File name: field.
5. Click Save button.
Note that:
After you save a workbook for the first time, the filename appears in the title
bar.
When you save the file the second, third, fourth time etc. the computer will
not ask you to input all this information again but will only update the file with
the changes made up to that moment.
You can save a document using the Save button in the
Quick Access Toolbar or the shortcut key combination:
CTRL+S keys.
To save an open workbook under another name:
1. Click File tab.
2. Click Save As… The Save As dialog box is displayed.
3. Repeat steps 3-5 as above.
Note that:
The facility to save a workbook to another format can be useful so that this
can be read by previous versions of MS Excel.
Note that:
To switch between open workbooks you can position the pointer over the MS
Excel button on the task bar (running horizontally across the bottom of the
MS Windows screen). This will display the name/s of open workbooks. Then
click the name of the workbook file to display.
6
ECDL Syllabus 5 Courseware Module 4
You can modify the author’s name attached to every workbook file generated in MS
Excel as follows:
1. Click File tab.
2. Click Options. The Excel Options dialog box is displayed.
3. Click General.
4. In the User name: field type your name and surname.
5. Click OK button.
You can also set a default folder location where all workbooks will be saved:
1. Repeat steps 1-2 as for modifying the user name.
2. Click Save.
3. In the Default file location: field type the drive and folder where the
workbooks will be saved.
4. Click OK button.
Note that:
When you click Open button, you will be automatically directed to the folder
path set above.
7
Using Help
2. Click one of the main topics e.g. Getting started with Excel 2010. This will
display sub-topics. Click the sub-topic to display.
3. You can type a keyword or question e.g. functions in the search field.
4. Click Search button.
5. Click the topic to display.
6. Click Close button to close the Excel Help window.
8
ECDL Syllabus 5 Courseware Module 4
The zoom feature allows you to enlarge or reduce the view of a page on the screen.
Method A:
OR
Click Zoom Out button to reduce the view of the slide from 100% to 90% to
80% etc.
Click Zoom In button to increase the view of the slide from 100% to 110% to
120% etc.
Method B:
1. Click Zoom level button. The Zoom dialog box will be displayed.
2. Tick the appropriate option. At 100%, the letters and numbers are the same
size they will be when printed. Below 100% they are smaller. Above 100%,
they are bigger. You can click in the Percent: field and type a number.
3. Click OK button.
9
Minimising & Restoring the Ribbon
You can minimise the Ribbon i.e. the row of buttons below each tab:
1. Right-click on one of the tabs e.g. the View tab.
2. Click Minimise the Ribbon. This will hide the Ribbon, leaving only visible the
Ribbon's tab headers.
Note that:
Clicking on any of the tabs will now display the tab's commands, and hide the
ribbon once you have clicked on a command, or placed your mouse cursor
(pointer) back inside the document.
10
ECDL Syllabus 5 Courseware Module 4
CELLS
Worksheet cells can hold three kinds of data: text, numbers and formulas.
Text entries - are labels such as December or Zebbug or text/number
combinations such as birth dates etc.
Numeric entries - are numbers on which calculations will be performed.
Formulas - are calculations involving two or more values (to be discussed
later on).
A cell in a worksheet should contain only one element of data, for example, first name
detail in one cell and surname detail in the adjacent cell.
Note that:
By default, text entries are aligned to the left of cells and numeric entries are
aligned to the right of cells.
Text entries are usually referred to as labels. Labels describe numeric data in
a cell/s.
To enter dates use a slash or a hyphen to separate the parts of a date; for
example, type 19/08/2002 or 19-Aug-2002.
To move from one cell to the next you press the arrow/cursor keys on the keyboard.
You can also click on any cell to make this active.
You can move to column XFD (the last column in the spreadsheet) by pressing
CTRL+ keys. You can move to row 1,048,576 (the last row in the spreadsheet) by
pressing CTRL+ keys. To return back to cell A1 – the home cell – press HOME key.
11
Selecting Cells
Note that:
The thick border around the cell indicates that it is highlighted.
Click anywhere outside the highlighted cell/area to switch off the highlighting.
An adjacent cell range is a group of cells that are directly beside, above or below one
another. Adjacent cells are sometimes referred to as contiguous cells.
Note that:
The first cell will also be included in the selection even though it is not
shaded.
A non-adjacent cell range consists of group of cells that are not directly beside, above
or below one another. Non-adjacent cells are sometimes referred to as non-contiguous
cells.
Note that:
You can also edit the contents of a cell by clicking the cell and pressing F2
key.
12
ECDL Syllabus 5 Courseware Module 4
MS Excel records all actions you performed since you opened the workbook during a
session. All actions are stored in the Undo list. If you change your mind, you can tell
MS Excel to ‘undo’ them.
To undo or redo your most recent actions click the Undo or Redo buttons
on the Quick Access toolbar.
Note that:
To undo or redo your most recent action (or actions), click the arrow next to
Undo or Redo, select the actions you want to undo or redo, and click.
The Undo feature does not work once you close your workbook. Closing a
workbook removes all contents from the Undo list.
When you need to review or change data in your workbook, use the Find and Replace
commands. Use Find to quickly locate occurrences of the data you specify. To change
data use Replace command.
1. Select the range of cells you want to search. If you want to search the
entire worksheet, click any cell in the worksheet.
2. Click the Home tab.
3. In the Editing group, click Find & Select.
4. Click Replace... The Find and Replace dialog box is displayed.
5. In the Find what: field, enter the text or numbers you want to search for or
choose a recent search from the Find what: drop down box.
6. Click Options button to further define your search. For example, you can
search for all of the cells that contain the same kind of data, such as
formulas.
7. In the Replace with: field, enter the replacement characters and specific
formats if necessary.
8. Click Find Next button.
9. To replace the highlighted occurrence or all occurrences of the found
characters, click Replace button or Replace All button.
13
Note that:
If you want to delete the characters in the Find what: field, leave the
Replace with: field blank.
To cancel a search in progress, press ESC key.
Sorting Data
Note that:
All data in the range of adjacent cells will be sorted.
Copying Data
You can copy the content of one or more cells from one location to another, either
within a worksheet, between worksheets or to another workbook.
1. Highlight the cell/s to copy.
2. Click the Home tab.
3. Click Copy.
4. Select the upper-left cell of the paste area - the cells you want the
data to be copied to - or select the entire paste area. You can click
on a cell in a different sheet within the same workbook or open
another workbook file.
5. Click Paste.
Note that:
When you click Copy, MS Excel surrounds the selected cells with a moving
border and copies the data to the Clipboard. You can use ESC key to switch
off the moving border.
Sometimes you find yourself entering data in a logical sequence such as days of the
week, month names, numbers etc. The AutoFill feature logically repeats some series
as indicated in the following table
Note that:
You can see the current value in the series in the reference area of the
formula bar. This changes as you drag the fill handle. If you drag the fill
handle further than you intended, you can drag it in the opposite direction to
clear the unwanted values. Stop dragging at the last value you want.
Moving Data
You can move the content of one or more cells from one location to another, either
within a worksheet, between worksheets or to another workbook.
1. Select the cell/s to move.
2. Click the Home tab.
3. Click Cut.
4. Select the upper-left cell of the paste area - the cells you want the
data to move to - or select the entire paste area. You can click on a
cell in a different sheet within the same workbook or open another
workbook file.
5. Click Paste.
16
ECDL Syllabus 5 Courseware Module 4
MANAGING WORKSHEETS
Selecting Rows
Note that:
The entire row of the spreadsheet
sp will be highlighted. The leftmost cell will
also be included in the selection even though it is not shaded.
Note that:
Alternatively you can drag across the row headings of the rows to be selected.
Selecting Columns
Note that:
The entire column of the spreadsheet will be selected. The topmost cell will
also be included in the selection even though it is not shaded.
Note that:
Alternatively you can drag across the column headings of the columns to
select.
18
ECDL Syllabus 5 Courseware Module 4
Column widths can be changed to allow enough space for the data to fit in the cells of
the column.
19
To modify column widths to a specified value:
1. Select the column/s to adjust its width.
2. Click the Home tab.
3. In the Cells group, click Format.
4. Click Column Width… The Column Width dialog
box is displayed.
5. In the Column width: field enter the width value.
6. Click OK button.
You can also adjust the width of a column according to the longest data entry in that
column:
1. Select the column/s to adjust its width.
2. Click the Home tab.
3. In the Cells group, click Format.
4. Click AutoFit Column Width.
Note that:
Alternatively you can double-click the right edge of the column heading. This
adjusts the column width according to the longest entry in that column.
You can also adjust the height of a row according to the data entry in that row:
1. Select the row/s to adjust its height.
2. Click the Home tab.
3. In the Cells group, click Format.
4. Click AutoFit Row Height.
Note that:
Alternatively you can double-click the bottom edge of the row heading.
Comparing two pieces of information at either ends of a large spreadsheet can be very
difficult. MS Excel enables you to ‘lock in’ column and/or row titles such that these will
be in view no matter where you scroll through your sheet. This facility of ‘locking in’
columns and/or rows is known as freezing.
20
ECDL Syllabus 5 Courseware Module 4
Typically the column titles are in column A and the row titles are in row 1. To freeze
the column and/or row titles:
1. Click the View tab.
2. In the Window group, click Freeze Panes.
3. Click Freeze Top Row to freeze row 1. Click Freeze First Column to freeze
column A.
Note that:
Dark horizontal and/or vertical line/s appear on the spreadsheet. These lines
mark the areas of the spreadsheet you have chosen to freeze. Now as you
scroll horizontally or vertically inside the spreadsheet, the areas above and to
the left of the dark, lines will stay on the screen while the rest of the sheet is
allowed to scroll.
To freeze additional rows or columns for example all rows 1 & 2 and columns A & B:
1. Click cell C3.
2. Click the View tab.
3. In the Window group, click Freeze Panes.
4. Click Freeze Panes.
Earlier on you have learnt that workbooks can contain several sheets (also known as
worksheets). By default each workbook displays three sheets – Sheet1, Sheet2 &
Sheet3. To switch from one sheet to the next you need to click on the appropriate
sheet tab (bottom right of the workbook).
The sheet feature allows you to split your data into manageable sections. The sheets
could have the same type of information, for example, sales per person per month i.e.
each sheet would be a different month. Or, the sheets could contain totally different
information, but you have a need to use data from one sheet on another sheet.
21
Inserting & Deleting Worksheets
Note that:
A new sheet tab will be displayed at the bottom of the
workbook screen.
Alternatively, you can insert a sheet by clicking the
Insert Worksheet button.
5. In the To book: field select the workbook to receive the sheets. To move or
copy the selected sheets to a new workbook, click new book.
6. In the Before sheet: field select the sheet before which you want to insert
the moved or copied sheets.
7. To copy the sheets instead of moving them, select the Create a copy check
box.
8. Click OK button.
Note that:
To move or copy sheets to another workbook, open the workbook that will
receive the sheets. Repeat steps 2-8 as above.
You can also move a sheet within a workbook by dragging the sheet tab.
As you start to use sheets, you will probably need to give the sheets more meaningful
names.
Note that:
You can also rename a sheet, by right-clicking the sheet tab card, selecting the
option Rename and repeating step 4 as above.
The sheet name can consist of one or more words. The longer the name,
however, the fewer tabs you can see at once.
It is a good practice to use meaningful worksheet names rather than accept
default names.
23
FORMULAE & FUNCTIONS
Creating Formulae
Addition
A B C D
1 Income
2 Total Sales 4000 5000
3
4 Expenses
5 Cost of Goods Sold 1500 1800
6 Advertising 300 350
7 Rent 450 650
8 Total Expenses
9
10 Profit or Loss
11
12 Average Expenses
13
14 Tax Rate @8%
15
Note that:
The answer will be displayed in the cell where you entered the formula.
You can still see the formula in the formula bar.
24
ECDL Syllabus 5 Courseware Module 4
The answer can also be worked out by typing =1500+300+450 in cell C8,
however, if one of the values in cell C5, C6 or C7 change, you will also need
to change the number in cell C8 otherwise the answer will be wrong. Instead
of numbers we use cell references in cell C8 so that the answer will be
automatically updated when values change.
Subtraction
1. Click the cell where the answer will be placed e.g. C10
2. Enter the formula: =C2-C8
3. Press ENTER key.
Multiplication
1. Click the cell where the answer will be placed e.g. C14
2. Enter the formula: =C10*8%
3. Press ENTER key.
Division
1. Click the cell where the answer will be placed e.g. C12
2. Enter the formula: =C8/3
3. Press ENTER key.
Error Explanation
##### The cell contains a number or calculation result that is too wide for the cell to
display. Adjust the column width to accommodate the result.
#VALUE! The formula contains text (or a cell reference that points to a cell containing text)
instead of a number. Edit the formula or cell to sort this problem.
#REF! Probably the formula contains a cell reference that points to an invalid cell (the
cell could have been deleted).
#NAME? MS Excel does not recognise text contained within a formula.
#DIV/0 The formula divides a number by zero or by a cell reference that points to a cell
containing a zero. The same message is displayed if you divide a number by a cell
reference that points to an empty cell.
25
Relative & Absolute Cell Referencing
Consider the example displayed on the next page, you can use the AutoFill feature to
copy formulae from one cell to another.
1. Click in the cell where the answer will be placed e.g. C8.
2. Type the formula =C5+C6+C7 to calculate the total expenses.
3. Use AutoFill to replicate the function on cells D8.
Note that:
Cell D8 displays the answer. If you click this cell, the formula bar displays the
formula used to calculate the answer.
However you need to use the AutoFill with caution when replicating formulas and
functions. If you calculate the tax rate in cell C14 and then drag the formula to D14,
E14 and F14 you will get strange answers. Click in the cell where the answer will be
placed e.g. in C14 and type the formula =C10*B14 to calculate the tax rate on the
Profit. Now drag the formula using the AutoFill handle to cell D14. The first answer will
be correct (140) but the second one is definitely incorrect (308000). What happened?
A B C D
1 Income
2 Total Sales 4000 5000
3
4 Expenses
5 Cost of Goods Sold 1500 1800
6 Advertising 300 350
7 Rent 450 650
8 Total Expenses
9
10 Profit or Loss
11
12 Average Expenses
13
14 Tax Rate 8%
15
When you dragged the formula =C10*B14 to cell D14, the computer created the
formula =D10*C14. MS Excel adjusted the formula according to its new position - this
is called relative referencing.
However, in your example you expected MS Excel to continue to refer to the same tax
rate. Therefore you have to modify the formula to continue referring to a specific cell
called absolute referencing.
Absolute cell references allow you to continue to refer to a cell, no matter where you
copy a formula. You create an absolute cell reference by entering dollar signs ($)
before each part of a cell reference of a formula you want to copy. The above tax rate
formula will be modified to =C10*$B$14.
Therefore:
A relative cell reference is a reference to a cell in the format A1. MS Excel
changes a relative cell reference when you copy a formula or function
containing such a reference.
26
ECDL Syllabus 5 Courseware Module 4
Arithmetic Functions
Functions, like formulae, allow you to perform calculations using values from any cell/s
in a spreadsheet. You will use the following common functions:
Sum Function
Note that:
The answer will be displayed in the cell where you entered the function.
You can still see the function in the formula bar.
Using the sum function facilitates the addition of a range of cells. The function
in the above example tells the computer to add the contents of cells C5 to C7.
27
You can use the AutoSum function to add the contents of a range of cells:
1. Click the cell where the answer will be placed e.g. C8
2. Click the Home tab.
3. In the Editing group, click AutoSum.
4. Click Sum.
5. Highlight the cells to add their values by dragging the
mouse.
6. Press ENTER key.
Minimum Function
Maximum Function
Average Function
The Average function returns the average (arithmetic mean) of a range of cells.
1. Click the cell where the answer will be placed e.g. C12
2. Enter the function =average(C5:C7)
3. Press ENTER key.
Count Function
Sometimes you may wish to count values or worksheet elements (text, blank cells,
specific number or text, etc.) in a spreadhseet. A "counting" function will return the
number of cells in a range that meet certain criteria.
The COUNT function works out how many cells in a given range contain numbers
(including dates and formulae with numerical answers). It ignores blank cells and cells
containing text, logical or error values.
=COUNT(value1,value2,…)
where value1, value2,... are 1 to 30 arguments that can contain or refer to a variety of
different types of data, but only numbers are counted.
28
ECDL Syllabus 5 Courseware Module 4
Counta Function
The COUNTA function counts the number of cells that contain any type of value -
numbers, text, error text etc. It does not include empty cells.
=COUNTA(value1,value2,…)
where value1, value2,... are 1 to 30 arguments representing the values you want to
count.
Round Function
=ROUND(number,num_digits)
Note that:
If num_digits is greater than 0 (zero), then number is rounded to the
specified number of decimal places.
If num_digits is 0, then number is rounded to the nearest integer.
29
If num_digits is less than 0, then number is rounded to the left of the decimal
point.
The logical function IF (also known as the IF statement) tells MS Excel what to place in
a cell (text, number or calculation) if certain defined parameters are either met or not
met.
Consider the following values A=5 and B=6. The results of the following logical tests
are:
The IF( ) function decides the contents of a cell on a spreadsheet based on whether a
test condition is TRUE or FALSE. It returns a value if a one condition is TRUE, and
another value or result if the condition is FALSE.
Example 1:
A B C
1 Part No. Amount Available
2 542013B 4 Yes
3 190802A 0 No
4 121271C 10 Yes
30
ECDL Syllabus 5 Courseware Module 4
The spreadsheet uses the IF() function to display a message in column C depending
on the Amount for each part which is recorded in column B. If the Amount is 0 column
C displays ‘No’ otherwise it displays ‘Yes’.
Example 2:
A B C
1 Part No. Amount Ordered
2 542013B 4 On order
3 190802A 0 On order
4 121271C 10 No
The spreadsheet uses the IF() function to display a message in column C depending
on the Amount for each part which is recorded in column B. If the Amount is less than
5, column C displays ‘On order’ otherwise it displays ‘No’.
Example 3:
A B C
1 Student Average Mark Pass/Fail
2 Borg Jan 55 Pass
3 Callus Mario 44 Fail
4 Portelli Carlo 78 Pass
The spreadsheet uses the IF() function to display a message in column C depending
on the Average Mark obtained by a student. If the Average Mark is equal to or greater
than 45, column C displays ‘Pass’ otherwise it displays ‘Fail’.
Example 4:
A B C
1 Staff Sales Commission @ 2%
2 Bartolo Carol 500 10
3 Felice Philip 255 5.1
4 Zammit Lourdes 210 0
The spreadsheet uses the IF() function to display a message in column C depending
on the Sales made by each staff. If the Sales is equal to or greater than 250, column
C displays a 2% commission of the sales otherwise it displays ‘0’.
31
The formula in C2 is written as follows: =IF(B2>=250, B2*2%, 0)
The logical_test is B2>=250
The value_if_true is the answer returned by B2*2%
The value_if_false is “0”
32
ECDL Syllabus 5 Courseware Module 4
FORMATTING
Formatting Cells
By default, MS Excel uses the General format for numbers that you type in cells. The
General format has the following characteristics:
Zeros are not displayed after the decimal point – if you
type 23.50 this will be displayed as 23.5.
Thousand numbers are not separated by the comma
symbol – if you type 4,000 this will be displayed as 4000.
You can use several methods to change the formatting of numbers. Several number
format features are available through the Home tab.
Option Button To Do
Currency Puts the default currency style on the left; puts a decimal
point at the end; displays two numbers to the right of the
decimal point; adds commas to separate thousands.
Percent Displays the number as a percentage with no decimals.
To format numbers:
1. Highlight the cell/s you want to format.
2. Click the Home tab.
3. In the Number group, click Currency, Percent, Comma, Increase Decimal
or Decrease Decimal.
33
To format cells to display a date style:
1. Repeat steps 1-4 as above.
2. Click Date below the Category: list box.
34
ECDL Syllabus 5 Courseware Module 4
3. Select the appropriate option in the Locale (location): drop down menu.
4. Click the appropriate date style in the Type: list.
5. Click OK button.
By default, MS Excel 2010 is set to use Calibri font pt. 11. You can change the font
style of the data:
1. Click the Home tab.
2. Select the cells or specific data in a single cell to change its font style.
3. Click the drop-down arrow of the Font box.
4. Select the appropriate font style.
Setting Typestyles
To apply typestyles:
1. Click the Home tab.
2. Select the cells or specific data in a single cell that you want to apply a
typestyle to.
3. In the Font group, click the appropriate typestyle/s required
Underline
to underline characters CTRL+U
35
Applying Colours to the Cell Content & Background
You can copy the formatting (typestyles, fonts etc.) of characters in a cell to other
cell/s as follows:
1. Click the Home tab.
2. Highlight the cell containing the formatting you want to copy.
3. In the Clipboard group, click Format Painter.
4. Drag the mouse to highlight the cell/s to which you want to
apply the formatting.
36
ECDL Syllabus 5 Courseware Module 4
You can apply text wrapping to contents within a cell or a cell range:
1. Click the Home tab.
2. Select the cell/s that you want to apply text wrapping to.
3. In the Alignment group, click Wrap Text.
By default, MS Excel aligns text to the left edge of a cell and values (numbers, dates,
time) to the right edge of a cell. There are three horizontal alignment options in MS
Excel:
Align Left Aligns data to the left edge of the cell. If the data does not fit,
excess data is placed in the cell to the right (if that cell is empty). If
the cell to the right is not empty, the display of the data ends at
the right edge of the cell.
Centre Aligns data in the centre of the cell. Spill over data appears in the
adjoining cells if either or both are empty. Otherwise, the display of
the data is truncated.
Align Right Aligns data to the right edge of the cell. Spill over data appears in
the cell to the left if it is empty. Otherwise, the display of the data
is truncated.
The alignment options indicated above allow you to position cell contents horizontally
(left-to-right). MS Excel also allows you to align cells vertically (top-to-bottom):
37
The following table outlines all the available options in the Alignment tab in the Format
Cells dialog box.
Option To Do This
Horizontal Aligns text to the left, numbers to the right, and centres logical and error
values.
Left (Indent) Aligns cell contents to the left.
Center Centres cell contents.
Right Aligns cell contents to the right.
Fill Repeats the contents of the selected cell until the cell is full. If blank cells to
the right also have the Fill alignment, they are filled as well.
Justify Aligns wrapped text within a cell to the right and left. You must have more
than one line of wrapped text to see the justification.
Center Across Centres a cell entry across the selected cells.
Selection
Vertical
Top Aligns cell contents along the top of the cell.
Center Centres cell contents in the middle of the cell.
Bottom Aligns cell contents along the bottom of the cell.
Justify Justifies the cell contents up and down within the width of the cell.
Wrap text Wraps text into multiple lines in a cell. The number of wrapped lines is
dependent on the width of the column and the length of the cell contents.
38
ECDL Syllabus 5 Courseware Module 4
Option To Do This
Shrink to fit Reduces the apparent size of font characters so that all data in a selected cell
fits within the column. The character size is adjusted automatically if you
change the column width. The applied font size is not changed.
Merge cells Combines two or more selected cells into a single cell. The cell reference for a
merged cell is the upper-left cell in the original selected range.
Orientation Rotates selected cell entries.
Merging Cells
You can join (merge) two or more cells and centre text (e.g. a title) in the merged
cells:
1. Click the Home tab.
2. Highlight the cells across which the data will be centred.
3. In the Alignment group, click Merge & Center.
To remove merging:
1. Click the Home tab.
2. Highlight the cell to unmerge.
3. In the Alignment group, click Merge & Center.
4. Click Unmerge Cells.
39
40
ECDL Syllabus 5 Courseware Module 4
CHARTS
41
Typically, values are plotted along the vertical plane (y-axis) and categories are
plotted along the horizontal plane (x-axis). Labels that run horizontally under the
various data series and display the categories represented are x-axis labels. Labels
running vertically and listing the value increments are the y-axis labels.
To create a chart:
1. Highlight the data to be included in the graph.
2. Click the Insert tab.
3. In the Chart group, click the type of chart to use e.g. Column, Line, Pie, Bar
etc.
4. Click the sub-type of chart to use.
To select a chart:
Click anywhere in the chart. This displays the Chart Tools, adding the Design,
Layout, and Format tabs.
42
ECDL Syllabus 5 Courseware Module 4
43
To resize a chart:
1. Click anywhere inside the chart.
2. Position the pointer on one of the corner handles. The pointer changes to a
double-headed arrow.
3. Drag the mouse to resize the chart.
To delete a chart:
1. Click anywhere inside the chart.
2. Press DELETE key.
44
ECDL Syllabus 5 Courseware Module 4
You can modify the colours of the chart area, plot area and data series:
1. Click the chart.
2. Click the Format tab, under Chart Tools.
3. In the Current Selection group, click the drop down arrow
and choose Chart Area, Plot Area, Legend or any data
series.
4. In the Shape Styles group, click Shape Fill.
5. Select a standard colour or choose More Fill Colours… The Colors dialog box
is displayed.
6. Select a colour.
7. Click OK button.
You can modify the font size and colour of chart title, chart axes and chart legend
text:
1. Click the chart.
2. Click the Format tab, under Chart Tools.
3. In the Current Selection group, click the drop down arrow and choose Chart
Title, Horizontal (Category) Axis or Vertical (Value) Axis.
45
PREPARE OUTPUTS
46
ECDL Syllabus 5 Courseware Module 4
You can also adjust the page setup such that worksheet contents fit on a single page
or on a specific number of pages:
1. Click the Page Layout tab.
2. In the Scale to Fit group: click the Page Setup Dialog Box Launcher. The
Page Setup dialog box will be displayed.
3. In the Page tab, select Fit to: check box.
4. Type a number in the page(s) wide by box.
5. Type a number in the tall box.
6. Click OK button.
Note that:
The Fit to: option reduces the worksheet or selection when you print so that it
fits on the specified number of pages.
To fill the paper width and use as many pages as necessary, type 1 in the
pages(s) wide by box and leave the tall box blank.
47
Adding, Editing & Deleting Data in Headers & Footers
48
ECDL Syllabus 5 Courseware Module 4
You can insert fields such as page numbering information, date, time file name and
worksheet name into the headers and footers:
1. Click the Insert tab.
2. In the Text group, click Header & Footer. The screen will display a
text placeholder in the Header section.
3. In the Design tab, below Header & Footer Tools, click the appropriate
field in the Header & Footer Elements group to insert fields in the
header text placeholder.
To turn on or off the display of gridlines and the row & column headings for printing
purposes:
1. Click the Page Layout tab.
2. In the Sheet Options group:
Click View Gridlines to display/hide gridlines.
Click Print Gridlines.
Click View Headings to display/hide headings.
Click Print Headings.
49
Applying Automatic Title Rows Printing
5. Click Expand button to display the Page Setup dialog box again.
6. Click OK button.
Previewing Worksheets
By previewing the worksheet, you can see each page exactly as it will be printed, with
the correct margins and page breaks, and the headers and footers in place.
To preview a worksheet:
1. Click File tab.
2. Click Print. The Backstage view is displayed. On the right side a preview of
the worksheet is displayed.
3. Click the File tab to return to the Normal view.
Printing
51