You are on page 1of 6

DDWC 1013 MICROCOMPUTER APPLICATION

LAB EXERCISE #3
MICROSOFT EXCEL_Part 1

Hint: when working with real data, always have a back-up or original version saved before you start
altering the data set.

1. Introduction to Excel
Open up the Excel Program.
Rename sheet1 as exercise1.

2. Entering data
Enter in the data from the surveys for the following people:
The top row is the column heading and each row after that is known as a record, and you have one
row for each record (also known as a case, or respondent).

Name Age Sex Grade Mother Father


Anna 12 F 7 home prison
Jeff 10 m 5 home prison
Keisha 9 f 4 prison deceased
Taylor 11 m 6 prison no contact
Sarah 13 f 8 home prison

3. Formulas.
In the row after Sarah (row 7), in the cell in the column for age (D7), we will calculate average
grade. There are two ways to do this, using the ‘function’ sign key, or writing the algorithm
directly into the cell where you want the average to appear.
i. Function Key
A. Look for the function sign fx in the tool bar. Click on it. It should open up a menu, click
on AVERAGE, then OK. In the box for NUMBER 1 you should see the cells listed that
have the ages. (e.g., d2:d6) and also the values are listed to the right of the menu box.
{7;5;4;6;8}.
B. Click on OK and you will see the average age calculated in the cell.
ii. Algorithm
The second way is writing out the command in the cell where you want the calculation to appear.
In other words, in cell D7
type =average(d2:d6) or alternatively =average(d2 d3 d4 d5 d6) and tab out of
the box. You should get 6 as your answer.

Exercises:
a. Try calculating the average for Age.
b. Try doing the sum of the above numbers using the function sign and also the formula =sum( ).

Umi Salmah Mihad SEM1 2020/2021


DDWC 1013 MICROCOMPUTER APPLICATION

4. Sorting Data
Now, sort the names by alphabetical order.
Do this by highlighting all of the data cells.
Now click on DATA then SORT. In the menu box, sort by column A (name) (it’ll say Column A
if the box for header is not checked, but if it is checked, then you’ll see sort by Name). click on
ok.

Exercises
a. Sort by sex, ascending (so females first, because F is before M in the alphabet)
b. Try sorting by highlighting just one of the columns. You’ll be prompted to expand the
selection. Make sure that option is checked, and then click on Sort.

5. Insert a row
In the first row of the males (line 5), move your cursor to the left most column on the spreadsheet
that displays the row number (5). Click on that to highlight the line. Then go to INSERT and
click on ROW.

Calculate the average age for females and the average age for males (if using the function key,
make sure the menu includes the correct cells for averaging).

6. Add a worksheet and Rename worksheet


Now, create a new table on another worksheet by INSERT and add new worksheet – sheet2.

7. Rename worksheets
Right click on the worksheet name (sheet 2) and select Rename it as bar chart.

8. Making a bar chart.


Put sex in one column and average age in the next, as is done below:

f 5.67
m 6.5

Highlight these cells and click on the Chart icon, or if you don’t see one, click on INSERT – CHART.
Follow the defaults and just click next until you get to finish.

You should get this if you click on the first column chart:

Umi Salmah Mihad SEM1 2020/2021


DDWC 1013 MICROCOMPUTER APPLICATION

6.4

6.2

5.8
Series1
5.6

5.4

5.2

5
Female Male

 Add value labels: Right click on the bar itself. Click on FORMAT DATA SERIES –
LABELS – Label Contains – VALUE. Click on OK.
 Format labels: right click on the labels. Click on Font to change font, or Number to change
the kind of number it is. Play around with this a bit.
 Change colors of bars: Right click on the bar itself. Click on FORMAT DATA SERIES -
PATTERNS, and choose a different color from the palette. You’ll see that the violet color has
a blue border around it to indicate that it’s the current color.

Exercises:
a. Change the color of the plot area (which is now grey).
b. Start with a table like this: Then right click on the legend and explore the possibilities.
Grade
Female 5.67
Male 6.5

Umi Salmah Mihad SEM1 2020/2021


DDWC 1013 MICROCOMPUTER APPLICATION

MICROSOFT EXCEL_Part 2

Sample Data: Product Sales

Related function we will use for this task is :


- Enter formula
- Function = sum, average,if,countif

To produce this result:-

1. Formula

Umi Salmah Mihad SEM1 2020/2021


DDWC 1013 MICROCOMPUTER APPLICATION

a. In D3, enter =B3*C3 then copy the formula in D3 into cell D4 to D8


2. Sum
a. In D9, enter =SUM(D3:D8)
3. Average
a. In D10, enter =AVERAGE(D3:D8)
4. If
a.
b.
c.
d. In E3 enter =IF(B3>250,"Excellent",IF(B3>100,"Good","Please improve"))
e. Copy the formula for the suitable cell
5. Count if
a. In cell D12, enter =COUNTIF($E$3:$E$8,"Excellent")
b. In cell D13, =COUNTIF($E$3:$E$8,"Good")
c. In cell D13, =COUNTIF($E$3:$E$8,"Please Improve")

6. Graph
Create a graph for product code vs Total, we should get this:-

Umi Salmah Mihad SEM1 2020/2021


DDWC 1013 MICROCOMPUTER APPLICATION

MICROSOFT EXCEL_Part 3
Instruction:-
1. Do this activity individually.

Use this data for this exercise:-

Do change the name if you like, but maintain the other value for each of the row.
In your excel sheet, (add another sheet where suitable), you must show this value:-
1. Average age
2. Average basic salary
3. Highest Salary and lowest salaray(Use Min and Max function)
4. Bonus for each person (fix 10% of salary)
5. No of male staff
6. No of female staff
7. No of staff by Blood type
8. Create a suitable graph to present your information.

Umi Salmah Mihad SEM1 2020/2021

You might also like