Introduction To Excel (2016)
Introduction To Excel (2016)
X E
2016
E L
Introduction to
EXCEL 2016
Dr Androulla Michaeloudis
2017
Page 1
LIST OF CONTENTS
5. Exiting Excel. 7
7. Arithmetic Symbols. 11
9. Entering Values. 13
i. Pie Chart 54
iii. Histogram 61
1. STARTING EXCEL.
To start EXCEL from the Middlesex computer network, you need to follow the
given steps:
❖ Click on START .
Alternatively, you can select the Excel software icon from the taskbar.
Once in EXCEL, you are now ready to open an existing Excel file that you
have previously saved.
How do we do this?
❖ Click on the FILE BUTTON (for accessing all file commands). This
button you will find in the top left hand corner (see picture below).
❖ Select BROWSE.
❖ Select the drive where you have your existing Excel file saved (e.g. (C:
) drive).
❖ Click on OPEN
To save your work in Excel, you need to follow the given steps:
How do we do this?
❖ Select SAVE AS
❖ Select BROWSE.
❖ Select the drive where you where you would like your file to be
saved.
❖ In the FILE NAME:box type the name you would like to give to your
file (workbook).
❖ Note that by default your file will be saved as an excel file (.xlsx).
NOTE THAT EXCEL 2010 AND 2016 WILL ADD THE FILE
EXTENSION .XLSX TO THE SAVED EXCEL WORKBOOK .
Excel also allows you to save your Excel file in a lower version of
Excel (e.g. 97-2003) as well as in other formats.
❖ Click on SAVE
Method 1
Method 2
❖ Select CLOSE.
NOTE THAT IF YOU HAVE MADE ANY CHANGES SINCE YOUR LAST SAVE
OF THE FILE , A DIALOG BOX WILL OPEN ASKING YOU IF YOU WANT TO
SAVE THE CHANGES YOU HAVE MADE ., OR NOT SAVE , OR CANCEL .
5. EXITING EXCEL.
Method 1
Method 2
❖ Select CLOSE.
NOTE THAT IF YOU HAVE MADE ANY CHANGES SINCE YOUR LAST SAVE
OF THE FILE , A DIALOG BOX WILL OPEN ASKING YOU IF YOU WANT TO
SAVE THE CHANGES YOU HAVE MADE OR DO NOT SAVE THESE.
CELL C4
COLUMN C
ROW 4
You can add more worksheets in your file, if you so wish, by pressing the
PLUS SIGN button (that is the circular button enclosing a + sign).
Insert Worksheet
A CELL is a point where a row and a column intersect. Each cell has its own
CELL ADDRESS, which is identified by the column label and the row
number (e.g. C4, see earlier picture above).
When the worksheet is initially opened, cell A1 is automatically the active cell.
An active cell will be indicated by a dark outline around it.
A1
The cell is displayed in what we call the NAME BOX, which is found on the left
of the FORMULA BAR and below the CLIPBOARD.
As in Microsoft Word, you can use the UNDO and REDO keys to remove your
last change and bring back what you have last erased respectively.
7. ARITHMETIC SYMBOLS.
For performing arithmetic calculations, we need to use arithmetic operators
whose symbols you will find below:
How do we do this?
❖ Press ENTER.
EXAMPLE 1
We first click in cell A1, then type the word Marks and finally, we press the
Enter key. The output is illustrated in the picture below.
Exercise 8.1
(a) Click the cell B6 and enter the text Label ‘Sum’.
(b) In a cell of your choice try to write down your full name (first name and
surname). Note that in this case you will encounter a problem and you
can solve this using the merge function that you will find under
Alignment. The icon of this function is given below.
9. ENTERING VALUES.
EXAMPLE1
A2 = 4 A3 = 5 A4 = 2 A5 = 8 A6 = 1
This means that cell A2 has the value 4, cell A3 has the value 5, cell A4 has
the value 2, cell A5 has the value 8, and finally cell A6 has the value 1.
Exercise 9.1
(a) Enter a text label of your choice (e.g. ‘wages’) in cell C1. This text
label will be the heading for the values you will include in column C.
(b) Enter seven values of your choice in column C (below the heading
you have given in part (a) above. In other words, your seven values
should be in the range C2:C8).
There are cases where you would like consecutive numbers to be entered in
the worksheet quickly. For example, we may like to enter the values 1, 2, 3,
…, 10 or values such as 5, 10, 15, …, 40 either in a row or column.
How do we do this?
❖ You can either use the AUTOFILL function or the FILL function. We
will illustrate both methods below.
EXAMPLE 1
How do we do this?
❖ In the next consecutive cell, that is, in cell B2 (column B and row 2)
enter the value 2.
❖ Move the cursor to the bottom right handcorner of the cell range until
you get the black cross sign┼.
❖ While holding down the left button of the mouse, drag until the required
range of values is obtained. In this example, drag until you obtain the
value 30 since this is the last value in the required range (that is, 1, 2,
…, 30). This procedure is what we refer to as AUTOFILL.
❖ Click anywhere outside the cell B1 and then click inside the cell B1.
❖ By default Excel would enter the values in steps of 1. In this case, this
is what we want to do, so we do not change the STEP value.
❖ Since we would like values from 1 to 30( the last value is 30) then in
the STOP VALUE: box we enter the value 30.
❖ Click OK.
EXAMPLE 2
We now consider a second example but in this case, we would like the values
to be in steps of 5. That is, we would like to enter the values 5, 10, …, 70 in
row 1 starting from column B.
How do we do this?
❖ In the next adjacent cell, that is, in cell C1 (column C and row 1) enter
the value 10.
❖ Move the cursor to the bottom right handcorner of the cell range until
you get the black cross sign┼.
❖ While holding down the left button of the mouse, drag until the required
range of values is obtained. In this example, drag until you obtain the
value 70 since this is the last value in the required range (that is, 5, 10,
…, 70). That is, using theAUTOFILL function.
❖ Click anywhere outside the cell B1 and then click inside the cell B1.
❖ We click inside the STEP VALUE: box and replace the value 1 by 5
since the starting value we want is 5.
❖ Since we would like values from 5 to 70 ( the last value is 70) then in
the STOP VALUE: box, we enter the value 70.
❖ Click OK.
Exercise 10.1
i. 3, 7, 11, …, 55.
ii. 10, 20, 30, …, 160.
(b) Repeat part (a) above but this time enter the values in two different
rows.
There are situations where we would like to format a value, say change the
numerical value to a particular decimal place of accuracy or say we would like
to enter values which should have a 3 decimal place (d.p.) of accuracy or
change the value format to a percentage, fraction or certain currency (say £).
How do we do this?
❖ Click the cell that contains the value you want to change.
❖ Click the triangle (▼) on the right of the GENERAL format under
NUMBER.
❖ Select the number format you want. This may be any of the following:
In cell A4, we enter the value 2. We want to change this value to 2.000 (3
d.p.).
How do we do this?
Method 1
❖ Click OK.
Method 2
❖ Click the the triangle (▼) on the right of the GENERAL format.
PERCENTAGE VALUE
Method 3
That is, click the cell A4 three times in order to change the
number 2 to 2.000.
EXAMPLE 2 (PERCENTAGES)
In this example we consider two different approaches where we would like the
entered values to represent percentages.
Approach 1
In cells C3:C7, we would like to enter the values 65, 57, 23, 34, 87 which will
represent percentages 65%, 57%, 23%, 34%, and 87%..
How do we do this?
❖ Highlight the cells C3:C7 (that is, C3, C4, C5, C6, and C7).
❖ Select PERCENTAGE.
❖ In cells C3:C7 enter the values 65, 57, 23, 34, 87. Excel will
now give you the value 65.00%, 57.00%, 23.00%, 34.00% and
87.00%. In other words, it will return a percentage in two
decimal places. See the output below.
Approach 2
In cells C3:C7, we would like to enter the values 65, 57, 23, 34, 87 which will
represent percentages 65%, 57%, 23%, 34%, and 87%..
How do we do this?
❖ Highlight the cells C3:C7 (that is, C3, C4, C5, C6, and C7).
❖ In cells C3:C7 enter the values 65, 57, 23, 34, 87. Excel will
now give you the value 65%, 57%, 23%, 34% and 87%. In
other words, it will return a percentage.
YOU ARE ADVISED TO USE APPROACH 2 SINCE THIS IS EASIER AND FASTER .
Exercise 11.1
To illustrate the calculation of the TOTAL we are going to use the example 1
of section 9 (page 13). Reminder: Values are 4, 5, 2, 8, and 1. So we need to
add these numbers, that is, 4 + 5 + 2 + 8 + 1 = 20.
EXAMPLE 1
How do we do this?
Method 1
❖ If you have followed the above instructions you will now see
that Excel has now added these numbers and the result that
you should have obtained is 20.
Note that Excel places this result in the first empty cell
below the selected range.
Method 2
❖ Click the cell where you would like the result (sum) to be
displayed. For this example, let us choose cell A10.
Note that when we write a2:a6, this means a2, a3, a4, a5,and
a6. That is, all values from a2 to a6. This is what we call a
range of values.
Exercise 12.1
For the purpose of illustrating the calculation of the average (arithmetic mean),
we will use the example used in sections 9 and 12.
EXAMPLE 1
If you were to do this by hand, then you will add the values together
and then divide the sum by the number of values you have added.
This is what we call the mean (or average). This we denote by x
(pronounced ‘xbar’). The formula is given by
Sum of values
Mean =
Number of values
In the example used in section 12, the sum was 20. That is, x = 20 .
The number of values was 5. That is, n = 5.
20
Hence, the mean (average) will be equal to x = =4 .
5
There are different methods one can use in Excel to do this. We illustrate two
of these methods below.
Method 1
❖ Using the mouse or by holding down the shift key, highlight the values
in column A (that is, a2:a6).
❖ Click the down triangle ▼ to the right of the AutoSum icon and
choose AVERAGE.
You are advised to check what other possible functions you can
actually use.
❖ If you have followed the above instructions you will now see that Excel
has calculated the average of these numbers and the result that you
should have obtained is 4.
Note that Excel places this result in the first empty cell below the
selected range.
Method 2
❖ Click the cell where you would like the result (average) to be
displayed. For this example, let us choose cell A11.
Exercise 13.1
(a) Using both methods above, calculate the average value for
either the data you have input in column B (see Exercise 11.1,
part (c)) or a new set of values that you can enter in columnC.
(b) Can you think of an alternative way of obtaining the average of
the values in column Babove given that you have already
obtained the sum (total) of these values?
(c) Now using you calculator or otherwise, calculate the
AVERAGE of these values and check this result with the result
you have obtained by using Excel. Are these two results
equal? (They should be).
In this section we are going to generalise the use of formulas in order to show
that you can perform simple as well as more complex calculations using Excel.
The reference and comparison operators which we will use when entering
formulas are shown in the table below.
Intersection operator,
(space) A3:D3 C1:C5
which produces the
value in the cell shich is
common to two
references
❖ A3:A21
This refers to the values in the cells in column A from row 3 to row 21.
That is, all the values in the cells A3, A4, A5, A6, …, A20, A21.
❖ SUM(A1:A5, C1:C5)
This adds up all the values in the rows 1 to 5 of column A to the values
in the rows 1 to 5 of column C. For example, let us assume that
A1 = 3, A2 = 5, A3 = 7, A4 = 10, A5 = 8
C1 = 1, C2 = 11, C3 = 6, C4 =3, C5 = 10
3 + 5 + 7 + 10 + 8 + 1 + 11 + 6 + 3 + 10 = 64
❖ A3:D3 C1:C5
This will find one cell reference value which is common to A3:D3 (that
is, row 3 in columns A through D) and C1:C5 (range of cells in column
C from row 1 to 5).
Using the above given values and assuming that B3 =4 and D3=6, the
answer for A3:D3 C1:C5 will be 6.
= Equal to A4=C7
Greater than A4 C7
Less than A4 C7
Not equal to A4 C7
NOTE THAT WHEN YOU ARE READY TO ENTER A FORMULA , YOU SHOULD
ALWAYS START WITH THE EQUAL SIGN = . THE EQUAL SIGN INDICATES
AUTOMATICALLY A FORMULA ENTRY .
EXAMPLE 1
For illustaring this calculation we will use the eample used in sections 9, 11
and 12.
❖ Click inside the cell B2 and move the cursor to the bottom right
handcorner of the cell until you get the black cross sign ┼.
❖ While holding down the left button of the mouse, drag to cell B6.
This is what we refer to earlier as AUTOFILL.
Exercise 14.1
(a) If you were to drag this to cell B9, then what will happen?
Try this as an exercise and write down your comments on the results
you get. Can you offer an explanation for these results?
(b) Add the value 5 to each of the values in column B and place the results
in column C.
(d) Calculate the sum of the values in columns A and B. Place your result
in cell A8.
Hint: Use the union operator and the SUM function. The answer you
should get is 50.
EXAMPLE 2
❖ In cell B1, enter the label, ‘PV Factor’ (or ‘Discount Factor’).
❖ In the range A2:A5, enter the values 1, 2, 3, 4. These will represent the
years 1, 2, 3 and 4.
8
i = 8% = = 0.08 ), we enter in cell B2 the formula for the
100
(1 + i )
−n
discount factor, namely where n = year. That is,
=(1+0.08)^-A2.
Note that it is best to enter the value of the interest rate (0,08) in a
cell (say A10) and then enter the formula for the discount factor
by =(1+$A$10)^-A2 where the interest rate is declared as a
fixed value by using what we call the absolute reference (see
section 15).
The result is now 0.9259225926. Use your calculator to check that you
have obtained the correct result.
❖ Click inside the cell B2 and move the cursor to the bottom right
handcorner of the cell until you get the black cross sign ┼.
❖ While holding down the left button of the mouse, drag to cell B5 (thatis,
use the AUTOFILL function).
Exercise 14.2
(r) We are now going to calculate the NPV of the project and place the result
in cell D11. To calculate the NPV, we need to subtract from the sum of
the present values of the cash flows (that is, the SUM we have placed in
cell D7) the cost of the project. In cell D11, enter =D7-$D$9 .
Note that prior to calculating the discount factors, the Present Values of
Cash Flows, and the NPV, your Excelworksheet should look as shown
below:
When we use formulas to carry out calculations we use cell references. There
are three main types of cell references namely
These are references to cells relative to the position of the formula. All
the examples we have used so far have made use of relative cell
references (e.g. A1, A8, B6,…). When you copy, paste or move a
formula with relative cell references, the references in the formula change
to reflect the cells that are in the same relative position to the formula.
Note however that the formula does not change but the formula
uses the new cell values in its calculation.
If you would like a certain cell value(s) to remain constant when you copy
a formula, then make this cell reference absolute by typing a dollar sign
($) before each part of the reference that you do not want to change.
For example, you can make the cell reference A1 absolute by typing a
dollar sign before A and a dollar sign before 1. That is, $A$1.
Note
For the efficient use of the Excel software, you need to use absolute
cell reference values when entering constant values.
For example, $A1 is absolute for column and relative for row1. A cell
reference A$1 is relative for column A and absolute for row 1.
Note that in the case where you use mixed cell references and you
copy or fill a formula across rows or down the columns, the relative
references adjust to new values but the absolute references do not.
In this section we want to illustrate the calculation of the relative frequency and
percentage of a set of values. Examples 1 and 2 will illustrate the calculation
of these two measures using the values of the Example we have used in
previous sections, namely:
EXAMPLE 1
That is, .
Frequency f
Relative Frequency = =
Total f
NOTE
• The total of the values in column A is 20 (see Section 12, page 26).
The total we have placed in cell A7. We will declare this cell reference
as an absolute cell reference, that is, $A$7.
How do we do this?
❖ Type =A2/$A$7
❖ Click inside the cell B2 and move the cursor to the bottom right
hand corner of the cell until you get the black cross sign ┼ .
❖ Holding down the left button of the mouse drag this to cell B6.
That is, use the AUTOFILL function.
EXAMPLE 2
In the worksheet we now have column A, which contains five values (4, 5, 2,
8, 1) and column B which contains the corresponding relative frequencies (see
Example 1 above). We would like now to calculate the corresponding
percentages and place these in column C.
How do we do this?
❖ Type =B2*100
❖ Click inside the cell C2 and move the cursor to the bottom right hand
corner of the cell until you get the black cross sign ┼ .
❖ While holding sown the left button of the mouse, drag this to cell
C6(that is, use the AUTOFILL function).
The results are shown in the table below. It is always important to check
that you obtain the correct results.
Exercise 16.1
It is often the case that when you enter either labels or values, you will
find that some of this information is not visible due to lack of space and
Excel displays this as ### in the cell. To correct this, you need to
either increase the column width or adjust the row height.
There are different ways one can do this. Three methods will be
provided below. Note that method 1 provides the quickest way of
achieving this.
Method 1
❖ Click the column label or row number button you would like to
adjust.
Method 2
❖ Click the column label or row number button you would like to
adjust.
Note that in a similar way you can format the cells, hide
and unhide columns and rows, rename worksheets, protect
worksheets, … and so on.
❖ Click OK.
Method 3
EXAMPLE 1
Note that you may adjust the width of the column when entering the
above heading (see section 17).
22 26 28 33 37 44
2. We calculate the SUM (Total) of these values (see section 12, page
23). The result is 190 and this is placed in cell B8.
4. To use a bold font for the ‘TOTAL’, we click inside the cell A8 and then
select the bold button.
5. To use create a border around the word ‘TOTAL’, we click inside the
cell A8.
7. Select the border of your choice (e.g. Top Border, Right Border,
Outside Borders, Thick Outside Borders, …).
Note that you have the choice of drawing a border, use a line style
and colour. You are advised to try different styles and familiarise
yourself with what is available.
Exercise 18.1
(a) In a similar manner you can now place a border around the heading
‘Salary (£000s)’.
(b) Place a border around all values in column B.
(c) Change the line style of any of the borders you have created.
It is often the case that you may want to clear the content of a cell or a
range of cells.
How do we do this?
❖ Click the HOME tab (if the HOME tab is not active).
CLEAR BUTTON
Exercise 19.1
(b) Using the above method clear the contents in that column. You are
advised to use any of the other options prior to clearing the contents in
that column. Try to get as much practice as possible.
In this section we will illustrate the use of graphs for both numercal as well as
categorical data. You need to remember that graphs must be clear, each
graph should bear a title and both axes should be clearly named and scaled.
Pie Chart A pie chart is an example of a graph that can be used to display the
distribution of one categorical variable. We are going to create a simple bar
chart using an example.
EXAMPLE 1
The following data represent the size (small, medium, large) of a random
sample of 135 cinemas. We would like to draw a pie chart to represent the
data below.
❖ Highlight all the values and labels in the table shown above. That is,
highlight all the values in A1:A4 and B1:B4.
❖ Click on INSERT.
When you select the PIE CHART icon, this will provide you with
options (e.g. 2-D , 3-D. …). Select the pie chart option of your
choice. This is shown below.
❖ In this example, we have selected the first option under 2-D Pie.
❖ You can now edit your graph by using the DESIGN options above as
well as the options provided to the right of the graph. The latter options
allow you to give an appropriate title, name your axes, add labels, ,,,,
and so on. You need to practise in editing your graph.
❖ When you are ready, click on the graph and then right-click the mouse
and select COPY.
❖ You can now open Microsoft Word and then right-click the mouse and
select PASTE.
A possible pie chart for the above data after editing is given below.
Small
Medium
Large
A simple bar chart is another type of a graph that can be used to display the
Simple Bar distribution of one categorical variable. We are going to create a simple bar
Chart chart using the same example we have used above for a pie chart.
EXAMPLE 1
The following data represent the size (small, medium, large) of a random
sample of 135 cinemas. We would like to draw a simple bar chart to represent
the data below.
❖ Enter the data values in Excel (as we have done in the Pie Chart
section, see Page 55).
❖ Highlight all the values and labels in the table of data. That is,
highlight all the values, A1:A4 and B1:B4.
❖ Click on INSERT.
❖ Select either COLUMN (if you would like the bars to be plotted along
the horizontal axis) or BAR (if you would like the bars to be plotted
along the vertical axis). This will provide you with 2-D column, 3-D
column, 2-D bars, 3-D bars, … e.t.c. . Select the option of your
choice.
❖ You can now edit your graph by using the DESIGN options above as
well as the options provided to the right of the graph. The latter options
allow you to give an appropriate title, name your axes, add labels, add
gridlines, ,,,, and so on. You need to practise in editing your graph.
❖ When you are ready, click on the graph and then right-click the mouse
and select COPY.
❖ You can now open your report in Microsoft Word and then right-click
the mouse and select PASTE.
The following graph is an example of a simple bar chart that you can get for
the above given data after editing.
40
29
30
20
10
0
Small Medium Large
Size of a cinema
Exercise 20.1
The following data represent the regional location (England, Scotland, Wales)
of a random sample of 115 hotels.
Draw a pie chart and a simple bar chart to represent the above data
graphically.
EXAMPLE 1
50 - 54 4
55 - 59 6
60 - 64 12
65 - 69 5
70 - 74 3
Total 30
❖ Highlight the values and labels of the data in the table (A1:A6 and
B1:B6). See the output below.
❖ Click on INSERT.
❖ The first thing that we need to do since it is a histogram that we would like
to plot and not a simple bar chart is to make sure that there is no gap
between the bars. We do this as follows:
• We click on a bar (all bars will now be active) and then we right
click the mouse.
ALTERNATIVE METHOD
• On the top left under the HOME tab you can see QUICK
LAYOUT.
• Select the QUICK LAYOUT and then click on the layout where
there are no gaps between the bars.
❖ After clicking on the graph, you can click on DESIGN or use the ADD
CHART ELEMENT (this you can find below the FILE tab) or the icons
on the right of the graph to edit this.
Note that you need to give yourself time to practise editing a graph
since presentation and clarity is very important when presenting a
graph.
12
10
8
6 12
4
6 5
2 4 3
0
50 - 54 55 - 59 60 - 64 65 - 69 70 - 74
Wages (£)
Exercise 20.2
Scatter In this section, we will use the following set of data for plotting a scatter
Diagram diagram.
❖ Click on INSERT.
❖ Select SCATTER.
❖ After clicking on the graph, you can click on DESIGN or use the ADD
CHART ELEMENT (this you can find below the FILE tab) or the icons
on the right of the graph to edit this.
Note you can edit your graph according to your choice but always
remember that you should name your axes and give a title to your
graph.
A possible graph for the above given data after editing is given
below.
Scatter Diagram
120
100
80
60
Y
40
20
0
0 10 20 30 40 50 60
X
Exercise 20.3
(b) Comment on the relationship between the delivery time (Y ) and the
number of options ordered on a car ( X ) .