Excel
Excel
OBJECTIVES
2. Sort data
3. Filter records
7. Import files
8. Link files
USING FORMULAE TO SOLVE PRACTICAL PROBLEMS
3. Then function name and place its argument in the parenthesis. Eg.
=SUM(B2:E2)
4. If function is not available or not familiar, you can use your own
mathematical statement to produced desired output eg.
=B2+C2+D2+E2
5. Then press enter
NOTE: Always select data you want to manipulate either cell by cell as
in (B2+C2+D2+E2) or by range as (B2:E2)
SAMPLE DATA FOR DEMEONSTRATION
A B C D E F D
1 2024 SHED MOCK EXAMINATION RESULTS
2 S/N First name Surname sex Com Phy Math
3 Masauko Walani m 25 50 66
4 Veronica Chakwana f 86 90 80
5 Ivy Kaliati f 42 30 48
6 David Tsambalikagwa m 75 75 75
7 Dorica Chisale f 35 20 40
8 Emmanuel Matabwa m 55 60 56
9 Falles Mvula f 94 96 98
10 Wyson Bonongwe m 82 78 88
11 Jek Kafaye m 78 60 70
12 Maureen Chikaipa f 63 20 60
13 Grace Muzuwere f 15 30 18
14 Evance Saidi m 18 46 16
15 Dyna Joseph f 77 83 78
16 Megrina Nkhoma f 59 60 89
17 Ireen Chinyama f 5 12 2
18 Elicial Chizimbi m 30 13 12
19 Justin Smoke m 60 52 50
20 Emily Khalika f 92 80 76
21 Menance Banda m 44 63 52
22 Linda Maulidi f 48 30 40
CATEGORIES OF SPREADSHEET FUNCTIONS
Statistical
i. AVERAGE() eg =AVERAGE(E3:G3)
ii. MEDIAN() eg =MEDIAN(G3:G22)
iii. COUNT() eg =COUNT(G3:G22)
iv. MAX() eg =MAXE(G3:G22)
v. MIN() eg =AVERAGE(E3:G3
NOTE: Range can be calculated by creating own formula as =MAX() - MIN()
Logical
i. IF() eg IF(G3>40,”PASS”,”FAIL”)
IF(G3>80,”A”, IF(G3>64,”B”, IF(G3>54,”C”, IF(G3>=40,”D”,”F”))))
v. OR eg OR(F3>50”,G3>50”)
i. TODAY
ii. NOW()
iii. DATE()
iv. HOUR()
v. SECOND()
vi. MINUTE()
Common spreadsheet errors when using formulae
1. #DIV/0!
• Means a formula attempts to divide by zero or by a cell that is
empty.
2. #N/A
• Means that the value used in a formula is not available
3. #NAME?
• Means that Excel doesn't recognize text or function name in a formula ,
4. #VALUE!
• Means that you try to perform a mathematical operation on text.
5. #REF!
• Means that a formula refers to a cell that is deleted
6. #NUM!
• This means that argument passed to the formula is invalid eg =sqrt(-
1)
7. #NULL!
• Means a formula specifies an intersection of two ranges that don’t
Handling errors
The following function helps to manage errors in
excel formulae by replacing with meaningful
value or text when an error occur
IFERROR(3/0,”Divided by 0”)
SORTING DATA
Sorting is the process of arranging items of the same kind in an ordered sequence.
2. On the home tab, click the sort and filter icon then click Custom Sort
command.
3. In the Sort dialog box, select the field to be used as the key for sorting and
the sort orders as either descending or ascending order then click OK button
to apply.
SORT DATA BY CUSTOM LIST
This is user defined order . This is very important if the data need to
• Click sort and filter icon fro home tab then select the Custom Sort
command.
• In the Sort dialog box, select the field to be used as the key for
sorting
• Click Custom list in sort order then create the desired order
SORT DATA BY MULTIPLE COLUMN
This is sorting data by more than one column. For example students
details can be sorted out by both gender and age
• Click sort and filter icon fro home tab then select the Custom Sort
command.
• In the Sort dialog box, select the field to be used as the first key for
sorting data
• Click Add Level to add another field to be used as the second key
Autofilter
Advanced filter
FILTERING DATA USING AUTOFILTER
It can be applied to only one list on a worksheet at a time because the whole
row is involved
To filter data
2. Click filter from Data tab. This will insert filter dropdown arrow to the right
3. Click the dropdown arrow and uncheck data you do not need.
NOTE: You can also uncheck all and then check the required data.
CUSTOM AUTOFILTER
Excel recognizes data type of every column and filter them differently.
So, text, numbers and date are the data types to be discussed here
6. Set the value in the custom autofilter dialog. And click ok to apply
NOTE: The same procedure works with text and date values what changes is step 4
3. Click Advanced from Data tab to open Advanced Filter dialog box
4. Choose filter the list in place to display results on the same location
or choose copy the results to another location.
5. By default List range will be selected. If not then select the data
again.
6. Put the cursor in Criteria range field, then select created criterion
worksheet.
• Charts make it easy for the user to see the comparisons, patterns and
trends in data.
automatically.
used to compare and see patterns and trends in the generated data.
TYPES OF CHARTS
Some of the charts available in a worksheet are;
Line chart
represents data as lines with markers at each data value in the x-y plane.
Column chart
represents data using clustered of columns comparing values across
categories.
Bar chart
represents data using clustered bars arranged horizontally. It is used to
compare values across categories.
Pie chart:
used to present data on a circular pie partitioned into sectors representing
each item being analysed.
Scatter chart
Compares pairs of values on the same axis using scattered dots.
To generate a chart proceed as follows;
Inserting title
Inserting a legend
• Use the place holders on the edge to drag the chart to size.
• To move the chart, click inside the chart area then drag to the
desired position.
• On the chart Tools toolbars, in the chart layout group then click
the Quick layout command. Select a layout that had data labels.
• On the Chart toolbars, in the chart Layout group click Add Chart element then
• Select the preview with the expected position of the title e.g. above chart then
Inserting a legend
To create a legend:
• Select the preview with the right position of the legend you wish and it will be
indicated.
Changing the chart location
2. Select file format to be open and click the file from Open dialog
box.
4. Choose the first row to start importing data, then click next
2. Select the file from dialog box that appear and then click
import
3. Choose the first row to start importing data, then click next
printed
It involves adjusting
Margin
E.g.
=[Item.xlsx]Sales!A1
2. In the source worksheet, highlight the cells you wish to link to and then click
3. Switch focus to the destination workbook. Click the upper left corner of the
4. On the Home tab, Click the paste drop down and then click the paste special
command. In the paste special dialog box, click paste link option then click the
OK command.
ACTIVITY: Create two files; one having prices and the other sales. Then calculate
total sales
Setting margin
Margin is the white space around the document. I control the
extent to which content can be placed on the page. Left margin has
extra space called Gutter to give allowance for binding.
3. Then click ok
Page size, Orientation and scaling
Page size ranges from A1, A2, A3, A4, A5, Letter etc. But
the commonly used size is A4
Orientation determines whether the page will be Portrait or
Landscape
Scaling is used to fit the virtual page on the screen, to the
real page in the printer
All these can be set in Page Setup under Page Layout tab
HEADERS AND FOOTERS
A header is a repeating text printed at the top of every page within the top
margin
A footer is a repeating text printed at the bottom of every page within the
bottom margin
Header or footer includes page number, Company name, Title, motivation text, date
etc