Excel Notes
Excel Notes
Are programmes used to perform mathematical, statistical, financial and analytically related tasks. They attempt to simulate
real life models of either a statistical financial or mathematical models like Budgeting, Break-Even Analysis, Profit
and Loss Statements, Balance Sheets and Forecasting etc.
Within the Spreadsheet industry Microsoft Excel stands out above other competitors like Lotus 123, Quattro Pro,
Microsoft Works, Multi Plan etc.
Terms of Reference.
Workbook:
This is a term used to refer to a single file within the excel spreadsheet. Typically, all unsaved files in
Microsoft Excel will be given a generic name, e.g. Book1, Book2, Book3 ... Book n where n is a number.
Worksheet:
This is the working area within a workbook. It consists of a grid of rows and columns; the rows are
identified by numbers while the columns with alphabetical letters. Generally Microsoft Excel comes with a
minimum of three Worksheets, however users have the ability to add and remove any existing ones.
Cell:
The point of intersection between a column and a row forms a cell; a cell is the actual data entry position
within the work sheet. It is uniquely identified by the coordinates of its column and row headings e.g. the
first cell is termed as A1 (column A, row 1) the contents of a cell can be either of the following:
Range:
This is a term that refers to a group of cells selected together. It is formed by the coordinates of the first cell
(top, left) address within the selection, separated by a full colon (:), ending with the address of the last cell
within the selection (bottom, right).
NB: Ranges are only used within a formula. e.g. =SUM(B3:B9), =MAX(B3:F9), =AVERAGE(B3:G14) etc.
Workbook/Worksheet Management
As earlier described, the worksheet provides the actual working area within the Workbook. It thus follows that the
user will make use of them every time a workbook is accessed. The following properties can be performed to
worksheet:-
Selection of Worksheets
To select a single worksheet, simply click on the tab name. However for more than one sheet, click the first one, for
additional ones, hold down the CTRL key and click any more additional sheets at random. To deselect them, repeat
the procedure with CTRL key held down. For a consecutive group use the SHIFT key instead.
Creation of Worksheets
To create a new worksheet, from the insert menu, choose worksheet
Deletion of Worksheets
Select the worksheet(s) of interest, and from the edit menu, choose the delete sheet command NOT delete.
Confirm appropriately.
NB: the procedure is none reversible
Page 1
Renaming Worksheets
Select the worksheet of interest and from the format menu, choose sheet, and click the rename command.
TIP: You can also rename by simply double clicking the tab name (sheet name), typing the new name and pressing
enter key.
Saving Workbooks
From the file menu, choose save as command, type a name for the file, specify the location to save the file, then
click save command button.
NB: to update changes to your workbook, from the same menu (file), click save command.
Moving Worksheet(s)
Select the sheet(s) of interest, from the edit menu, click the move/copy sheet command. Specify the location to
place the moved sheet in terms of being within the same workbook, or to a different workbook, in which case both
books must be opened concurrently. Once the location is specified, further specify the relative position in relation
to other sheets on the new location and click OK.
TIP: you can also drag the selected sheet(s) to the new position (but only while moving within the same workbook)
Copying Worksheet(s)
Select the sheet(s) of interest, from the edit menu, click the move/copy sheet command. Specify the location to
place the moved sheet in terms of being within the same workbook, or to a different workbook, in which case both
books must be opened concurrently. Once the location is specified, further specify the relative position in relation
to other sheets on the new location. Now click the create copy check box and click OK.
TIP: you can also drag the selected sheet(s) to the new position while holding down the CTRL key (but only while copying
within the same workbook)
Formulas
1. Addition in Cells/Range
=A1+A2 adds the contents in cells A1 and A2
=SUM(A3:A10) this also adds the cell contents found on the range A1 to A10
2. Subtraction in Cells
=A1-A2 subtracts the contents in cells A1 from those in A2
3. Division in Cells
=A1/A2 divides the contents in cells A1 with those in cell A2
4. Multiplication in Cells
=A1*A2 multiplies the contents in cells A1 with those in cell A2
=PRODUCT(A1:A2) multiplies the contents found on the range A1to A2
5. Power in Cells
=A1^2 raises the contents in cells A1 to the power of two i.e. squares it
=A1^3 raises the contents in cells A1 to the power of three
(Turn to page 12 and create the Practical Exercise)
More Formulas
Page 2
8. Min Function - (Returns the cell with the Lowest value)
=MIN(A1,A2, A4 ) Finds the lowest value within the cells A1, A2 and A4
=MIN(A3:A10) Finds the lowest value on the cells found in the range A3 to A10
Other Formulas
13. IF Statement…
This is an Excel formula used to evaluate the contents of a single cell, compares the contents of this cell
against a given value or statement, to return a TRUE value, statement or formula if tested condition is
positive; alternatively it returns a FALSE statement, value or formula if tested condition is negative.
Syntax
To determine the age status of students, create a column called AGE STATUS, and using the IF statement
compare their ages against the value 18. If they are 18 and above, it should return ADULT else, failure should
return MINOR
(Assuming cell under analysis is A3)
Solution Example I:
=IF(A3>=18, “Adult”, “Minor”)
The TRUE and FALSE statements are the only ones enclosed in quotes; where a value or
formula is used, no quotes
The last item within the IF statement is NEVER analyzed as it come by default on the
failure of all the tested conditions
The Nested IF statement can only analyze with up to a Maximum of 7 (seven) IF Statements.
IF(AND) Statement
This Logical IF statement, evaluates the contents of several cells Maximum of 30, compares the contents of
these cells against several given values or statements, to return a single TRUE value, statement or formula if
tested conditions are ALL positive; alternatively it returns a single FALSE statement, value or formula if
ANY of the tested conditions returns negative.
Example V: - (With Solution)
To determine the students who qualify to get a prize, the school’s management has stipulated that the following
conditions must be met: (this should be done on a new column titled PRIZE)
Conditions If ALL conditions stipulated are met, it should return
the prize as the student’s average multiplied by 100;
Mathematics ............................... > 65
however, failure on any should return No Prize.
English ..................................... > 70
Age.......................................... >=18
Average ..................................>= 68
Page 4
Solution Example V: (Assuming Mathematics is in Cell C3, English is in Cell B3, Age is in Cell A3 and
Average is in Cell G3)
=IF(AND(C3>65,B3>70,A3>=18,G3>=68), G3*100, “No Prize”)
IF(OR) Statement
This Logical IF statement, evaluates the contents of several cells Maximum of 30, compares the contents of
these cells against several given values or statements, to return a single TRUE value, statement or formula if
ANY of the tested conditions is positive; alternatively it returns a single FALSE statement, value or formula
ONLY if ALL of the tested conditions return negative.
Example VII - (With Solution)
To determine the students who qualify to go for a tour, the school’s management has decided that any of the
following conditions should be met: (this should be done on a new column titled TOUR)
Solution Example VII: (Assuming Mathematics is in Cell C3, Age is in Cell A3 and Average is in Cell G3)
…End of Topic…
Page 5
Cell Referencing…
Sometimes you may wish to copy a formula and have the formulas references change in relation to the new location
(relative cell referencing.), while on other occasions you may copy a formula and have the cell references remain fixed to
the original location (Absolute cell referencing). Both of these are possible through Excel’s cell referencing feature.
Excel offers three different types of cell referencing:-
(a) Relative cell referencing (b) Absolute cell referencing (c) Mixed cell referencing
C3 ................................ = A3 + B3
C4 ................................ = A4 + B4
C5 ................................ = A5 + B5
C6 ................................ = A6 + B6
Where n is the row number
Cn ................................ = An + Bn
However the picture would be as follows if the formula were copied across the rows.
C3 ................................ = A3 + B3
D3 ................................ = B3 + C3
E3 ................................ = C3 + D3
F3 ................................ = D3 + E3
ANNUAL SALES
=d×4
TOTALS
Page 6
Absolute Cell Referencing.
In this type of cell referencing the formula’s cell referencing remain fixed or rather constant, pointing the cells
originally copied from. Distinctively, these formulars are preceded by a dollar sign before both the column and row
headings, for example, using the same formula, if the cell A3 were to be made absolute, it would look as follows:
=$A$3 + B3
The absoluteness if created while developing the formula, by pressing
Absolute Cell Relative Cell F4 function key, which cycles between the different cell references.
Referencing Referencing
When copying such a formula down a column, the result would be as follows:-
C3................................. $A$3 + B3
C4................................. $A$3 + B4
C5................................. $A$3 + B5
C6................................. $A$3 + B6
Where n is the row number
Cn................................. $A$3 +Bn
i.e. the formula’s cell referencing is fixed and thus acts as a constant, pointing to the same original location.
However, when copied across the rows, the following would be observed.
C3................................. $A$3 + B3
D3................................. $A$3 + C3
E3................................. $A$3 + D3
F3................................. $A$3 + E3
This kind of cell referencing is used where the cell’s contents is to be used as a constant.
Page 7
Exercise IV - (Absolute cell referencing)
1,200,700
2,653,300
3,500,214
9,400,611
= $A3 + B3 = A$3 + B3
Mixed Cell Relative Cell OR Mixed Cell Relative Cell
Referencing Referencing Referencing Referencing
As indicated, in the first formula (= $A3+B3), the column A is fixed, while the row 3 is free. Thus when such a
formula is copied down a column, it would change as follows:-
C3................................. $A3 + B3
C4................................. $A4 + B4
C5................................. $A5 + B5
C6................................. $A6 + B6
Where n is the row number
Cn................................. $An + Bn
However, the formula would adjust as follows when copied across rows:-
C3................................. $A3 + B3 Note:
D3................................. $A3 + C3 The column A is fixed, thus it cannot change, when
E3................................. $A3 + D3 copied to other columns, however, it will change if
F3................................. $A3 + E3 copied to other rows
.
On the second formula (=A$3 + B3), the row 3 is fixed, while the column A is free. Thus when such a formula is
copied down a column, it would adjust as follows:-
C3................................. A$3 + B3
C4................................. A$3 + B4
C5................................. A$3 + B5
C6................................. A$3 + B6 Where n is the row number
Note:
Cn................................. A$3 + Bn Here the row is fixed, thus the formula will not
change when copied to any other rows. However, in
The same formula, when copied across rows, will adjust as other columns it will adjust appropriately.
follows:-
C3................................. A$3 + B3
D3................................. A$3 + C3
E3................................. A$3 + D3
F3................................. A$3 + E3
Page 8
Exercise V - (Mixed Cell Referencing)
50,000
79,000
125,000
210,000
340,000
550,000
You can also retry Exercise IV, though applying Mixed cell referencing.
…End Of Topic…
Create a Charts
1. Select the range of cells that contain the data you want to use for your chart.
2. The range must include the column headings, and row headings.
NB: If the area to be charted has some cells to be exclude, use the CTRL key
for non-continuous selection.
3. Now click Chart Wizard icon . Or from Insert Menu, choose Chart
4. Follow the instructions in the Chart Wizard.
Choose the type of chart of interest, and within your chosen chart, select the relevant subset
NB: Choice of chart may be selected from the Standard Side or Custom Side
You may preview the chart by pressing hold to view sample button otherwise
Click Next
On the next screen, you may redefine the chart area to include or exclude certain data
sections.
You can also analyze you data in Columns or Rows otherwise
Click Next
Provide the following attributes:-
1. Chart Title
2. X and Y axis (Where applicable 2nd X and 2nd Y or even the Z axis)
3. You may Remove or Add Gridlines i.e. Major and Minor one for both X and Y Axis
4. Decide the Position of the Legend
5. For Pie Charts Provide the Data labels
Click Next
Specify a location for the Chart i.e. as a New Sheet or as an Object within one of your
Worksheets
Click Finish
Page 9
Exercise I - (Column Chart)
Highlight the column heading Student, to the name of the last student (Jane), hold CTRL
key and Click the headings Mat, Eng and Swa, drag to select the entry for the last student’s
Swa score (43). From this create a Column Chart, with the relevant Titles and Axis
provided.
Mat
90
Eng
80
Swa
70
60
50
40
30
20
10
0
David Fred Mike Ann Linet Mary Paul Peter Janet Jane
Student
Exercise II - (Line Chart)
Now highlight the column heading Student, to the name of the last student (Jane), hold
CTRL key and Click the headings Phy, Che and Bio, drag to select the entry for the last
student’s Bio score (69). From this create a Line Chart, with the relevant Titles and Axis
provided.
90
80
70
60
50
40
30
20
0
David Fred Mike Ann Linet Mary Paul Peter Janet Jane
Student
Page 10
Exercise III - (3D Pie Chart)
Now highlight the column heading Mat, to the name of the last subject (Bio), hold CTRL
key and Highlight the Averages for these subjects on the relevant row. From this create a 3D
Pie Chart, with the relevant Title and Data Labels.
Bio Mat
18.14% 17.44%
Eng
Che 15.04%
16.57%
Phy
17.84%
Swa
14.97%
Page 11
Practical Exercise
Fred 15 45 56 56 67 12 46
Mike 12 53 26 57 58 48 82
Ann 16 62 57 35 39 86 80
Linet 25 55 90 28 82 80
Mary 20 84 62 49 55 47 45
Paul 17 69 67 56 46 55
Peter 32 35 63 66 72 66 58
Janet 15 24 0 35 76 64 33
Jane 17 67 45 43 68 38 69
Average
Highest
Lowest
Mode
Median
Attendance
Standard
Deviation
For
HIGHEST use MAX Function MODE use MODE Function
TOTAL use SUM Function
LOWEST use MIN Function MEDIAN use MEDIAN Function
AVERAGE use AVERAGE Function
SUBJECTS use COUNT Function ATTENDANCE use COUNT Function
STANDARD DEVIATION use STDEV
Function
Page 12