training manual5
training manual5
1
6.5. Using IF function ........................................................................................................... 28
6.6. Examples of using IF Function ...................................................................................... 29
6.7. Nested IF function .......................................................................................................... 30
7. ABOUT SORTING AND FILTERING ............................................................................... 32
7.1. Sort data in a List ........................................................................................................... 32
7.2. Filter data in a list using AutoFilter ............................................................................... 33
8. CREATING CHARTS.......................................................................................................... 37
8.1. Available chart types.......................................................................................................... 37
8.2. How to Insert Chart ............................................................................................................ 37
8.3. Column charts .................................................................................................................... 38
8.4. Line charts .......................................................................................................................... 40
8.5. Pie charts ............................................................................................................................ 43
8.6. Bar charts........................................................................................................................ 43
9. USING CELL REFERENCE ............................................................................................... 44
9.1. Introduction .................................................................................................................... 44
9.2. Types of cell references.................................................................................................. 45
10. EXTERNAL REFERENCE............................................................................................... 47
10.1. Referring a cell or range of cells to another worksheet within the same workbook .. 47
10.2. 3-D Reference ............................................................................................................. 49
10.3. Referring a cell or range of cells to another worksheet in another workbook............ 50
11. CHANGING WORKSHEET VIEWS ............................................................................... 51
11.1. Use Page Layout View ............................................................................................... 52
11.2. Working With Portrait and Landscape Orientation .................................................... 52
11.3. Changing the Page Orientation and Paper Size .......................................................... 52
11.4. Creating Sheet Settings ............................................................................................... 54
12. CLASS ASSIGMENTS ..................................................................................................... 55
12.1. Exercise 1 ................................................................................................................... 55
12.2. Exercise 2 ................................................................................................................... 56
12.3. Exercise 3 ................................................................................................................... 57
2
1. MAJOR COMPONENTS OF THE EXCEL WINDOW
1.1 Introduction
Microsoft Excel is a spreadsheet application primarily used to organize, process, analyze and
summarize data. Before learning how to use Microsoft spreadsheet or Excel, it is important
to familiarize with the visual environment of Excel window. Excel window provides
interface through which user can interact with spreadsheet application and work with it to
accomplish her task. This interface comprises various components and tools designed to
help spreadsheet user achieve her goal. Figure 1 shows major components of Excel window
(interface).
3
1.2. Description of Excel Components
4
2. MANAGING WORKBOOK AND WORKSHEETS
2.1. Introduction
Unlike MS Word, a file created by MS Excel is called a workbook. Each workbook is made up
of individual worksheets, or sheets which are similar to pages in a book. Each worksheet is
composed of cells that are arranged in rows and columns. When you start MS Excel, by
default it will open a blank workbook with a blank worksheet. This is a place where all sorts
of calculations can be made to accomplish user’s task.
5
✓ On the Home tab, in the Cells group, click
Insert, and then click Insert Sheet.
✓ You can also right-click the selected sheet
tabs, and then click Insert. On the General
tab, click Worksheet, and then click OK.
✓ On the Home tab, in the Cells group, click the arrow next to
Delete, and then click Delete Sheet.
✓ You can also right-click the sheet tab of the worksheet that you
want to delete, and then click Delete.
6
Figure 4: Move or Copy from drop down menu
7
4. Click OK.
8
✓ Select a cell in the column.
✓ On the Home tab, in the Clipboard group, click Copy, and then
select the target column.
✓ On the Home tab, in the Clipboard group, click the arrow below
Paste, and then click Paste Special.
✓ Under Paste, select Column widths.
Change the width of columns by using the mouse
✓ Do one of the following:
✓ 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.
Change width of all columns on worksheet
✓ click the Select All button or press Ctrl + A
✓ Drag the boundary of any column heading.
✓ Drag the boundary below the row heading until the row is the
height that you want.
Change the row height for all rows on the worksheet
9
✓ Double-click the boundary below the row heading.
A cell refers to a point of intersection between a given row and column in the worksheet.
Thus, each cell is given a name which combines row heading and column heading of
associated row and column in the intersection. E.g. cell B5 refers to an intersection point of
a column with column heading B and a row with row heading 5.
Row heading
10
✓ Select the first row or column
✓ Hold down SHIFT while you select the last row or column.
Selecting nonadjacent rows or columns
✓ Click the column or row heading of the first row or column in your selection
✓ Hold down CTRL while you click the column or row headings of other rows or
columns that you want to add to the selection
11
✓ Hold down CTRL while you select nonadjacent columns.
✓ On the Home tab, in the Cells group, click the arrow next to Insert
✓ Click Insert Sheet Columns.
✓ You can also right-click the selected cells and then click Insert on
the shortcut menu.
12
To unhide row(s) follow these steps:
13
To unhide column D. follow these steps:
14
To copy range of cells, follow these steps
Figure 18: copying rows of data (1) Figure 19: copying rows of data (2)
15
To copy column(s) of data, follow these steps
1. Select a column you want copy, e.g. column D by clicking on column heading
2. Click command Copy or simply press a combination of Ctr+C
3. Click on column heading G to select it
4. Click command Paste or simply press a combination of Ctr+V. The contents of column
heading D has been copied to column heading G
Figure 20: copying column of data (1) Figure 21: copying column of data (1)
16
4.3. Exercises
17
5. CELL FORMATTING
You can add a border around cells or range of cells using the
following steps:
Text Wrapping:
Text Alignment
1. On Alignment group, select alignment button
2. Select one of the alignment options that appears
Cell Merging
1. Cell range of cells to be merged
2. On Alignment group Select Merge & Center option
3. Select one of the first three cell merging options
that appears
18
5.3. Number with decimal and currency
Currency Format
If a number on cell represents currency,
you can specify the type of currency you
want to use as follows:
19
Click arrow button on Number group to
open Format Cells dialog box.
There are two basic ways to perform calculations in Excel: Formulas and Functions.
Excel formula always begin with an equal sign (=) such as =B2+C2, and can consist of one or
more arithmetic operators. Excel follows the order of precedence, which is a set of
predefined rules to calculate a value
20
Figure 24: Examples of the Formula
1. Click the cell in which you want the result of the formula to appear
2. Type the equal sign (=)
3. Enter appropriate formula for performing calculations. The entered formula is displayed
on the formular bar.
4. Press Enter. The result will be displayed in the current cell
21
6.2. Exercise on creating formula in Excel
22
Excel basic functions
Among the basic functions which are very helpful and provide necessary skill for An Excel
novice are:
• SUM
• SUMIF
• AVERAGE
• AVERAGEIF
• COUNT
• COUNTIF
• MIN
• MAX
• IF
SUM function
The SUM function performs the basic arithmetic operation of addition. Its syntax is
SUM(number1, [number2], …)
An argument enclosed in [square brackets] is optional, other arguments are required. Meaning,
your Sum formula should include at least 1 number, reference to a cell or a range of cells. For
example:
If necessary, you can perform other calculations within a single formula, for example, add up
values in cells B2 through B6, and then divide the sum by 5:
=SUM(B2:B6)/5
23
Figure 27: Using SUM function
SUMIF function
Unlike SUM function, the SUMIF function performs arithmetic operation of addition with some
conditions. Its syntax is SUMIF(range, criteria,[sum_range]).
• range = This argument indicates the range of cells that the criteria are to be applied
against.
• criteria = This is criteria itself to be applied within the range
• sum_range = This argument indicates the range of cells to be summed together.
Example:
We want to know total number of customers who use SMS service in six companies indicated in
the table. Here, our criteria is “SMS” service. The result is displayed in the cell E10.
So, our SUMIF function will look like this: =SUMIF(D4:D9,“SMS”,E4:E9)
AVERAGE function
The Excel AVERAGE function does exactly what its name suggests, i.e. finds an average, or
arithmetic mean, of numbers. Its syntax is: AVERAGE(number1, [number2], …)
24
In the following example, the function AVERAGE adds up all of the values found in the range of
between B1 and B4. Then, it finds the average by dividing the sum by number of cells within the
range. Type the function =AVERAGE(B1:B4) in cell B5 and then press enter to display the result.
AVERAGEIF function
AVERAGEIF function finds average value for the cells specified by a given condition or criteria.
Its syntax is AVERAGEIF(range, criteria,[average_range])
Example:
The table below shows examination results of two subjects (Kiswahili and English). Now, we want
to know average marks students scored in English subject. So, our criteria is “English” subject. By
using AVERAGEIF function we get the result very easily as displayed in the cell E10.
25
Use the same previous examples and find the maximum and minimum numbers within the range
B1 and B4. Results are shown in figure xx respectively.
COUNT
The COUNT function counts the number of cells that contain numbers within a given range of
cells. The syntax is COUNT(value1, value2, …). Now, practice the same previous example and
count how many cells within the range has a value in it. The result is displayed in figure xx.
26
COUNTIF function
The COUNTIF function counts the cells that meet a certain criterion. Its syntax requires 2
arguments: COUNTIF(range, criteria)
In the first argument, you define a range where you want to count cells. And in the second
parameter, you specify a condition that should be met.
Example:
Count how many students took Kiswahili exam. You use the following COUNTIF function as
=COUNTIF(D4:D10, "Kiswahili").
Instead of typing a criterion directly in the formula, you can input a cell reference as demonstrated
in the following screenshot:
27
6.4. Exercise on using Excel functions
Use appropriate functions to fill up the following table:
28
Table 1: Using comparison operators in IF function
29
Figure 37: Using IF function to determine Pass status (2)
3-possible outcomes
For example, one college decides awarding scholarship to students based on examination results
as the only criteria (condition). This is given below:
To solve such problem, one should use Nested IF function. In nested IF function, one IF function
is embedded in another IF function. For example, if there are 3 possible outcomes in the problem,
as the case shown above, the syntax of nested IF function will look like this:
Note:
• 2-IF functions, one is nested into another
• Number of opening and closing brackets are the same
30
Figure 38: Nested IF function in 3-possible outcomes
4-possible outcomes
If the problem has four possible outcomes, the syntax of IF function will look like this:
=IF(logical_test,value_if_true,IF(logical_test,value_if_true,IF(logical_test,value_if_true,
value_if_false)))
Note:
• 3-IF functions, one is outside and the other two are inside
• Number of opening and closing brackets are the same
Example
Suppose scholarship award is available in three categories: silver, gold and bronze.
31
7. ABOUT SORTING AND FILTERING
Sort Text
1. Select a column of alphanumeric data in a range of
cells, or make sure that the active cell is in a table
column containing alphanumeric data.
2. On the Home tab, in the Editing group, and then
click Sort & Filter.
3. Do one of the following:
a. To sort in ascending alphanumeric order, click
Sort A to Z.
b. To sort in descending alphanumeric order,
click Sort Z to A.
Sort Numbers
1. Select a column of numeric data in a range of cells,
or make sure that the active cell is in a table column
containing numeric data.
2. On the Home tab, in the Editing group, click Sort &
Filter, and then do one of the following:
a. To sort from low numbers to high numbers,
click Sort Smallest to Largest.
b. To sort from high numbers to low numbers,
click Sort Largest to Smallest.
32
7.2. Filter data in a list using AutoFilter
Sometimes you will want to see a portion of the records instead of all of them. The processing
of displaying only those records that meet some criteria is called Filtering. When data in the
list is filtered, records that do not meet your criteria are hidden. These records are not
removed from the list and, therefore, can be redisplayed by removing the filter. Simple filters
can be specified by clicking the list arrow on any field name cell. More complex filters must
be created using the Custom AutoFilters option.
After you filter data, you can copy, find, edit, format, chart, and print the subset of filtered
data without rearranging or moving it.
You can also filter by more than one column. You can filter three types of data including Text,
Number and Date and time.
Filter by Number
You can filter Number (cell contains number) by using one of the comparison operator
commands listed below.
• Equals
• Does Not Equal
• Greater Than
• Greater Than Or Equal To
• Less Than
• Between
• Etc…
Filter by Text
You can also filter by text (i.e. cell contain text data) such as names by using one of the
comparison operator commands listed below:
• Equal
• Does Not Equal
• Begin With
• Ends With
• Contains
• Does Not Contain
33
Examples of filtering
Steps:
• Point to Number Filters and then click one of the comparison operator
commands.
34
Figure 41: Selected comparison operator command
• On the Custom AutoFilter dialog box, type 70 on the right of on the dropdown box
containing comparison operator command.
• Click OK.
35
Example 2: Filter by text
From the Test Scores table, display rows which contains students’ names that end with
letter a.
Steps:
• Point to Number Filters and then click one of the comparison operator commands.
• On the Custom AutoFilter dialog box, type letter a on the right of on the dropdown
box containing comparison operator command.
• Click OK.
36
Figure 44: Filtered data
8. CREATING CHARTS
Charts, or graphs, provide visual representations of the workbook data. A chart may be
embedded in an existing worksheet, or can be created on a separate chart sheet, with its own
tab in the workbook. Excel provides a variety of chart types that you can choose from when
you create a chart. For most charts, such as column and bar charts, you can plot the data that
you arrange in rows or columns on a worksheet in a chart. Some chart types, however, such
as pie and bubble charts, require a specific data arrangement.
✓ Column charts
✓ Line charts
✓ Pie charts
✓ Bar charts
✓ Area charts
✓ XY Scattered charts
If you select only one cell, Excel automatically plots all cells containing data that
directly surround that cell into a chart. If the cells that you want to plot in a chart are
not in a continuous range, you can select nonadjacent cells or ranges as long as the
selection forms a rectangle. You can also hide the rows or columns that you don't
want to plot in the chart.
✓ Click the chart type, and then click a chart subtype that you want to use.
37
✓ To see all available chart types, click a chart type, and then click All Chart Types to
display the Insert Chart dialog box
✓ Click the arrows to scroll through all available chart types and chart subtypes, and
then click the ones that you want to use.
Example
We want to show visual comparisons among students’ examination marks in Biology
examination results. The data is given in figure 45. To achieve this, we create column chart
showing student names and their respective total marks.
Step:
1. Select list of students’ names together with its label Student Name
2. Press Ctrl key while selecting list of total marks together with its label Total Marks
3. column containing student Click Insert
4. Click Column. You will see variations of column charts
5. Click Clustered column
38
Figure 47: Column chart showing examination results
39
Figure 49: Adding data labels (2)
✓ You should use a line chart if your category labels are text, and are representing evenly
spaced values such as months, quarters, or fiscal years.
✓ You should also use a line chart if you have a few evenly spaced numerical labels,
especially years. If you have more than ten numerical labels, use a scatter chart instead.
Example
Fahari Computers’ store is a business entity that sells computer accessories in three
Tanzania regions namely DSM, Dodoma and Arusha. You are given annual sales of computer
accessories in 2023 as shown in the figure 50. Use Line charts to visualize the sales trends
and compare business performance in those regions.
40
Figure 50: Annual Sales in four Quarters
Step:
1. Select branches and quarter sales with their respective labels
2. Click Insert tab on the Excel panel
3. Click Line arrow on the Charts panel
4. Click Line. The line chart is displayed as in figure xxx.
41
Formatting the chart
• Add data label to the line chart as you did to column
chart.
• Change Chart Title to: Annual Sales of Computer
Accessories 2023
• Change chart colour to yellow by following these
steps:
o Select area of the chart by right clicking the
mouse. Drop-down menu appears
o Click Format Chart Area from drop-down
menu. Format Chart Area dialog box
appears (see figure 52)
o Select Solid fill
o Select yellow color from Fill Color
o Close the dialog box. The line chart has been
changed to reflect formatting selection
(figure 53)
42
8.5. Pie charts
Data that is arranged in one column or row only on a worksheet can be plotted in a pie chart.
Pie charts show the size of items in one data series, proportional to the sum of the items. The
data points in a pie chart are displayed as a percentage of the whole pie.
✓ You only have one data series that you want to plot.
✓ None of the values that you want to plot are negative.
✓ Almost none of the values that you want to plot are zero values.
✓ You don't have more than seven categories.
✓ The categories represent parts of the whole pie.
43
Consider using a bar chart when:
9.1. Introduction
The row and column in Excel together make a cell. We input data in cells of a worksheet. A
cell reference is the name that identifies a cell or a range of cells on a worksheet and tells
Microsoft Excel where to look for the values or data you want to use in a formula. It is formed
by combining column name and row number. For example, A2 and C3 are cell references in
the example below.
✓ With cell references, you can use data contained in different parts of a worksheet in
one formula or use the value from one cell in several formulas.
✓ You can also refer to cells on other sheets in the same workbook, and to other
workbooks.
44
9.2. Types of cell references
Relative references
By default, a cell reference is a relative reference, which means that the reference is relative
to the location of the cell. When you copy a formula that contains a relative cell reference,
that reference in the formula will change to reflect location of the cell. And the content of the
cell reference also changes.
As an example, try to copy the formula =B4+C4 from cell D4 to D5, the formula in D5 adjusts
to the right by one column and becomes =B5+C5. Because the cell reference changes in the
formula, so does the content of the cell reference. This is shown in the figure 58 below.
Note that the formula =B4+C4 outputted 44 in D4. But when copied to cell D5, outputted 0.
Absolute references
An absolute reference is a cell reference that does not change (constant) when you copy the
formula to a new location. To create an absolute reference, you preface the column and row
designations with a dollar sign ($). For example, the absolute reference for =B4+C4 would
be =$B$4+$C$4. Then, when you copy the formula from D4 to D5, the formula stays exactly
the same no matter where you copied the formula. This is shown in the figure 58.
45
Because the cell reference remains unchanged in the formula, so does the content of the cell
reference as shown in the figure 58. The formula =$B$4+$C$4 outputted 44 in D4, and when
copied to cell D5, the output remained the same.
Mixed References
Mixed reference is formed by making one of the parts of cell reference relative and another
absolute. That is when either the column is made constant or the row is made constant. When
we make any column or row constant then the column name or row number does not change
as we copy the formula to other cell(s). The mixed reference is designated by a dollar sign
($) before the row or column. For example:
Mixed Reference: Column A and row 1 are absolute, column B and row 2 are relative
The following example is about using mixed reference to create multiplication table. Please
copy the formula along the rows and columns to fill up the table.
46
Figure 60: Using mixed reference to create multiplication table
10.1. Referring a cell or range of cells to another worksheet within the same
workbook
Reference to different worksheet in the same workbook can be done by typing the name of the
worksheet containing the cells (you want to refer to) followed by an exclamation point (!) to the
cell reference. Typical example is shown below.
In this example, the AVERAGE worksheet function calculates the average value for the range
B1:B10 on the worksheet named Marketing in the same workbook.
Figure 62: Cell reference from another worksheet in the same workbook
Note
1. The word sales in the formula represents worksheet name containing original data
2. F4:F9 indicates range of cells to be summed up in column F which contain list of individual
sales for each item
If you want to refer to sales of particular item, let’s say, EPSON Printer which is located in cell
reference F4, just identify the worksheet name (sales) followed exclamation mark (!) and the cell
reference. Hence, you type =sales!F4 in the current worksheet to get the result!
48
10.2. 3-D Reference
A reference that refers to the same cell or range on multiple worksheets is called a 3-D
reference. 3-D reference is used for consolidating information from multiple worksheets
within the workbook. This means that 3-D reference deals with data from a range of
worksheets and not from as a single worksheet as we saw in previous case.
To use a 3-D reference requires that the data from all worksheets must follow the same
pattern. For example, all the data from all worksheets must be placed in exactly the same cell
reference (e.g. B3) or the same cell range (e.g. B3:B1). Similarly, the cells on each worksheet
must contain the same type of data, such as numbers.
Example:
Suppose you want to sum up budget allocation from three departments namely Sales, HR,
and Marketing. Each department represents different worksheet. The total amount of budget
allocation in each worksheet is placed in cell reference B3. So, the summation of budget
allocation for all three departments (worksheet) can be easily obtained by using reference
formula as follows:
=SUM(Sales:Marketing!B3)
This formula must be typed in consolidation worksheet which summarizes the data (see
figure xx). Note also that the expression Sales:Marketing refers to range of worksheets
(Sales-HR-Marketing)
You can even add another worksheet, and then move it into the range that your formula
refers to. For example, to add a reference to cell B3 in the Facilities worksheet, move the
Facilities worksheet between the Sales and HR worksheets as shown in the following
example.
49
You can use the following functions in creating a 3-D reference:
You can refer to the contents of cells in another workbook when it is not practical to keep large
worksheet models together in the same workbook. For example, you can merge data by linking
workbooks from several users or departments and then integrate the pertinent data into a
summary workbook.
Apart from worksheet name, when you create an external reference from one workbook to
another workbook, you should also use a name of the workbook to refer to the cells that you
are linking to.
For example, the following formula adds the cells C10:C25 from the workbook named
Budget.xls.
50
When the source is open
External reference
=SUM([Budget.xlsx]Annual!C10:C25)
When the source is not open, the external reference includes the entire path.
External reference
=SUM('C:\Reports\[Budget.xlsx]Annual'!C10:C25)
51
11.1. Use Page Layout View
Before you print a Microsoft Office Excel worksheet that contains large amounts of data or charts,
you can quickly fine-tune it in the new Page Layout view to achieve professional-looking results.
In this view, you can change the layout and format of data the way that you can in Normal view.
Page Layout view is useful to get your data ready for printing. Page breaks are more easily adjusted
in Page Break Preview view. For an exact preview of how the data will be printed, you can preview
the worksheet pages in Print Preview view.
52
To Change Page Orientation:
• Select the correct worksheet.
• Choose File Page Setup from the menu bar.
• Click on the Page tab.
53
11.4. Creating Sheet Settings
The Sheet tab in the Page Setup dialog box provides additional print options you may want to
add to your worksheet.
Print Area
By default, Excel prints from the A1 to the last occupied cell in a worksheet. You can specify a
different range of cells to print.
Print Titles
Prints column and row labels on each page of the printout. Specify these rows or columns in the
Rows to Repeat at Top and Columns to Repeat at Left textboxes.
Print - Gridlines
Determines whether gridlines are printed. However, turning off gridlines does not affect their
appearance in Normal View.
Print - Black and White
If you used colors in your worksheet but don't want to waste the ink in your color printer, use
black and white.
Print - Draft Quality
Choose draft quality to print the worksheet without gridlines or graphics.
Print - Row and Column Headings
Click this option to include row numbers and columns letters in your printed document.
Page Order
Determines the order in which worksheets are printed.
54
12. CLASS ASSIGMENTS
12.1. Exercise 1
Jua Kali ICT Training Academy is a fictitious training college that provides ICT training
services to local community. The college remunerates its teaching staff based on the
following:
• Flat basic salary for all teaching staff
• Administrative allowance for teaching staff with additional administrative duties
• Monthly payment based on the number of teaching hours
Other information to be considered before staff payment is released includes the deduction
of income tax and staff loan, if any.
Staff Admin. Admin. No. of Total Staff Gross Income Net
Name duties allowan teachin teachin Loan salary tax salar
ce g hours g y
payme
nt
MSECHU Counselor 55000 40 64550
MAGAYA Coordinat 60000 45
or
LUSHAKA Head of 150000 35
Academy
JENIFA 65
MAGANG Public 40000 55 95000
A Relation
MAGESA Curriculu 58000 39 29500
m
developer
KONDOR 68 80050
O
MLANZI System 65000 47 24080
admin.
HAULE 59
TOTAL
Note that the following details and formula must be used in computing staff
payment:
1. Staff basic salary is Tsh 350,000
55
2. Teaching payment per hour is Tsh 5,000
3. Income tax is 11.5% of gross salary
4. Gross salary = Basic salary + Admin allowance + payment from teaching hours
5. Net salary = Gross salary – Income tax – Staff loan
Total teaching payment = Teaching payment per hour * No. of teaching hours
You are required to calculate the following:
• Gross salary and net salary of each staff
• income tax
• Maximum and minimum net salary
• Average salary and total salary paid to all staff
• Draw column chart of Staff Name against Net salary
12.2. Exercise 2
Questions:
(a) Create table below as it appears; Save your workbook as HIV-AIDS. Name the
worksheet containing this table as HIV1.
56
(b) Using the table above, Compute the total sum of funds allocated in all regions,
minimum and maximum fund allocated.
(c) On third worksheet named as HIV2, create Line Graph of Regions against FEMALE
and MALE victims of aids. Note that:
• Your chart should be fully labeled
• Your chart Title should be REGIONS VS FEMALE & MALE
(d) On fourth worksheet named as HIV3, display number of female and male victims of
aids and their respective regions who were affected before the date 13-May-1987.
(e) On fifth worksheet named as HIV4, display the regions whose fund allocation does
not exceed Tanzania shillings 45,000,000.00.
(f) On a sixth worksheet named as HIV5, add extra column on your table and label it as
TOTAL NUMBER OF HIV VICTIMS, and display total number of female and male HIV
victims in each region on that column.
(g) Add one more column on the worksheet HIV5 and label it as COMMENT. Display
appropriate comment on that column using the following criteria:
• If the total number of female and male HIV victims in each region exceeds
11,500, display the comment “Hali ni Mbaya Mno!”.
• If the total number of female and male HIV victims in each region is less than
5,500, display the comment “Hali Inatia Matumaini”. Otherwise, display the
comment “Hali Si Mbaya Sana”.
12.3. Exercise 3
(a) Create a workbook and name it MAGAYA. Inside MAGAYA create three tables, as
they appear on the next sheet (TABLE 1, TABLE 2 & TABLE 3), each in a different
worksheet. Name the three worksheets as ARUSHA, DODOMA and TANGA
respectively.
(b) Compute unit cost, total cost, discount given, sales and profits of each product and
total sales and profits of all products in each region.
(c) Add another worksheet and name it SUMMARY. Create a table showing summary
sales of electronic products in all three regions (TABLE 4). Using 3D- Reference,
compute summary sales, costs, discounts and product profits. On the same SUMMAY
worksheet compute percentage profits of each product.
57
6. Percentage Profit = product profits/total profits of all products
7. All fields containing currency data must be formatted with the following currency
format: “TSH” ##,###.00
TABLE 1
MAGAYA SALES OF ELECTRONIC PRODUCTS AT DODOMA REGION
PRODUCT UNIT UNITS UNIT DISCOUNT Total SALES PROFIT
NAME PRICE SOLD COST GIVEN Cost
PRINTER 109000 23
SCANNER 99000 19
DVD PLAYER 80000 33
COMPUTER 850000 27
TV SET 250000 51
HAND PHONE 150000 77
PHOTOCOPIER 750000 11
TOTAL
TABLE 2
MAGAYA SALES OF ELECTRONIC PRODUCTS AT TANGA REGION
PRODUCT UNIT UNITS UNIT DISCOUNT Total SALES PROFIT
NAME PRICE SOLD COST GIVEN Cost
PRINTER 109000 15
SCANNER 99000 29
DVD PLAYER 80000 41
COMPUTER 850000 22
TV SET 250000 49
HAND PHONE 150000 67
PHOTOCOPIER 750000 21
TOTAL
TABLE 3
MAGAYA SALES OF ELECTRONIC PRODUCTS AT ARUSHA REGION
PRODUCT UNIT UNITS UNIT DISCOUNT Total SALES PROFIT
NAME PRICE SOLD COST GIVEN Cost
PRINTER 109000 37
SCANNER 99000 25
DVD PLAYER 80000 38
COMPUTER 850000 36
TV SET 250000 45
HAND PHONE 150000 81
PHOTOCOPIER 750000 16
58
TOTAL
TABLE 4
59