Spreadsheet
Spreadsheet
What is spreadsheet?
Introduction Ms excel
A Spreadsheet
A spreadsheet is an interactive computer applica-
tion program / software for organization and
analysis of data in tabular form.
Ms Excel (Microsoft Excel)
Free and open-source spreadsheets -
OpenOffice Calc and LibreOffice Calc
Web based spreadsheets - Office Web
Apps or Google Spreadsheets
Spreadsheet Basics
labels - provide descriptive information about entries in the
spreadsheet
value or numbers - is an actual number entered into a cell
Formulas – these are instructions to the spreadsheet program to per-
form a calculation. Functions are like preprogrammed (predefined)
formula.
Dates - shows when was the item created and can be used in calcula-
tion like late loan repayment
MS Excel
INTRODUCTION
Formatting toolbar
9
The Active Cell, Formula Bar, and
Worksheet Tabs
Formula bar displays
contents of active cell
Active cell is
highlighted
10
Excel 2007 Basics
Cell
Cell A1
(Column A ,
Row 1) is
also the Ac- Columns
tive Cell
Rows
worksheets
• Cell ranges
• relative, absolute and mixed addresses
• Excel functions
Navigating the Worksheet
Range
Range
Mathematical Equation
All formulas begin with an equal (=) sign
Data that is stored in the worksheet and
that needs to be used in a formula is
referenced using the cell’s address
For example; =A1+A2/(A3-A4)
An example of a simple formula
Functions
Formula: =A1+A2+A3+A4+A5
Function: =SUM(A1:A5)
A more complex formula
What makes a formula?
=(3*$A$2*SUM(A3:A9))^1/3
Begin with =
Constants
Cell References
Operators
Functions
Constants
2, 3, 12, 14.32
References
Arithmetic
- (negative) % ^ (Exponent)
* / +
Comparison
=< > <= >= <>
Text
&
Reference
: (Colon) , (Comma)
Order of Operation
1. ( ); parenthes First
2. Division and Multiplication (/ and *)
3. Addition and subtraction (+ and -)
4. Same level of precedence; formulas are
read from left to right
How to Copy Formulas?
AutoFill is a command you can use
when you want to copy the same for-
mula across a range of adjacent cells.
– AutoFill will automatically change
cell addresses depending on
where the new formula is being
copied.
Traditional copy and paste
AutoFill Handler
1. Select the cells that can spec-
ify the pattern of the succeed-
ing cells.
2. Drag the fill handler until it
previews the last of the re-
quired value. You can move the
handler back and forth.
3. Release the fill handler when
you’re done.
An example of a
Simple
Formula
and a Complex
formula
Enter the data below in an Excel worksheet
A B C
1 SalesRep Month Amount
2 Jones Jan 100
3 Jones Jan 225
4 Rogers Jan 400
5 Rogers Jan 150
6 Rogers Jan 250
7 Franklin Jan 800
8 Franklin Feb 200
9 Jones Feb 350
10 Franklin Feb 1200
11 Rogers Feb 900
12 Franklin Feb 750
13 Jones Feb 800
14 Sum:
15 Average:
16 Count:
Add values (Total or Sum of Values)
The syntax for the SUM function is:
=SUM( item1, item2, item3, …. Item n)
Example =SUM( c2,c3,c4,c5,c6,c7,c8……c13)
OR =SUM( Range )
Range - the group of cells the function has to
SUM.
Example: Within a certain range:
=SUM(C2:C13)
OR =
c2+c3+c4+c5+c6+c7+c8+c9+c10+c11
COUNT values
Eg. =COUNTA(C2:C13)
= COUNTBLANK(RANGE)
Eg. = COUNTBLANK(C2:C16)
SUMIF Function
=IF(logical_test,value_if_true,value_if_false)
logical_test – a value or expression that is tested to
see if it is true or false.
The IF Statement
Logical statements are used to control the se-
quence of computations in programs and in
spreadsheet
An IF statement tests a condition, and the flow
of calculations is dependent on whether the
condition is true or false
This is best illustrated with a simple example
The IF Statement
Logical statements are used to control the se-
quence of computations in programs and in
spreadsheet
An IF statement tests a condition, and the flow
of calculations is dependent on whether the
condition is true or false
This is best illustrated with a simple example
Logical Test Example (cont.)
In words, you might describe your procedure as:
“If the number is less than zero, then take the
negative of that number, else leave the number
as it is”
Format of Excel IF statement:
-if(logical_test,value_if_true,value_if_false)
Absolute Value Example
The number to be evaluated is entered into cell A1
The formula is entered into cell B1
Nesting IF Statements
Often, there will be more than two possible outputs for a
given input
In Excel, we must nest IF statements
Consider this example: we want to read in a numerical grade
and convert it to a letter grade on a scale of:
Greater than or equal to 90 = A,
Greater than or equal to 80 and less than 90 = B
Greater than or equal to 70 and less than 80 = C
Greater than or equal to 60 and less than 70 = D
Less than or equal to 60 = F
Excel Formula
Value if True
First Value if
(leads to further
Logical False
tests)
Test
The condition for the IF statement is true only if both
conditions following the AND statement are true:
To be accepted, the part must be greater than the
minimum allowed AND less than the maximum allowed.
Example
Alternate solution:
The condition for the IF statement is true only if either of
the conditions following the OR statement is true:
To be rejected, the part length must be less than the
minimum allowed OR greater than the maximum al-
lowed.
Calculating time period
NOW Function
NETWORKDAYS Function
Objectives
Introduction to Excel charts
• Elements of an Excel chart
• How to create a chart
Excel Charts (An Introduction)
Period of Study CGPA
• A chart is a visual repre-
sentation of numeric val- Trimester 1 3.33
ues (data on a worksheet)
Trimester 2 3.21
• It helps viewers to spot
trends or patterns from Trimester 3 3.27
tabulated data more
quickly Semester 1 2.48
• What can you infer from
Semester 2 2.64
this student’s historical
CGPA?
Semester 3 2.86
Introduction to Excel Charts
Plot
Plot Area
Area
Data
Data Label
Label
Axis
Axis Title
Title
Data
Data Marker
Marker
Legend
Legend
x-axis
x-axis or
or Cate-
Cate-
gory
gory Axis
Axis
Chart
Chart Area
Area
Axis
Axis Title
Title Category
Category
Elements of an Excel Chart
Element Explanation
Chart Area The area occupied by the entire chart, including legends, labels, etc.
Plot Area The area occupied by the data plotted on the chart.
Data Marker The chart’s physical representation of a data value from a data series. In this
chart, the data markers are columns. They could be squares on a line chart, or
segments of a pie chart, etc.
Data Series A set of related data values e.g. GPAs of students from Trimester 1 is one data
series, GPAs of students from Trimester 2 is another data series.
Category A grouping of comparable data values from each data series e.g. Chitra’s GPAs
from the three data series are under one category since it is her personal per-
formance trimester by trimester that we want to compare in this chart.
Standard chart types
Column charts
Bar charts
Line charts
Pie charts
Area charts
Doughnut charts
Surface charts
Bubble charts