Professional Documents
Culture Documents
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).
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( ).
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).
7. Rename worksheets
Right click on the worksheet name (sheet 2) and select Rename it as bar chart.
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:
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
MICROSOFT EXCEL_Part 2
1. Formula
6. Graph
Create a graph for product code vs Total, we should get this:-
MICROSOFT EXCEL_Part 3
Instruction:-
1. Do this activity individually.
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.