Chapter 4 - Excel
Chapter 4 - Excel
Chapter 4 - Excel
MS Excel (Spreadsheets)
Spreadsheets
A spreadsheet is consisted of rows and columns.
It is used for mathematical calculations and plotting figures.
In a spreadsheet, columns are lettered e.g. A, B …etc. and rows are numbered
Cells get
their names
from column
and row
ID’s.
H3
E5
Selecting cells
To select an individual cell, just click on it.
To select a range of neighboring cells, click on a cell and while holding mouse
button drag the cursor.
To select cells separately or apart from each other, press and hold Ctrl and
using mouse select the desired cells.
Changing the fill colour and font colour
cells and wrapping text
Font colour
Fill colour
To wrap a text
Workbook and sheets
Each individual Excel file is called a workbook.
A workbook contains a number of sheets.
Click on to add
another sheet
Sheets In Microsoft 2010
Inserting/edition data
To insert data (text, dates or numbers) just click in a cell and start typing.
To edit a cell, double click the cell and then you can edit it.
If you want to apply some format (size, color, font etc.) click that cell once then do
the changes.
Sorting data
Sorting means arranging data on a basis e.g. alphabetically, from greatest to smallest
or vice versa…etc.
If you have a list of names inserted randomly you can arrange it alphabetically.
If you have a list of numbers you can arrange them to start from the largest number
to the smallest and vice versa.
Sorting alphabetically/numerically
Select the list of numbers/names, in “Home “ tab go to
Editing group, Sort & Filter
Increment
Deleting cell contents
To delete cell content, select cells then go to Editing
group, clear, clear content, or press delete in keyboard.
Alignment
Horizontaly: Select the cell range to
be aligned from home tab and
Alignment group, select an alignment
Copying/Moving/Renaming worksheets
To move a worksheet just click on it and hold the left button then drag it to a
desired place.
To copy a worksheet do same as moving plus holding Ctrl key on keyboard.
To rename a worksheet, double click on it and then you can rename it. Or right
click on the sheet and choose rename.
Copying/Moving/Renaming worksheets
7 Freeze column H
8 Hide column D
Formula and Functions
Arithmetic formulas
Mathematical functions and operations
Power: use sign (^) e.g. =5^2
Square root : (sqrt) e.g. =sqrt(2)
Pi : =pi()
Angles: Excel uses radian angles
Use function Radians to change degree to radian and then
you can use trigonometric functions. E.g. =radians(30)
Sin: e.g. =Sin(3)
Cos: =Cos(3)
Tan: =tan(3)
N o t e 3 i s i n ra d i a n
Mathematical functions and operations
Or go to Formulas> Math & Trig > then choose the
function you want
Exercise
For x=1 to 5 calculate the following formula:
(𝑥 + 1)2 sin(𝑥)
1
(3𝑥 + 𝑥2 − 2) 3
Border Effects
To format cells with borders
and lines, do the following:
• Select the cell or cell range
to be formatted.
• From the Home tab and Font group,
select the Border arrow.
• Select a border from the menu
or select More Borders at the bottom
of the menu. The Format Cells window
opens with the Borders tab selected.
Merging Cells
Or goto formulas>Autosum>sum
Average
The function calculates average of a range of numbers
Click in a cell and type in “=“
Type in “average”
Double click on it in menu or press tab key or continue
writing “(“
Specify range
Close the parenthesis and
press enter
Min
This function finds the minimum value out of a set of
numbers.
Click in a cell and type in “=“
Type in “Min”
Double click on it in menu or press tab key or continue
writing “(“
Specify range
Close the parenthesis and
press enter
Maximum
This function finds the maximum value out of a set of
numbers.
Click in a cell and type in “=“
Type in “Max”
Double click on it in menu or press tab key or continue
writing “(“
Specify range
Close the parenthesis and
press enter
Count
It calculates the number of cells filled with numbers in a
range.
Click in a cell and type in “=“
Type in “Count”
Double click on it in menu or press tab key or continue
writing “(“
Specify range
Close the parenthesis and
press enter
Count A
It counts the number of cells that contain numbers or
text in a range of cells.
Click in a cell and type in “=“
Type in “Count A”
Double click on it in menu or press tab key or continue
writing “(“
Specify range
Close the parenthesis and
press enter
Round
To round numbers to a specific digit after decimal
Click in a cell and type in “=“
Type in “Round”
Double click on it in menu or press tab key or continue
writing “(“
Specify range, specify number of digits after decimal
Close the parenthesis, press and hold Ctrl then press
enter
Common errors
Common errors
X Y
2 3
Using If to return text values
To return text values, use quotation marks (“):
Type in “=if(“
Type in a condition
Type the text values for true or false arguments in quotation marks
Example: Write down the
4 < 𝑥 < 4 → 𝑦 = 𝑁𝑜𝑡𝑔𝑜𝑜𝑑 statement here(first
value of y) then use
𝑥 = 4 → 𝑦 = 𝐺𝑜𝑜𝑑 autofill to find other
values of y.
Always start from conditions of highest values if you use greater than (>) sign.
While for < (less than) sign start from smallest values condition.
Exercise1
Rainfall (mm) season
500
300
1000
250
700
150
Specify
Tick to
number of
have 1000
digits after
separator
decimal
Currency
Select a cell range
To format currency go to Home-Cell-Format-Format
cells
Select the
currency
you are
using
Date
Different formats are available for dates
Select a cell range
Go to Home-Cells-Format-Cell format-Date
In Microsoft 2010
Click on
to select
y-data
x y
1 2
2 4
3 8
4 16
5 32
Line, Column and Pie chart
Line charts are used to show trend of a phenomenon
over time
Column charts are usually used to compare two or more
data series together
Pie charts are used to show shares of different
components of data
Examples of line, pie and column charts
Water consumption
Domestic use
20%
35%
Agricultural
demand
45% Industrial
demand
Creating line, column and pie charts
To create any of line, column and pie chart:
Select the data to be charted
Go to Home tab, chart group and select one of the above
types.
Labels
To label a chart , first select the chart
When the chart is selected, a new tab “Layout” appears
Go to Layout tab, Labels group
In Microsoft 2010
To show
Labeling x data values
and y axes In Microsoft
2013 click on
the chart
then click on
the plus sign
(+)
Adding/Removing gridlines
You can add/remove vertical and horizontal gridlines.
To do so, select a chart, go to “Layout” tab, Axes, Gridlines
5.0
4.5
4.0
Flexural strength (Mpa)
3.5
3.0
2.5
7 days
2.0 28 days
1.5
1.0
0.5
0.0
0% 5% 10% 15%
Samples
Exercise (Scatter Chart)
Draw a graph for y=x^2 using scatter chart.
Note:
In a column insert some values for x starting from 0-10
Calculate y
Now you can chart them
Add axis titles to the chart
Show major and minor horizontal and vertical gridlines
Change the major unit of horizontal axis to 0.5
Adding trend line in Microsoft 2010
Trend line are the best fit curves
Excel has ability of providing drawn data with an equation
that fits data.
To draw a trend line, select the chart, go to Layout tab,
Analysis group, trend line, More trend line options
Choosing a trend line
There is a number of trend line alternatives.
There is no rigid guideline to choose a type,
You will try one by one until you find the best one for
your data.