Electronic Spreadsheets
Electronic Spreadsheets
Background
• Throughout the ages, people have always needed to calculate. Tools such as the
abacus were invented by the early Chinese to help keep track of large numbers.
About thirty years ago, students only had pen, paper, slide rules and mathematical
tables to help them in their mathematics exams. There were no such things as
calculators and certainly no personal computers. Calculators eventually became
everyday tools and certainly helped to speed up calculations and improve accuracy.
Even then, they weren't really good enough to solve complex problems or deal
with large amounts of repetitive work. With advancement in technology,
spreadsheets were developed.
• A spreadsheet is a piece of software which is used to work out calculations.
Spreadsheets can do a lot more than simply adding up a column of numbers.
Spreadsheets can handle financial calculations for a large business, calculate
probability or other statistical information, do complex trigonometry and make
colorful graphs and charts. Some examples of these spreadsheets include,
Microsoft Excel, VisiCalc, Lotus 1-2-3, MS-DOS spreadsheets and OpenOffice.org
Calc.
• Learning Outcome: The learner should be able to produce mark sheets, budgets,
class planners and many others.
Presentation Outline
Electronic Spreadsheets
• Sub Topic 7.1: Introduction to
Spreadsheets
• Sub Topic 7.2: Managing Worksheets
• Sub Topic 7.3: Formulae and Functions
Sub Topic 7.1: Introduction to Spreadsheets
A large range of Click the first cell in the range, and then hold down SHIFT while you click the
cells last cell in the range. You can scroll to make the last cell visible.
To select the entire worksheet, you can also press CTRL+A. NOTE If the
worksheet contains data, CTRL+A selects the current region. Pressing
CTRL+A a second time selects the entire worksheet.
To select Do this 7.2.3 Selecting cells
Nonadjac Select the first cell or range of cells, and then hold down CTRL while you
ent cells select the other cells or ranges.
or cell
ranges You can also select the first cell or range of cells, and then press SHIFT+F8
to add another nonadjacent cell or range to the selection. To stop adding
cells or ranges to the selection, press SHIFT+F8 again.
• NB: Click the Font dialog box launcher for more options.
7.2.7 Formatting a worksheet
• Borders: When you print a worksheet, Excel
allows you to choose whether you want all the
cell gridlines to be printed or not. Often, you
want to print some but not all of the lines –
this is when you need to apply borders.
• You can then tell Excel not to print the gridlines
but your borders will be printed.
• To apply borders:
– i. Select the area you want to border.
– ii. Click the drop-down list arrow to the
right of the Borders button on the
Formatting toolbar.
– iii. From the palette, click on the required
border option.
7.2.7 Formatting a worksheet
Merge Cells
• If you want to type a heading across the top of a table of data, it can
be quite difficult to line it up in the centre. Luckily Excel has a
solution.
• To merge Cells, Select the cells you want and Click the MERGE AND
CENTRE button from the Formatting toolbar.
7.2.7 Formatting a worksheet
Initially, numbers in Excel use a General format. You may find that the
results of formulae run to different numbers of decimal places, or you
might want to display numbers as monetary values with a currency
symbol and two decimal places, or express as fractions or %ages.
• To Increase or decrease decimal places:
– i. Select the cells with the numbers you want to change.
– ii. Click the INCREASE DECIMAL button or the INCREASE DECIMAL button from
the Number group on the HOME ribbon
– iii. Keep clicking the button until your numbers display the correct number of
decimal places.
Percent Style
• Where you have typed decimals on the worksheet, you may want to
express those values as percentages. You can do this with the Percent
Style format. E.G. 0.5 would become 50% when you apply Percent
Style.
7.2.7 Formatting a worksheet
• To apply Percent Style:
– Select the cells with the numeric data you want to format.
– Click the Percent Style button (%) from the Formatting toolbar.
• To apply comma formatting
– Click the comma (,) button.
• To apply currency style:
– Select the cells with the numeric data you want to format.
– Click the Currency button from the Number group on the HOME
ribbon.
– Using the drop down arrow to the right of the currency button
gives access to the most likely used currency formats. You can set
your own currency symbols such as Shs. Or /= using custom
options in the the FORMAT CELLS DIALOG box.
7.2.7 Formatting a worksheet
• Format Cells Dialog (Ctrl+1)
• This dialog contains all the
formatting options (including
those accessible via the
Formatting toolbar) that you can
use within the Excel application.
• The Format Cells dialog is divided
into tabs, each tab dealing with a
format category.
• To access this dialog, Click the
DIALOG BOX LAUNCHER. From
either the FONT, ALIGNMENT or
NUMBER group on the HOME
ribbon OR i. Press [CTRL]+[1]
7.2.7 Formatting a worksheet
Using the Format Cells dialog to
apply custom number formats
–You can set custom number formats such
as applying the Shs. Symbol before the
values by typing a custom number format
code under the “Type:” text box on the
Number Tab of the Format cells dialog box.
–For example, the code “Shs. ”0 appends
the Shs. Symbol before the value in a cell
as shown. The 0 acts as a placeholder to
the values.
–NB: Other code examples are shown in the
dialog box and are documented in the
Access help manuals. For details, Open Ms
Access 2007, type (F1) and search for
‘Format Property - Number and Currency
Data Types.’
7.2.7 Formatting a worksheet
Using the Format Cells dialog to apply change cell
data orientation
To change orientation:
1. Select the cells you want to format.
ii. Open the Format cells dialog box and Click the
ALIGNMENT tab.
iii. In the ORIENTATION section, to keep characters
horizontal but arrange them one underneath the
other, click the picture that corresponds.
iv. Drag the red dot marker up or down to give a
degree value of plus or minus 90° from the base
position (horizontal).
v. Click OK to apply the new formats and close the
dialog.
Sub Topic 7.3: Formulae and Functions
• Text Operator
• The Excel Concatenation Operator (denoted
by the & symbol) joins together text strings, to
make a further, single text string.
• The following formula uses the concatenation
operator to combine the text strings "SMITH",
", " and "John"
7.3.1 Types of operators
Operator Description
Comparison Operator
• The Excel Comparison = Equal to
Operators are used
when defining > Greater than
conditions (for < Less than
example when using
Greater than or equal
the Excel If Function). >= to
These operators are
<= Less than or equal to
listed in the table
below: <> Not equal to
7.3.1 Types of operators
• To enter a formular
– i. Move to the cell where you want to enter the formula.
– ii. Type an equals sign (=). NB: The result automatically
– iii. Type the formula (e.g. D2*E2). recalculates if any determinant values
change. It is this automatic recalculation
– iv. Press [ENTER] to confirm the entry.
which makes spreadsheets invaluable.
7.3.4 Functions
• You could construct a formula to generate a total at the bottom of a
column (or the end of a row), like this: =D2+D3+D4+D5
• The above formula would work, but if there were 400 cells to total
and not just 4, you would get bored with entering the individual cell
references.
• When formulae become unwieldy or complex, Excel comes to the
rescue with its own predefined, named, built-in formulae
known as functions. Functions follow the same syntax:
7.3.4 Functions
• Excel has a huge number of
functions. The functions
are categorized according
to what they do. Function
categories include
Financial, Logical, Lookup,
Text, Date and Time.