Professional Documents
Culture Documents
Electronic Spreadsheet
WHAT IS CALC?
CALC is the spreadsheet application of OpenOffice.org (OOo).
Electronic spreadsheets make it easy to enter, manipulate, and alter data in tabular
form. If the correct functions and formulas are used, the program will reflect these
changes automatically from one part of the table to other related parts.
Errors can therefore be corrected without having to retype the entire workbook or
sheet.
A.
Title Bar
Menu Bar
Minimize/Maximize/Restore, Close
Toolbars
Column
Active Cell
Header
s
Formula
Bar
Row
Hea
ders
Sheet
Tabs
B.
Description
Shows the name of the current workbook and the version of OOo
in use. If the workbook is new, then its name is Untitled X, with
X being a number.
Menu bar
File Menu
Edit Menu
View Menu
Insert Menu
Format Menu
Tools Menu
Data Menu
Window Menu
Help Menu
View Menu
Edit Menu
2
File Menu
Format Menu
Tool Menu
Insert Menu
Window Menu
Data Menu
Toolbars: Shows icons that provide a wide range of common commands and
functions: Standard, Formatting, Drawing, Table, Picture
Three default toolbars under the Menu Bar: the Object bar, the Function
bar, and the Formula bar; the Main Toolbar runs vertically down the
left hand side of the screen
Tool tip: A small yellow box displayed when mouse is placed over a tool icon.
Gives a brief explanation of the buttons function. Turning on
Extended Tips under the Help menu, Help > Extended Tips, will
provide a more detailed explanation of the buttons.
Formula bar:
Name Box: Contains the cell reference of the active cell. Designates a cell
using the column header and row header (e.g. A1, Z300), called
the cell reference
Formula Bar
Cells:
Sheet tabs: These enable access to each individual worksheet, with the
visible, or active, sheet having a white tab (multiple sheets can be
4
WORKBOOK OPERATIONS
A.
Click
the
arrow
beside
the
New
Document
button
on
the
Function bar and select Spreadsheet
from the submenu.
OR
If you already have a workbook open, you can press CTRL+N to open a new
Calc workbook.
B.
OR
C.
If the workbook has not been saved previously, then each of these actions
will open the Save As dialog box where you can specify the workbook name and
the location in which to save the workbook.
II.
If the workbook has been previously saved, then these options will overwrite
the existing copy without opening the Save As dialog box. If you want to save the
workbook in a different location or with a different name, then go to the File menu
and select Save As.
A.
OR
Type the cell reference in the Name Box and
press Enter.
OR
Calc Navigator
C.
Moving from cell to cell: may use the mouse or the keyboard
keystroke
Movement
, , ,
Home
End
Page Down/Up
CTRL+
CTRL+
CTRL+
CTRL+
CTRL+Home
To Cell A1
CTRL+End
Alt+PageDown
Alt+PageUp
CTRL+Page Down
CTRL+PageUp
Tab
Shift+Tab
Enter
Shift+Enter
Up one cell
III.
If you have a lot of sheets, then some of the sheet tabs may be hidden
behind the horizontal scroll bar at the bottom of the screen. If this is the
case, then the four buttons at the left of the sheet tabs can move the tabs
into view.
Sheet numbering is arbitrary. You can name a sheet as you wish (use the
Shortcut menu to rename a sheet).
Finally, you can move between sheets by using CTRL+PageUp (moves left
one sheet) or CTRL+PageDown (moves right one sheet).
WORKSHEET VIEWS
The Zoom function is used to change the view in order to see more, or fewer,
cells on the window
IV.
Page Width The width of the page fits within the width of the screen.
Optimal Zooms the selected range to fit the screen and is normally greyed
out.
Percentages Zoom the screen to a particular size, 100% being full size.
To select a cell
Click on the cell.
B.
D.
Click at least two contiguous cells, then Ctrl + click on another, and so
E.
V.
Contiguous Sheets
Click on the sheet tab for the first sheet.
Move the mouse pointer over the last sheet tab.
Hold down the Shift key and click. All the tabs between these two
sheets will turn white.
o Any actions that you perform will now affect all highlighted sheets.
Noncontiguous Sheets
Click on the sheet tab for the first sheet.
Move the mouse pointer over the second sheet tab.
Hold down the Ctrl key and click. Repeat as necessary. The selected
tabs will turn white.
o
Any actions that you perform will now affect all highlighted
sheets.
All Worksheets: Right-click over any one of the sheet tabs and select Select
All Sheets from the popup menu.
RENAMING WORKSHEETS
The default name for the sheets is SheetX. While this works for a small
workbook with only a few worksheets, it becomes awkward when there are many
sheets.
To give a sheet a more meaningful name, enter the name in the name box
when you create the sheet or right-click on a sheet tab and select Rename Sheet
from the popup menu and replace the existing name with a better one.
VI.
Sheet names must start with either a letter or a number. Other characters,
including spaces, are not allowed, although spaces can be used between words.
Attempting to rename a sheet with an invalid name will produce an error message.
Entering text
Select the cell and type the text. Text is left-aligned by default.
2.
Entering numbers
3.
4.
Select the cell and type the date or time. You can separate the date
elements with a forward slash (/) or hyphen () or type with text such
as 10 Oct 03. Calc recognizes a variety of date formats. You can
separate time elements with colons such as 10:43:45.
5.
Called filling to either fill with the same data or with data which
changes in each cell.
10
6.
In the first cell in the range, enter the data you want to fill the
other cells.
Click on this cell; hold down the left mouse button and drag to
select all the cells that you want this data to fill into.
Go to the Edit menu, select the Fill option and then choose the
direction in which to fill.
B.
1.
Enter the data in the first cell that you want to fill into each of the other
cells.
2.
3.
When it does so, hold down Ctrl key then click and drag down the column
or across the row.
4.
Auto-Complete
CALC tries to guess the rest of a text entry you are typing. When you are
typing several identical text entries, Auto-Complete can speed up data entry
quite a bit.
CALC is aware of your previous text entries in a particular spreadsheet.
When you enter some text in a column that starts in the same way as previous
text in the same column, Calc will suggest the completion of the entry with the
text previously entered but with highlighted characters.
To accept the suggested new characters, just press Enter or an arrow key.
Otherwise, just keep typing or press Backspace if you have reached the end of
your entry.
11
Each column has a new context. If you enter something in one column
that is similar to something in another, it will not try to complete the text
entry according to what you have done in the other column. This applies as
well to entries in other spreadsheets in the same workbook.
VII.
Insert menu
Hold down the left mouse button on the Insert Cells icon in the main
bar, select Insert Columns or Insert Rows from within the extra
toolbar that appears
OR
B.
C.
12
Click on the tab of the existing sheet that you want the new sheet to
appear, and:
Click on the Insert menu
and select Sheet,
OR
Right-click on its tab and
select Insert Sheet,
OR
Click into an empty space
at the end of the line of
sheet tabs.
B.
C.
Figure
24. Insert
Sheet
Dialog
Box whether the
Each method will open the Insert
Sheet
dialog
box.
Select
new sheet goes before or after the selected sheet and how many sheets you
want to insert.
To delete worksheets
1.
Right-click on the tab of the sheet you want to delete and select Delete
from the popup menu.
2.
To move/re-position worksheet
1.
2.
IX.
Removing text
1. Removing text only, without removing any of the formatting of the cell:
Press Backspace.
2. Removing text and formatting simultaneously: Press Delete to bring up the
Delete Contents Dialog Box to customize the action. To delete everything
in a cell (contents and format), check Delete all.
13
B.
C.
D.
1.
Keyboard shortcut: Select the appropriate cell, press F2 and arrow keys to
move the cursor through the text in the cell.
2.
Mouse: Select the appropriate cell, move the mouse to the input line and
click to place the cursor for editing.
Sorting Data
There are instances when
you would need to arrange your
data in a worksheet either in
ascending or descending order
(lowest to highest for numbers,
alphabetical for text). This can be
done by using the Data menu >
Sort.
Sort Ascending button:
Sorts data based on the
values of the first
column in the selected
range
Sort dialog box
14
Sort Descending button: Sorts data based on the values of the first
column in the selected range
Note that you need to select or highlight the cells of corresponding data in a
table to use these functions.
What if you would like to sort your data but do not want the data from
the first column to be your basis of reference? Calc allows you to sort using
other columns through the Data menu, Sort option.
X.
The option shows a dialog box that allows you to pick which column will
be used as basis for sorting. It also allows you to choose between ascending or
descending, or even pick a second and even a third basis of reference for
sorting.
FORMATTING DATA IN CALC
To access the options to format
a cell, select the appropriate cell or
cells, right-click on it, and select
Format Cells.
All of the format options are
discussed below.
A.
Numbers
On the Numbers tab, the
behavior of the data in the cell
can be controlled. Data types
in the Category list can be
applied, and decimal places
and leading zeros can be
controlled.
B.
Font
The font for the cell can be chosen
on the Font tab. The display on the bottom
shows a preview of the cell.
The Font Effects tab offers more font
options.
Format Cells > Font
1.
Wrapping text
Text in cells can be set to wrap
at the end of the cell. This option
can be set by right-clicking on a cell
and selecting Format Cells. Click on
the Alignment tab. selecting this
checkbox will cause a line break to
appear when the text gets to the
end of the cell.
Borders
On the Borders tab, you can set
the borders for the cell, along with a
shadow.
D.
Background
On the Background tab, you can
choose the background color for a cell.
16
E.
Cell Protection
The Cell Protection options
can be chosen here.
F.
Merge Cells
To combine or merge cells,
highlight the cells then go to:
Format menu > Merge Cells > Define/Remove
Format Cells > Cell
Protection
G.
Choosing Width will present a box that asks you to enter a number for
the column width. The number is usually the average number of
characters in the standard font size that will fit a column.
You can use the separators of the column headers and the width changer
mouse pointer to do the following:
17
change. Release the mouse button once you have achieved the column
width you desire.
H.
The row normally changes its height according to the font size of
its contents. But if you wish to adjust the row height further, the
procedures are very similar to changing the column width.
Inserting Objects
You can choose to insert graphics, objects, special characters, drawings
by following the general procedures in OpenOffice.
I.
Auto-Format
Calc has available auto-formats to choose from. Just highlight the cells to
format then go to Format > Auto Format and select from the ready-made
options.
J.
Conditional Formatting
Format > Conditional Formatting
This allows you to format certain cells without the need to manually
format individual cells. The available cell formats are listed in your Styles and
Formatting Catalog (accessed via Format > Styles and Formatting, or by
pressing F11).
For example, you would like to have all failing scores in a certain exam,
as soon as they are entered, to appear as Style Fail.
18
1.
You need to set this particular format in the Styles and Formatting
Catalog.
a. Right-click on the Catalog to add a new Style.
b.Give a name to the new style and set its format by going through each
of the tabs (e.g. setting the font to red, bold, and italics) in the Cell
Style dialog box.
c. Press OK to create the new Cell Style in the Style Catalog which can
then be accessed in the Conditional Formatting dialog box.
2.
Highlight the range of cells that you wish to conditionally format then
click the Format menu, then click the Conditional Formatting option.
a. A dialog box will appear as shown below.
b. You can have to at most three conditions for the same selected range.
XI.
Writing a Formula
19
text.
B.
A formula MUST begin with the equal sign (=) or else it will be treated as
C.
PEMDAS
P parenthesis
E exponent
M multiplication
D division
A addition
S subtraction
You have to follow this order when creating and evaluating formulas.
Follow the order given. Operations that are grouped must be evaluated first no
matter where they are in the equation.
D.
Copying Formulas
Calc allows you to copy a formula downwards or
sideways to create similar formulas for the other cells.
This can be done by highlighting the cell and by using
either the Edit menu (Copy-Paste), or the Auto-Fill
Handle (click and drag).
This would avoid unnecessary re-editing of cells if you need to change a
value or a set of values because everything else is linked to cells.
Relative referencing:
Calc adjusts the cell references as it copies formulas downwards or
sideways.
Absolute referencing:
Calc secures or locks a part of the formula to a certain cell reference
by using two dollar signs in the cell address one before the column
letter and another before the row number.
Note: If a formula that contains both relative references and absolute
references is copied, Calc will adjust all relative references but
will keep as is all absolute references.
XII. FUNCTIONS
Calc
20
In Calc
math
symbol
in Calc
>
>
>= or =>
<
<
<= or =<
<> or ><
Use
TRUE if all arguments are
TRUE. If one of the elements
Example
=AND(F5>=85;
G5 = Good)
21
AVERAGE
COUNT
COUNTIF
IF
MAX
MEDIAN
MIN
MOD
Function
Name
MODE
OR
PRODUCT
ROUND
SUM
22
Use
is FALSE, this function
returns the FALSE value.
Computes the average or
mean of a range
Counts how many numbers
are in the list of arguments.
Text entries are ignored.
Returns the number of
elements that meet with
certain criteria within a cell
range
Returns a value based on a
certain logical condition
Returns the maximum value
in a list of arguments
Returns the median of a set
of numbers. In a set
containing an uneven
number of values, the
median will be the number
in the middle of the set and
in a set containing an even
number of values. It will be
the mean of the two values
in the middle of the set.
Returns the minimum value
in a list of arguments
Returns the remainder after
a number is divided by a
divisor
Use
Returns the most common
value in a data set. If there
are several values with the
same frequency, it returns
the smallest value. An error
occurs when a value doesn't
appear twice.
Returns TRUE if at least one
argument is TRUE.I If all the
elements are FALSE, returns
the FALSE value.
Multiplies all the numbers
given as arguments and
returns the product.
Example
=AVERAGE(range)
=AVERAGE(elements)
=AVERAGE(B1:B6)
=AVERAGE(A1;B2:C3)
=COUNT(range)
=COUNT(A1:A10)
= COUNTIF(range;
condition)
=COUNTIF(F5:F35;
>=75)
=IF(condition;
Then value;
Otherwise value)
=MAX(range)
=MAX(F5:F35)
=MEDIAN(range)
=MEDIAN(F5:F35)
=MIN(range)
=MIN(F5:F35)
=MOD(dividend;
divisor)
=MOD(11;4) returns 3
=MODE(range)
=OR(condition1;
condition2; )
Example
=MODE(F5:F35)
=OR(G5 = good;
G5 = excellent)
=PRODUCT(range)
=PRODUCT(B3:B1)
=ROUND(value or cell
address;
number of digits)
=ROUND(12.567;2) will
give you 12.57
number of digits:
if positive number of
decimal places;
if negative number of
places to the left of
the decimal place
=SUM(range)
=ROUND(12.567;0) will
give you 13
=ROUND(12.567;-1)
will give you 10
=ROUND(A4;2)
=SUM(B3:B1)
Function
Name
Use
Example
in the range
combined
or nested
functions
=IF(AND(ROUND(F5;0)>
=85; OR(G5 = good;
G5 = excellent));
awardee; do better
next time)
Click into the cell that is immediately below the rows you want locked
and immediately to the right of the columns you want locked.
2.
3.
23
Using the split-screen technique, you can position the cell with the
number in one section and each of the cells with formulas in the other
sections. Then you can change the number in the cell and watch how it affects
each of the formulas.
C.
D.
24
1.
Move the mouse pointer into the vertical scroll bar, on the right-hand side
of the screen, and place it over the small button at the top with the black
triangle.
2.
Immediately above this button you will see a thick black line. Move the
mouse pointer over this line and it will turn into a line with two arrows.
3.
Hold down the left mouse button and a grey line will appear, running
across the page. Drag the mouse downwards and this line will follow.
4.
Release the mouse button and the screen will split into two views, each
with its own vertical scroll bar.
1.
Move the mouse pointer into the horizontal scroll bar at the bottom of
the screen and place it over the small button on the right with the black
triangle.
2.
Immediately to the right of this button you will see a thick black line.
Move the mouse pointer over this line and it will turn into a line with two
arrows.
3.
Hold down the left mouse button and a grey line will appear, running up
CICT - Human Capital Development Group
the page. Drag the mouse to the left and this line will follow.
4.
Release the mouse button and the screen will be split into two views each
with its own horizontal scroll bar.
Splitting the screen horizontally and vertically at the same time will give
four views, each with its own vertical and horizontal scroll bars.
E.
OR
on the standard
Selecting Insert Chart
Inserting a Chart
1.
25
Data Range: Should contain both the labels and the data. If the data
range is selected when the Auto Format is started, it will
automatically be inserted in the Range input field.
Row/Column as Label
First Row as Label: Uses the entries in the top row of the
selection as labels for the data range. This setting is useful if there
are several columns of data that need to be displayed in the same
chart.
26
3.
XY Chart
Adding Text
A title and labels for the axes can be added.
Adding text
4.
B.
Editing a chart
1.
27
2.
XV. PRINTING
OpenOffice.org Calc offers a very powerful and highly configurable printing
system. Many different details can be selected to print or not to print. The order the
sheets will print in can be specified, as well as what size they will be. Particular
rows or columns can be specified to print on all sheets and the print range can be
specified.
A.
Details
In Calc you can specify certain details to print or not to print. Some of
those details include:
Sheet grid
Charts
Header/Footer
Notes
2.
3.
B.
C.
Scale
Reduce/Enlarge printout (%) This option will scale all of the data in the
printout exactly the same either larger or smaller. For example, if a sheet
would normally print out as 4 pages, a scale of 50% would cause that
printout of four pages to print as one page.
Fit printout to x pages This option will define exactly how many pages
the printout will take up. However, this option will only reduce a
printout, it will not enlarge it. To enlarge a printout, the reduce/enlarge
option must be used.
Repeating Rows/Columns
Printing rows or columns on every page:
If a sheet will be printed on multiple pages, certain rows or columns can
be set up to repeat on each printed page. If the top two rows of the sheet
need to be printed on all pages, do the following:
1. Choose Format > Print Ranges > Edit.
2. The Edit Print Ranges dialog appears. Click the icon at the far right of the
Rows to repeat area. The dialog shrinks so that you can see more of the
sheet and thus be able to highlight the print range.
3. Select the first two rows of the sheet. To do this, click cell A1 and drag to
A2. In the shrunk dialog $1:$2 will appear. Rows 1 and 2 are now rows to
repeat.
Note:
4. Click the icon at the far right of the Rows to repeat dialog area. The dialog
is restored again.
5. Column A can also repeat. Click the icon at the far right of the Columns to
repeat area.
6. Click column A in the sheet (not in the column header).
7. Click the icon again at the far right of the Columns to repeat area.
29
D.
You can also edit defined print range by using Format > Print Ranges >
Edit.
E.
After defining a print range, more cells can be added to it. This allows
multiple, noncontiguous, areas of the same sheet to printed, while not
printing the whole sheet.
2.
Once you have defined a print range: Highlight the range of cells that
should be added to the print range.
3.
Choose Format > Print Ranges > Add. This will add the extra cells to the
print range. The page break lines will no longer show up on the screen.
Note:
F.
30
2.
After the print range is removed, the default page break lines will appear
on the screen
3.
Select:
CICT - Human Capital Development Group
Note:
3. Check the Print only selected sheets check box. Click OK.
31