Module 4
Module 4
Module 4
Module 4: Spreadsheet
4.1 Using the Application
4.1.1 Working with Spreadsheets
4.1.1.1 Open, close spreadsheet application. Open, close spreadsheets
Opening the Microsoft Excel Application
To close a Workbook
OR
Otherwise click on the small x button
To close Excel
.
OR
Otherwise click on the big x button
TCTC
Page 1
Press CTRL+O (Depress the CTRL key while pressing the O) on the
keyboard
Click on the office button and from the menu choose open.
Use the look in drop down menu to select the drive or folder that contains
the files that you want.
Select the first file, and then select the second file while depressing the
Ctrl button. (This \will allow you to choose two or more files)
Click New
OR
Press CTRL+N (Depress the CTRL key while pressing the N) on the
keyboard
TCTC
Page 2
Saving a Spreadsheet
OR
OR
TCTC
Page 3
Save As
Click on the Arrow to the right where you have Save as type
There are two ways of how you can switch from one open spreadsheet to
another:1. Click on the required spreadsheet icon that will appear on the
taskbar
2. Or click on the View icon on the Menu Bar and
then click on the Switch Windows and Choose
the document required
TCTC
Page 4
2.
Click Popular.
3.
Under Personalize your copy of Office, type the author name in the User
name box.
TCTC
Page 5
Excel Options
Click Save
Click OK
Page 6
Step1
Step2
Select Zoom.
Step3
Step 4
Click OK.
4.1.2.4 Display, hide built-in toolbars. Restore, minimize the ribbon.
Display toolbars
and
click
quick
on
Access
Toolbar
Choose a tool
TCTC
Page 7
Click Add
Remove toolbars
Choose a tool
Click Remove
4.2 Cells
4.2.1 Insert, Select
4.2.1.1 Understand that a cell in a worksheet should contain only one element of
data, (for example, first name detail in one cell, surname detail in adjacent cell).
Inserting Data Worksheet cells can hold three kinds of data:
TCTC
Page 8
Text
Numbers
Formulas
Entering Text
To enter text in excel all you have to do is click on the cell and start writing. When
finished press Enter key. By default Excel aligns text to the left of a cell, and
numbers to the right of a cell.
4.2.1.2 Recognize good practice in creating lists: avoid blank rows and columns
in the main body of list, insert blank row before Total row, ensure cells bordering
list are blank.
It is important that lists regarding the same subject are not discontinuous. For
excel, this means avoiding Blank rows and columns in the main body of the list.
For the total, insert a blank row between the total and the list so as to be able to
distinguish between them.
Ensure that there is no other data bordering the list so as not to mix the data in
the list with the other data
TCTC
Page 9
By default, pressing ENTER moves the selection down one cell, and
pressing TAB moves the selection one cell to the right.
A cell may display ##### when it contains data that has a number format
that is wider than the column width. To increase the width of the column,
point to Column on the Home tab in Cells Section click Format, and then
click AutoFit Column
To display multiple lines of text inside a cell, select Cells on the Home tab
in Cells Section click Format. Click on Format Cells, click the Alignment
tab, and then select the Wrap text check box. If the text is a single long
word, the characters won't wrap; you can widen the column or decrease
the font size to see all the text. If not all text is visible after you wrap the
text, you may need to adjust the height of the row. Point to Row on the
Home tab in Cells Section click Format, and then click AutoFit Row
For a date, use a slash mark or a hyphen to separate the parts of a date;
for example, type 9/5/2002 or 5-Sep-2002.
TCTC
Page 10
For a time that is based on the 12-hour clock, type a space, and then type
a or p after the time; for example, 9:00 p. Otherwise, Excel enters the time
as AM.
3. You can format the way in which the date or time appears by selecting the
cell/s,
Then, choose the date or time format from the Type: section in the dialog box.
4.2.1.4 Select a cell, range of adjacent cells, range of non-adjacent cells, entire
worksheet.
Select a Cell
Click on one cell in Excel and it becomes the active cell. The active cell always
has a thick border around it (see example below).The address or name of the
active cell is the letter of the column it is in (letter A in this example) followed by
the number of the row it is in (number 1 in this example). The name of the active
cell always shows here (A1).
TCTC
Page 11
TCTC
Page 12
TCTC
Page 13
Undo: - From the Quick Access Toolbar choose the Undo command
Place the insertion point where you want to begin the search
Select the Find and select command from the Home tab.
Select Find
TCTC
Page 14
Place the insertion point where you want to begin the search
Select the Find and select command from the Home tab.
Click on Replace
and
type
the
Depending on the function you wish to perform you can select from the
following:Find Next: - Finds the next occurrence of the selected word or phrase
Replace: - Replaces this instance of the Word, phrase or format
Replace All: - Will replace all occurrences of the selected word, phrase,
and format
TCTC
Page 15
In the Sort by, click the columns you want to sort, starting with the most
important.
If you have more than one column, click on Add Level and do the same.
Select any other sort options you want from the order box (you can
choose to sort your data in ascending or descending order), and then
click OK.
TCTC
Page 16
To move cells, click Cut on the Home tab in the clipboard section, or
press CTRL+
To copy cells, click Copy on the Home tab in the clipboard section, press
CTRL+C
TCTC
Page 17
To move a cell or range of cells, point to the border of the selection. When
the pointer becomes a move pointer, drag the cell or range of cells to
another location.
To copy a cell or range of cells, hold down CTRL while you point to the
border of the selection. When the pointer becomes a copy pointer, drag
the cell or range of cells to another location.
4.2.3.3 Move the content of a cell, cell range within a worksheet, between
worksheets, between open spreadsheets.
Insert moved or copied cells between existing cells
1. Select the cell or range of cells that contains the data that you want to move or
copy.
2. Do one of the following:
To move cells, click Cut on the Home tab in the clipboard section, or
press CTRL+
To copy cells, click Copy on the Home tab in the clipboard section, press
CTRL+C
3. Select the upper-left cell of the paste area. Click on Paste from the Home tab
in the clipboard section
Tip
To move or copy a selection to a different worksheet or workbook, click another
worksheet tab or switch to another workbook, and then select the upper-left cell
of the paste area
TCTC
Page 18
Notes
If you don't want entries that you type to be completed automatically, you
can turn this option off.
2. Click Advanced, and then under Editing options, select or clear the
Enable AutoComplete for cell values check box to turn this option on
or off.
Use the fill handle to fill data
TCTC
Page 19
Note: After you drag the fill handle, the Auto Fill Options
button appears so
2. Click Advanced, and then under Editing options, select or clear the
Enable Fill Handle and cell drag and drop check box to turn this
option on or off.
If you don't want to display the Auto Fill Options button every time you drag the
fill handle, you can turn it off.
Fill data into adjacent cells
1. Select the cells that contain the data that you want to fill into adjacent cells.
To fill in increasing order, drag down or to the right. To fill in decreasing order,
drag up or to the left.
More examples of series that you can fill
TCTC
Page 21
TCTC
Page 22
Page 23
Page 24
To insert a single row, select the row or a cell in the row above which you
want to insert the new row. For example, to insert a new row above row 5,
click a cell in row 5.
TCTC
Page 25
2. On the Home Tab click on the Insert button and click on insert Columns
Tip You can also right-click the selected cells and then click Insert on the
shortcut menu.
Delete Columns or Rows
1. Select the cells, rows, or columns that you want to
delete.
2. On the Home Tab click on the Delete button and
click on Delete Columns or Rows
Tip You can also right-click on rows, or columns, and
then click Delete on the shortcut menu.
If you are deleting rows or columns, other rows or columns automatically shift up
or to the left.
4.3.1.4 Modify column widths, row heights to a specified value, to optimal width
or height.
Set a column to a specific width
1. Select the column or columns that you want to
change.
2. On the Home Tab click on the Format button and
click on Column Width.
Change the column width to fit the contents
1. Select the column or columns that you want to
change.
2. On the Home Tab click on the Format button and click on Auto Fit Column
Width
Tip To auto fit all columns on the worksheet, click the Select All button and then
double-click any boundary between two column headings.
TCTC
Page 26
To change the default column width for a worksheet, click its sheet
tab.
To change the default column width for the entire workbook, rightclick a sheet tab, and then click
Select All Sheets on the shortcut menu.
To change the width of one column, drag the boundary on the right side of
the column heading until the column is the width that you want.
TCTC
Page 27
To change the width of multiple columns, select the columns that you want
to change, and then drag a boundary to the right of a selected column
heading.
To change the width of columns to fit the contents, select the column or
columns that you want to change, and then double-click the boundary to
the right of a selected column heading.
To change the width of all columns on the worksheet, click the Select All
button, and then drag the boundary of any column heading.
To change the row height of one row, drag the boundary below the row
heading until the row is the height that you want.
To change the row height of multiple rows, select the rows that you want
to change, and then drag the boundary below one of the selected row
headings.
To change the row height for all rows on the worksheet, click the Select
All button, and then drag the boundary below any row heading.
To change the row height to fit the contents, double-click the boundary
below the row heading
TCTC
Page 28
On the View tab, in the Window group, click the arrow below Freeze
Panes.
To lock more than one row or column, or to lock both rows and
columns at the same time, click Freeze Panes.
When you freeze the top row, first column, or panes, the Freeze Panes option
changes to Unfreeze Panes so that you can unlock any frozen rows or
columns.
4.3.2 Worksheets
4.3.2.1 Switch between worksheets.
To switch from one worksheet to another simply click on the relevant worksheet
tab towards the bottom of your screen.
4.3.2.2 Insert a new worksheet, delete a worksheet.
To insert a worksheet tab, right click on an existing
worksheet tab and click Insert, as illustrated.
Page 29
By default the sheet will be named Sheet 4 and it will be placed in front of the
sheet on which you clicked before choosing the Insert command. You can
change the name as well as the position of the worksheet.
To delete a worksheet
Right click on the worksheet tab that you wish to delete. Select Delete from the
popup menu displayed.
4.3.2.3 Recognize good practice in naming worksheets: use meaningful
worksheet names rather than accept default names.
Name worksheets in a meaningful way to you so that when you are looking for a
particular sheet you can find it quickly and easily. This saves time since it is
quicker to locate
TCTC
Page 30
To move a worksheet
You can change the position of your worksheets by using drag and drop
techniques with your mouse.
Copy a worksheet
To copy a worksheet tab right click on the worksheet tab
that you wish to copy. From the popup menu displayed
select the Move or copy command. Then select the sheet
where you want the worksheet to be. Tick the Create a copy
box. Then click OK
TCTC
Excel formulas starts with the equal sign ( = ) rather than ending with it.
The equal sign always goes in the cell where you want the formula
answer to appear.
The equal sign informs Excel that what follows is part of a formula, and
not just a name or a
number.
Mathematical Operators
Creating formulas in Microsoft Excel is not difficult. Just combine the cell
references of your data with the correct mathematical operator.
Multiplication - asterisk (* )
While the formula in the previous step works, it has one drawback. If
you want to change the data being calculated you need to edit or
rewrite the formula.
A better way would be to write formulas so that you can change the
data without having to change the formulas themselves.
To do this, you need to tell Excel which cell the data is located in. A
cell's location in the spreadsheet is referred to as its cell reference.
To find a cell reference, simply look at the column headings to find
which column the cell is in, and across to find which row it is in.
Page 32
Let's try a step by step example. We will write a simple formula in Excel to add
the numbers 3 + 2.
Step 1: Entering the data
It's best if you first enter all of your data into the spreadsheet before you begin
creating formulas. This way you will know if there are any layout problems, and it
is less likely that you will need to correct your formula later. For help with this
tutorial refer to the image above.
1. Type 3 in cell A1 and press the ENTER key on the keyboard.
2. Type 2 in cell A2 and press the ENTER key on the keyboard.
TCTC
Page 33
TCTC
Page 34
TCTC
Page 35
A relative cell address consists of the column letter and row number that intersect
at the cell's location. An example of a relative cell address would be C4, G15, or
Z2345. Note: When listing a cell address - either relative or absolute, the column
letter is always listed first.
Absolute cell referencing
An absolute cell address consists of the column letter and row number
surrounded by dollar signs ( $ ).
An example of an absolute cell address would be $C$4, $G$15, or
$A$345.
Note: An easy way to add the dollar signs to a cell address is to click on a cell
address and then press the F4 key on the keyboard.
An absolute cell address is used when you want a cell address to stay
fixed on a specific cell.
This means that as a formula or function is copied and pasted to other
cells, the cell addresses in the formula or function do not change.
4.4.2 Functions
4.4.2.1 Use sum, average, minimum, maximum, count, counta, round functions.
The Sum Function
Probably the most popular function in any spreadsheet is the SUM function. The
Sum function takes all of the values in each of the specified cells and totals their
values. The syntax is:
=SUM(first value, second value, etc)
In the first and second spots you can enter any of the following (constant, cell,
range of cells).
TCTC
Page 36
Page 37
Let's use the table here for the discussion that follows. We
will look at several different specific examples that show
how the Max functions can be used!
TCTC
Page 38
Let's use the table here for the discussion that follows. We will look at several
different specific examples that show how the min functions can be used!
TCTC
Page 39
Let's use the table here for the discussion that follows.
We will look at several different specific examples that
show how the Count functions can be used!
TCTC
Page 40
Let's use the table here for the discussion that follows. We will
look at several different specific examples that show how the
CountA functions can be used!
TCTC
Page 41
TCTC
Page 42
4.4.2.2 Use the logical function if (yielding one of two specific values) with
comparison operator: =, >, <.
How it works:
The Excel IF function checks to see if a certain condition is true or false. If the
condition is true, the function will do one thing, if the condition is false, the
function will do something else.
The IF function we are using in this tutorial asks if the value in column A is
greater than the value in column B. If it is, the IF function will place the statement
"A is larger" in column D. If it is not, the IF function will place the statement "B is
larger" in column D.
Our IF function will be entered into cell D1 and it looks like this:
=IF(A3 > B3,"A is larger","B is larger")
Note: the two text statements "A is larger" and "B is larger" are enclosed in
quotations. In order to add text to an Excel IF Function, it must be enclosed in
quotation marks.
TCTC
Page 43
Adding Separators
TCTC
Page 44
Comparison Operators
The comparison operators that can be used in the logical test portion of an Excel
IF function are:
Equals (=)
TCTC
Page 45
TCTC
Page 46
Page 47
The IF function
window will be
displayed, as
illustrated:
TCTC
Page 48
Where:
Logical test what are we asking? In this case, lets say our logical test is Is
the value in Column A larger than the value in Column B? (e.g. a1>b1)
Value if true what do we want displayed if the answer to our question is true?
For example, we want the answer to be yes.
Value if false what do we want displayed if the answer is false? For example,
we want the answer to be no.
TCTC
Page 49
Change
Click OK
the
decimal
place
from
the
right
of
the
window
TCTC
Page 50
Click OK
From
the
symbol
Click OK
From
the
Number
Tab
click
on
Percentages
Click OK
TCTC
Page 51
4.5.2 Contents
4.5.2.1 Change cell content appearance: font sizes, font types
Changing the Font
Arial is the font that is currently being used. Your
computer might show a different font name here.
Click on the drop-down arrow to display the list of
available fonts. Use the
scroll bar to see the full
list. Then, simply click on the font of your choice.
Click on the drop down arrow showing the current font size, and select the
font size of your choice.
TCTC
Page 52
Select the cell that you want to make bold, and move your pointer to the
Home tab.
Click Bold
Select the cell that you want to make Italic, and move your pointer to the
Home tab.
Click Italic
Select the cell that you want to make underlined, and move your pointer
to the Home tab.
Click Underlined
selected
If you need the line to be double click on the arrow
next to underlined and choose double underline
TCTC
Page 53
Select the cell that you want to change the colour of the cell content,
and move your pointer to the Home tab.
Select the cell that you want to change the colour of the cell
background, and move your pointer to the Home tab.
4.5.2.4 Copy the formatting from a cell, cell range to another cell, cell range.
1.
Select a cell that has the formatting that you want to copy.
2.
pointer across the cell or range of cells that you want to format.
To copy the formatting to several cells or ranges of cells,
the mouse pointer across each cell or range of cells that you want to
format. When you're done, either click Format Painter
again or
click the heading of the column that you want to apply the column width to.
TCTC
Page 54
Note:
If not all wrapped text is visible, it may be because the row is set to a specific
height. Thus, you may need to adjust the height of the row.
4.5.3.2 Align cell contents: horizontally, vertically. Adjust cell content orientation.
From
the
Alignment
Tab
you
can change
the
text
alignment if
Horizontally
or vertically
and
the
orientation
TCTC
Page 55
The cells will be merged in a row or column, and the cell contents will be
centered in the merged cell.
4.5.3.4 Add border effects to a cell, cell range: lines, colours.
1.
On a worksheet, select the cell or range of cells that you want to add a
border to, change the border style on, or remove a border from.
2.
To apply a new or different border style, click the arrow next to Borders
on the Font section, and then choose a border style from the palette.
Tip To apply a custom border style or a diagonal border, click on the arrow
next to border and click More Borders. On the Border tab, click the line style
and color that you want, and then click one or more buttons to indicate the
border placement. Two diagonal border buttons
Border.
3.
TCTC
in the font
on the palette.
Page 56
4.6 Charts
4.6.1 Create
4.6.1.1 Create different types of charts from spreadsheet data: column chart, bar
chart, line chart, pie char
1.
On the worksheet, arrange the data that you want to plot in a chart.
For a column, bar, or line chart, you should arrange the data
in columns or rows.
Data in columns:
Data one
Data two
Data in rows:
Data one
Data two
For a pie chart with only one series of data, you should
TCTC
Page 57
Select the cells that contain the data that you want to use for the chart.
TIP If the cells that you want to select for the chart are not in a continuous
range, select the first group of cells that contain the data that you want to
include. Hold down CTRL, and then select any additional cell groups that
you want to include. The nonadjacent selections must form a rectangle.
3 Click on Insert and choose which one you need from the chart section
TCTC
Page 58
2.
3.
Select the chart type that you wish to use and click OK.
Click in the chart area and drag the chart to another location.
To resize the chart
TCTC
Page 59
4.6.2 Edit
4.6.2.1 Add, remove, edit a chart title.
This displays the Chart Tools, adding the Design, Layout, and Format
tabs.
In the Chart Title text box that appears in the chart, type the text that
you want.
NOTE
Depending on the chart type that you used, different data label
Page 60
TCTC
Page 61
4.6.2.4 Change the column, bar, line, pie slice colours in the chart.
Change column colours in a chart
1. Right click on a column and click Format Data
Series.
2. From the fill tab choose solid fill and from the
colours choose one of the colours given
3. The same method applies if you wish to change
the bar, line, or pie slice colours in different chart
types.
TIP:
Note that when you right click on a column / bar / line / pie slice and choose
Format Data series, you will change the colour for
the whole series If you only wish to change the
colour of that particular column / bar / line / pie slice,
first click once on the chart element in question to
select the series, click once again on the single
element from the series (e.g. column / bar / pie
slice), and then right click on it and choose Format
TCTC
Page 62
To change the font size and colour of the chart axes labels:
TCTC
Page 63
TCTC
Page 64
TCTC
Page 65
2. Tick the box next to fit and write a number in the box next to pages by
wide and another number next to pages tall
From the Insert tab, select the Header and Footer button
4.7.1.5 Insert and delete fields: page numbering information, date, time, file
name, worksheet name into headers, footers.
From the Insert tab, select the Header and Footer button
From the Header and Footer Elements choose what you need
TCTC
Page 66
Page 67
4.7.2.2 Turn on, off display of gridlines, display of row and column headings for
printing purposes.
Gridlines
1. On the Page Layout tab, in the Sheet options group,
Tick the Print under Gridlines so that they will print as
well not seen only on the screen.
TCTC
Page 68
4. Then click OK
TCTC
Page 69
Point to Print.
Note:
To exit Print Preview and return to Normal View, click on Close Print
Preview.
TCTC
Page 70
The
In the Page range section choose whether you wish to print all the pages
dialog
box
will
be
displayed
as
illustrated
below.
in the workbook or you can choose from which page to which page you
want to print.
In the Copies section specify how many copies of the same document
you wish to print.
TCTC
Page 71
You can choose to print a selection which you selected already, the entire
workbook or the active sheet that you were using before you clicked on
Print
.
.
TCTC
Page 72