Spreadsheet Database PDF
Spreadsheet Database PDF
Spreadsheet package- It is application software used by people who work with numbers,
that is accountants, banks and building society employees, engineers, financial planners.
The user enters the data and formulae to be used in manipulating the data and the
program calculates the results and it is made up of rows and columns.
- What if calculations
- Formular bar
- Name box
- Rows and columns headers which are numbered and lettered respectively
- Worksheets.
- Formulars
- Save as
- Graphs and charts.
- Merge and centre
- Wrap text
Page 1 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
- Sort and filter
- Clipboard
- Cut and paste.
- Zoom tool
- Scroll bar
- number formatting.
- Title bar
- Ribbon
- Status bar
Page 2 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
- Producing data from which graphs can be drawn, for example, to calculate average
temperature for a graph of weather data
- Solve mathematical equations.
- It is used by people who work with numbers,that is accountants, bank tellers in
banks, building society employees, engineers and financial planners.
- Are used in business as models to predict what might happen in the real world.
Uses of spreadsheet
Cell- is a rectangular box in which we enter data and formula. It is identified by its
address which is formed by the intersecting column letter and row number.
Cell- It is the intersection of a column and a row. Each cell has a unique name called
address given by a column letter and a row number. For example D4
Page 3 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
1. Label- It is a text entry into a worksheet. It usually begins with a letter and is left
justified or aligned. For example Unit price.
2. Numbers/Values- Are numbers to be used for calculations. Usually start with an
arithmetic sign or a numerical digit and is right justified or aligned.
3. Date/Time- Date is usually formatted as MM/DD/YYY or DD/MM/YYY
4. Formula- It is a mathematical expression used to perform calculations. It usually
starts with the equal sign. For example = (B4*C4)/5
Formula- It is an equation that performs a calculation
Range of cells- It is a group of cells referred to as a unit and it is referred to using a colon.
Active cell- It has a dark border around it and the row and column headers are coloured.
This is the cell that receives your commands and each cell contains a unique address such
as A1 to define its location on the worksheet.
Worksheet- is a single sheet of data made up of rows and columns. It is also called just a
sheet or spreadsheet.
Worksheet- It is a single sheet of paper with a grid of rows and columns used for
calculations.
Page 4 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Workbook- It is a combination of at least two (2) worksheets and it is similar to pages in a
counter book. By default a workbook contains three worksheets, namely Sheet1, Sheet2
and Sheet3
-It is the basic document for excel and its file name uses the extension xls.
Name box- It is a textbox on the left of the formula bar which displays the name of the cell
or address of the cell
Formular bar- It is a text box just above the column headers which shows the contents of
the active cell. The contents of the cell can also be edited in the formula bar
Formular bar- It is a text box just above the column headers which displays formular and
data that gives the result of the active cell and contents of active cell respectively.
Cell pointer - cursor that takes the shape of a plus when over the worksheet
Column header- Names of columns which are letters of the alphabet
Row header- Names of rows which are which are labelled with numbers (1, 2, 3…)
Columns- Go down the page and labelled at the top with letters (A, B, C…)
Title bar- It is usually blue in colour and located at the very top of the screen. This bar
displays the title of the document you are working on and the name of the program being
used. For example microsoft excel Book1.
Status bar – appears at the very bottom of the excel window and provides such
information as the sum, average, minimum and maximum value of selected numbers.
Menu bar- Appears below the title bar and contains tabs such as Home, insert, page layout,
formulas, data, review, view and Acrobat.
Formula bar- Displays information entered or being entered as you type in the current or
active cell. The contents of the cell can also be edited in the formula bar
1. Click on start
2. Click on all programs
Page 5 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
3. Click on Microsoft Office
4. Click on Microsoft Excel.
Formulas.
A function- It is an expression that takes some cells or values (called parameters) as input
and produces some value as output. These functions are called in – built functions.
Page 6 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
A function – It is a tool which performs a special operation such as summation
(a) #NAME? : This error means a Function used is not being recognized
by Excel.
(b) ####: A number in a cell is too wide for the cell to display it. or
The formula in the cell produces a result that is too wide for the
Page 7 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Often occurs as the result of deleting rows, columns, cells or
Worksheets.
• Highlight the cell to copy the formula in it and then paste it to desired cells.
Advantage of functions.
-They save you time since you do not have to write the formula.
1. Insert an equal sign (=) to tell excel that you are about to enter a formula.
2. Function name(SUM for example is the function name for addition)
3. Insert arguments in parenthesis.
NB Arguments contain the information you want the formula to calculate, such as a range
of cell references:
Syntax
=SUM (D2:D6)
Page 8 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Colons create a reference to a range of cells
For example, = AVERAGE (E19:E23) would calculate the average of the cell range
E19 through E23.
Commas separate individual values, cell references and cell ranges in the
parenthesis.
If there is more than one argument, you must separate each argument by a comma.
For example, = COUNT (C6:C14), C19:C23), C28) will count all the cells in the three
arguments that are included in the parenthesis.
-Excel uses standard operators for equations, such as a plus sign for addition (+), a minus
sign for subtraction (-), an asterisk for multiplication (*), a forward slash for division (/).
Addition + =5 + 5
Subtraction - = 5-5
Multiplication * =5*5
Division / =5/5
Page 9 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Points to remember
What – if analysis.
- Spreadsheet programs are used for decision making based on the calculated results.
- Spreadsheet contains tools for performing complex mathematical calculations, such
as what if – analysis. This feature helps to experiment and answer questions with
your data, even when the data is incomplete.
What if analysis
- It is the process of changing the values in cells to see how these changes will affect
the outcome of formulas on the worksheet.
- This allows a company to predict future trends in its income and outgoings.
Page 10 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Defining terms
Term Definitions
Function A function is a predefined formula that performs calculations by using
specific values in a particular order. The values used in the function
are
For example, the AVERAGE function calculates the Average of its
arguments.
Arguments The values used in the function are called arguments and enclosed in
parenthesis. For example = Sum (D2:D5).
Arguments
Function The syntax of a function begins with the function name, followed by
syntax an opening parenthesis, the arguments for the function separated by
commas or Colon, and a closing parenthesis. If the function starts a
formula, an equal sign (=) should be placed before the function name.
Example: = SUM (D2:F8) .In the above example, the function name is
"SUM" and the argument for the function is the range "D2:F8".
Active Cell A cell that is selected.
Workbook In Excel, a workbook is the file in which you work and store your data.
Because each workbook can contain many sheets, you can organize
various kinds of related information in a single file. By default, all new
workbooks contain three worksheets.
Cell Cells form where rows and columns intersect. To refer to a cell, enter
the column letter followed by the row number. For example, C15
refers to the cell at the intersection of column C and row 15.
Page 11 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Using the mouse
F2 key (function key) Opens the active cell for you to edit the data in it.
Alt/Enter Enters a hard return inside of the active cell. This will
automatically wrap your text and increase the size of the cell.
Page 12 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
following special characters: , + - ( ) / E e $ % .
Dates and Times Internally, Excel stores dates and times as numbers. They can
be displayed, however, in several built-in formats.
Operators
Arithmetic
Operator Meaning
* Multiplication
/ Division
+ Addition
- Subtraction
% Percent
Comparison
= Equality
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
<> Inequality
Text
& Ampersand Concatenates, or combines, two values to produce one
continuous text value
Reference.
: Colon—A range operator, which produces a
single reference to a range of cells delimited by
a start reference and an end reference. An
example would be “D3:D7”, where “D3” is the
start reference, “:” is the range operator, and
“D7” is the end reference. All cells in between
and including D3 and D7 are in the new single
reference.
Comma—A union operator, which combines
multiple individual references into one reference.
An example would be “D3:D7,F15,B4”, where
“D3:D7”, “F15”, and “B4” are the three individual
references combined by the union operator.
Note that this different from the range operator
because no range is created from the
references.
Page 13 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Creating Formulas
There are a couple of ways in which you can create a formula: type the formula into the
formula bar or directly into the cell; use Excel’s built in Insert Function utility; or use
AutoSum to have Excel automatically create a summation formula to add a group or range
of numbers.
Formulas
A formula calculates a new value from existing values. An Excel formula can contain a
combination of constant values, cell references, range names, functions, and/or operators.
Cell references are merely the address of a cell, expressed in the form a column label and
then a row label. For example, A1 is the address of the first cell in a worksheet. Ranges
names are covered in more advanced Excel workshops. Formulas always begin with an
equal sign (=). Here are a few examples:
Constant Values
= (456+57)*32
Cell References
=D3/F13
Range Names
=D3*Tax
Functions
Excel contains many predefined or built-in functions. Functions can be used to perform
simple or complex calculations. Some of the most frequently used function are the SUM,
AVERAGE, PMT, DLOOKUP, and IF functions. Here is an example of the sum function
operators below).
=SUM (D3:D7).
Page 14 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
NB When you copy a formula to other cells using the AutoFill method, Excel may
adjust the formula’s references to data based on the relative position of the new
copy. Excel only
Summary on spreadsheet
SPREADSHEET
Excel like other spreadsheet packages is a WYSIWYG package (what you see is what you
get). This means the way your work is presented on screen is the way it will appear on
hard copy.
Page 15 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
The cells are filled with the following data:
1. Labels – any text entry which when entered is automatically aligned left.
2. Values – numeric values which when entered are positioned to the right of the
cell.
3. Formulas – mathematical expressions for manipulating numeric values e.g one
can sum column figures from cell address A1 to A4 by typing the following
formula =sum (A1:A4) the underlined being the range of data to be summed.
4. Range - is a rectangular block of adjacent cells treated as a unit and can be
manipulated at the same time. A range can be specified by highlighting the area
or specifying the range name as above.
Area of Application
- business budget plans
Features
Workbook
Is Microsoft Excel file containing one or more worksheets shown at the bottom of the
application window. Excel has three default worksheets numbered sheet 1, sheet 2,
Worksheet
Is a workbook page, made up of rows and columns which intersect to form cells. The
columns are lettered and rows are numbered.
Page 16 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Cell
Is a position in a worksheet where the row and column subscript intersect.
Name box
A box positioned at the left of the formula bar indicating the address or reference of the
cell. If the work area of the window is open, the name box always contain the address of
cell A1 and other cell names appear when they are activated.
Cell address or reference – is the address that identifies the cell. It is read by its column
and row subscripts.
Formula bar
Is a bar above the column subscripts bar showing data as it entered, edited, data in the
active cell. An active cell is the highlighted cell and is the target cell for required operation.
Mode indicators
The message displayed on the lower left corner of the window reflecting the current mode
of operation. Some of the mode indicators are as follows;
Ready – excel is waiting for data entry after the cell is activated.
Edit – indicates that an entry in the cell is being edited when the user press F2.
Database.
Page 17 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
A database – is a collection of logically related files, organized in a manner to satisfy the
needs of an organisation.
- Storing paper records is very bulky, often requiring several large filing cabinets.
- It is very easy to miss– file a paper record, or for records to be lost or damaged.
- Data is often duplicated in several records.
- Keeping records up to date is difficult and time consuming and often results in data
inconsistency, where values are updated in one record but not in others.
- Many people can be employed to maintain the records, which is costly.
- Searching for the records is time consuming
- Producing reports, such as sorted lists or data collection from several sources, is
extremely time consuming.
It is a software package which is used to create, manipulate and present data from
electronic databases. Examples of DBMS include
1. Microsoft Access
2. filemaker pro
Page 18 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
7. Export and import data to or from other packages like word processing and
spreadsheet.
8. Check passwords of individual users and only allow that user to access certain parts
of the database.
9. Check passwords of individual users and only allow that user to access certain parts
of the database.
10. Ensure that recovery is possible if the database is corrupted.
A computer database consists of a number of records and each record holds similar types
of data arranged in the form of fields.
Fields Records
- Databases can store very large numbers of records efficiently (they take up little
space.).
- It is very quick and easy to find information.
Page 19 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
- It is easy to add new data and to edit or delete old data.
- Data can be searched easily. For example, find all students living in Moka.
- Data can be sorted into ascending or descending order on multiple criteria.
- Multi- access: more than one person can access the same database at the same time.
- Security may be better than in paper files.
Examples of database.
1. Microsoft Access
2. dbase
3. File maker
4. Open office Base.
5. Oracle.
6. SQL Server
7. FoxPro
8. Paradox
Uses of database
Database Structure.
Field name, For each field name chosen, it must begin with a letter followed by characters
and underscore.
Page 20 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Example: NAME, STUD_NUM, AGE valid field name.
NB. We need to tell the computer system what type of data it is before entering data into
the computer. This is because the computer stores and processes different types of data in
different ways.
– a field of this data type will accept both numbers and text.
Data Type- The type of value that will be entered into the fields.
Field Name- This is the name of the field and should represent the contents of the
field such as "Name", "Address", "Final Grade", etc. The name cannot exceed
64characters in length and may include spaces.
NB. When designing a database, it is important to choose the correct field type/Data type.
This ensures that the data stored is usable and makes validation easier. For example, if the
price paid for goods was stored in a text field, then the database would not be able to add
each individual figure to produce a total.
The Field width or field size determines the maximum number of spaces that will be
reserved for each field or entry.
Example
What is a primary key? - It is a keyfield which uniquely identifies each reach record in a
database. The following are examples of primary key or key fields:
Foreign key- One or more table fields that refer to the primary key field or fields in
another table.
Foreign Key- It is a field in related tables that acts as the link between two tables. For
example in the second table of two related tables, this field is not a keyfield but it is a
keyfield of some other table
Relational database- It is a database with two or more tables that are related and are
joined by a means of primary key which relate or link data in different tables.
The tables are connected with join lines that connect the primary key from one table with
a matching field in other table. This tells the database which customer has placed orders
on a particular date.
Page 23 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Table one
Database
Management system
We use this field in table one to create a relationship (link) between the two tables.
To create the relationship, we are using the key field (primary key) from one table
to link to another.
When a keyfield from one table appears in a different table (for example, the
customer in second table), we call this a foreign key.
In Ms access, to set up a primary key, we need just to click on the icon primary key
on design tab whilst in the design view window and it will be set
Page 24 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Database objects.
1. Forms- Are an access tool that users can create to make data entry in the database
tables easier. It provides users with an easy to read interface where they can enter
table data.
2. Query- it is a database object that allows you to retrieve information from one or
more tables based on a set of search conditions you define using the table fields.
- In Ms Access, query are created using either the query design command or the query
wizard.
Example
Operator Meaning
Page 25 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
= Matches exact occurrences (This is the default
comparison criteria operator.)
> Matches records that are greater than the criteria value.
>= Matches records that are greater than or equal to the
criteria value.
< Matches records that are less than the criteria value.
<= Matches records that are less than or equal to the
criteria value.
<> This is the not equal to symbol. It excludes records with
the criteria value
And Allows you to combine the comparison operators to
retrieve only records where all of the criteria are met.
Or Allows you to combine the comparison operators to
retrieve records where only one of the criteria must be
met.
Not Excludes records or can be used to retrieve the
opposite of the criteria that follows.
Between…And Use these two Booleans together to return a range of
records, such as a date range.
Like Like Matches a pattern in a field using the wildcards
below.
* A placeholder for any amount of characters. Can be
used at the beginning or end of the criteria.
? A placeholder for a single character.
& Used to concatenate or join two or more fields together
and can also join other Characters with those fields.
3. Report – A database object which is an effective way to analyse and present data
using a specific layout. The text can be formatted in an access report, just like it can
be in word documents.
4. Table- Tables are grids of rows and columns used to store data in a structured and
organized format. Tables are similar to those of word and excel in that they contain
rows (records) and columns (fields)
Defining terms
Term Definitions
Database An organized collection of information and software to
Page 26 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
organize and control access to it known as DBMS.
Relational Database A management system that allows the definition of data
structures, storage and retrieval operations and rules to
preserve data quality (integrity constraints).
Table An object comprised of fields (columns) that collect
records (rows of data)about a specific topic
Field A table column that stores specific information and when
combined with other fields (columns), makes up a record.
Record A row in a table that is a collection of related data treated
as a unit.
Primary Key One or more fields whose value or values uniquely
identify each record in a table.
Foreign Key One or more table fields that refer to the primary key field
or fields in another table.
Query An object that can allow for the retrieval, display, and
updating of data from one or more related tables.
Form An object designed primarily for the display and/or entry
of data into a table, query, or other Access object but that
can also be used for other execution purposes.
Report An effective way to present data in a printed format from
a table, query, or SQL statement.
Data Access Pages A special type of web page especially designed for viewing
and working with data (stored in an Access database,
Microsoft SQL Server database, or some other type of
database) from an Internet or intranet
Macro An action or set of actions used to automate tasks.
Module An object that contains a collection of Visual Basic for
Applications (VBA) declarations and procedures that are
stored together as a unit.
Page 27 of 28
©Mubaiwak 14/06/2017 9:17:03 PM
APPLICATION NOTES
Page 28 of 28
©Mubaiwak 14/06/2017 9:17:03 PM