FIRST TIME
USER CALC
This tutorial
donated by Wayne Tschirhart
Table of Contents
Click
on any of the below blue underlined words to go directly to the
section of the tutorial. Use your browser arrow to get back to
this index
Introduction
Welcome to OpenOffice.org Calc. Calc is a
spreadsheet program like Excel, Lotus 1-2-3 or Quattro. The purpose
of this tutorial is to teach basic spreadsheet skills to someone who
has never used spreadsheet software. Intermediate and advanced
topics will be covered in other tutorials.
This tutorial assumes that you already have basic
computer skills. If not, you should do the "No Computer
Experience" tutorial. You will find the tutorial at www.tutorialsforopenoffice.org The path is:
Home Page > Standard Tutorials > Writer > No Computer
Experience
What is a
Spreadsheet?
The term
spreadsheet was derived from a large piece of paper
that accountants used for business finances. The accountant would
spread information like costs, payments, taxes,
income, etc out on a single sheet to get a complete
financial overview. Early computerized spreadsheets were almost
exclusively used by businesses for financial record keeping. Today,
spreadsheet programs like Lotus 1-2-3, Excel Quattro and Calc are
used in almost every profession to calculate, graph, analyze and
store information.
What are Spreadsheets
used for?
A spreadsheet is,
more or less, a over-sized calculator. People use spreadsheets for
tracking personal investments, budgeting, invoices, inventory
tracking, statistical analysis, numerical modeling, etc.
Getting
Started
Start OpenOffice.org and click
File
> New >
Spreadsheet.
Take a moment to look the screen over. You should see four
toolbars at the top of the screen and
one toolbar along the left
side of the screen. If you don't see four:
-
Click View >
Toolbars
-
Make sure the first three
items are checked
The topmost toolbar
is the standard Graphical User Interface (GUI) Menu Bar that gives you
access to all of the commands in Calc.
Immediately below the
Menu Bar
you'll find the Function Bar.
The Function Bar
contains icons (pictures) to provide quick access to commands like
New, Open,
Print, Copy,
Paste, etc. There is also a
drop-down menu
that let's you open previously-used documents quickly. If you place
your mouse cursor over any of the elements of a toolbar, the tooltip tells you what command
the icon represents. If you aren't seeing the tooltips, then click
Help > Tips.
The
Object Bar is located below the Function Bar. The
Object
Bar icons and drop-down menus are used to
select a font, font color, alignments, number formats, border
options and background colors.
Below the Object Bar
is the Formula Bar. The Formula Bar
contains the Sheet Area drop-down menu
and a long white box called the Input
Line.
The toolbar on the left is the Main toolbar. The Main toolbar contains a mixed batch of
commands. Use the tooltips to see what they are for.
The rest of the window
contains the worksheet. The
worksheet is divided into rows and columns. In Calc, rows are
numbered from 1 to 32000. Columns are labeled with letters from A to
IV. Scroll bars on the right
and bottom are used to move around the worksheet.
If you look along the
bottom left edge of the worksheet you will see three tabs labeled
Sheet1, Sheet2 and Sheet3. These are other
worksheets. A workbook contains multiple worksheets.
Now that you know where everything is located, let's
begin.
Entering
Data
At first, all the blank space is a bit intimidating, but that
will soon pass. The rectangles you see are called cells. A cell is the
fundamental element of a worksheet. This is where the action takes
place. Every cell has an address that is determined by the letter
of the column and the number of the row that the cell is in.
Addresses are written in the form A2, B16...
Click on a cell on your screen. Notice the black box
and the darker gray shading on the column and row labels. The black
box identifies the active
cell, or the one that will receive whatever you
type. A cell can contain text, numbers or formulas.
Let's enter something into cell
A1:
-
Click on the cell at the very top
left
-
Notice the gray highlighted
area. The A and the 1 are highlighted
-
Type Hello World and press
Enter
-
The active cell is now A2
-
Click on A1 again
-
Press the Delete key
-
Check the Delete all box and click
OK (Make a note of the
delete options)
When you type
something in a cell and press Enter, Tab, click
the Left Mouse Button
(LMB) or use one of the arrow
keys, whatever you typed is entered into that cell.
Selecting cells
There are many ways
to select cells in a worksheet. The primary ones are listed
below:
-
Click a single
cell with the LMB
-
Click the
LMB and drag the cursor over many cells (Row, column or block)
-
Click on a column
label to select a column. (Click on the gray
A column label)
-
Click on a row
label to select a row. (Click on the gray
1 row label)
-
Click on the gray
box above row label 1 and left of the column label A
(This selects all cells in the
worksheet)
Using Formulas
Using Formulas
Calculations are performed with formulas. Formula
is another word for equation. To enter a formula:
-
Click on A1 to make it
the active cell
-
Type 12.5 and press
Enter
-
Type
23 and press Enter (A2 is the active cell)
-
Type
1000 and press Enter
(A3 is the active
cell)
-
Type =
(A4 is the active
cell)
-
Click on A1
-
Type +
-
Click on A2
-
Type +
-
Click on A3
-
Press Enter (Answer: 1035.5)
You just entered a formula by
typing it into the cell; however, there will be
times when this is not possible because of the length of the
formula. Try entering the formula this way:
-
Make A4 the active
cell
-
Press Delete
(Make sure the Delete all box
is checked)
-
Press OK
-
Click on the Input
Line (The white box above the column
titles.)
-
Type
=A1+A2+A3
-
Click on the green check
mark
The formula you just used is ok
for adding three cells, but what about adding 200 cells?! Would you
like to try? That's where functions come in. Functions
are computer routines, or mini programs, that simplify operations.
Let's try one:
-
Click on A4
-
Type =SUM(
-
Click on A1 and drag
down to cell A3 (hold the LMB
down)
-
Type ) and press
Enter
An even easier way of using the
SUM function is:
-
Click on
A4
-
Click on the Σ just left of the Input
Line (The mathematics symbol for
sum.)
-
Click the green check
mark
The Σ button will automatically use
all of the cells above the active cell.
The SUM function is
probably the most-used function in spreadsheets. The A1:A3 in
the parenthesis is called a cell
range. It is shorthand for "from A1 to A3".
There are hundreds of
functions available to help you. Take a look:
-
Click Help > Contents (The on-line help window opens)
-
Click the Contents tab
-
Double-click the Spreadsheets book
icon
-
Double-click the Functions Types and
Operators book icon
-
Double-click Mathematical
Functions
-
Click on the SUM link in the list at
top
You
are looking at a detailed explanation of the
SUM function. When you get a chance, browse through the
different types of functions listed on the left. The on-line help is
a great resource for learning the functions available in Calc. Close
the help window when you're done.
Spreadsheet Math
You may be asking, "What if I
want to subtract or multiply?" That's a good question, so let's
briefly look at mathematical operators. The table below shows the
common math operations and their spreadsheet equivalents.
Addition 5 + 5 =5+5
Subtraction 10 - 5
=10-5
Multiplication 5 x 5 =5*5
Division 10I2 =10/2
Exponentiation 102
=10^2
Computers are not very bright,
so you have to watch how you type in formulas. The order of
operations is law. The order is: exponentiation, multiplication,
division, addition, then subtraction. Let's pretend we want to
perform a calculation using the equation:
x
+ 10
-------
y
+ 10
and suppose we entered it into
Calc as follows:
-
Select the A column.
(Click on the letter A)
-
Press Delete
(Make sure the Delete all box
is checked)
-
Press OK
-
Click on A1
-
Type 20 in A1
and press Tab
-
Type 10 in B1
and press Tab
-
Type the formula =A1+10/B1
+ 20 (You should be in cell
C1)
-
Press Enter
(Answer will be
41)
The answer should be
1, using x = 20 and y = 10, but we
got 41 for an answer! Why? Because Calc interpreted the
equation as:
20 + (10/20) +
20
which equals 40.5 and
rounds up to 41. If you use formulas with equations in the
numerator and denominator, you need to use parenthesis () to
force the spreadsheet to calculate them properly. Make the following
changes:
-
Click on C1
-
Click on the Input
Line
-
Edit the formula to read
=(A1+10)/(B1+20)
-
Click the green check
mark (The answer is now
1)
There, now we have the correct
answer.
A Simple
Application
Now to something a bit more
challenging. Almost everyone has seen a check register and is
familiar with its components: check number, payee,
item description, withdrawal, deposit
and balance. We're going to make one. Start by
labeling the data columns to define where the data goes:
-
Select all cells as described
in Step 5 of "Selecting Cells".
-
Press
Delete
-
Click OK
-
Make A1 the active
cell
-
Type Check No.
-
Press the Tab key and
type Paid To (active cell is
B2)
-
Press Tab and type
Description (active cell is
C2)
-
Press Tab and type
Deposit (active cell is
D2)
-
Press Tab and type
Withdrawal (active cell is
E2)
-
Press Tab and type
Balance (active cell is
F2)
-
Press
Enter
Hmmm, something is missing. I
guess it would be nice to know when a transaction took place, so we
need a date column. We could add it after the balance column, but
that would be lazy. The date is usually the first item, so add a
column:
-
Select column A. (Click on the A. The column turns
black.)
-
Click Insert >
Columns (Everything will shift to
the right.)
-
Select A1
-
Type Date and press
Enter
We have all the columns we need
for our check register, but it isn't very pretty. Lets make the data
labels more attractive:
-
Select A1:G1 (Select all data labels)
-
Go to the Object
Bar (That's where you change the
font)
-
Hold the mouse cursor over
the icons in the toolbar until you find the Align Center
Horizontally button, then click it
-
While the cells are still
selected, move to the left and click the Bold (B) button,
then move over to the Font Color button and pick Light
Blue
Of course, you can also format
columns and text the long way:
-
Click Format
Cells...
-
Click on the Alignment
tab to do change centering and orientation
-
Click on the Font tab
to change the font
-
Click on the Font
Effects tab to change color, etc.
That's much better! You can
select any color, but I like blue. Data labels are a
good spreadsheet practice. Use labels that clearly
describe the data in the column below. Be creative and use color,
different fonts, bold, etc., but make them stand out.
Helpful
Hint: If you are
using data that has units like inches, feet, square miles, etc.,
enter the unit in the cell below the label. There have been many
times when I've opened a spreadsheet and the units weren't labeled.
This makes the data meaningless unless you can figure it out what
you're dealing with, which takes time and energy you may not
have.
Now enter an initial balance:
-
Select A2
-
Enter a date. (Enter the date in the mm/dd/yy format. Example:
02/12/05)
-
Select G2
-
Enter
5000
The Deposit,
Withdrawal and Balance columns will all contain values
that represent currency, so we let's format them
accordingly:
-
Select column
E
-
Hold down the Shift
key
-
Select column G (All three columns turn black)
-
Click Format >
Cells... (The Format Cells
dialog box appears)
-
Click the Numbers
tab
-
In the Category
box, click Currency (Left
side)
-
In the Options
section, make sure that Decimal places is set to
2, Leading zeros is set to 1, and both
check boxes are checked.
-
Click
OK
Those three columns will show
the $ when they have numbers in them. That's how you format
cells. We can start entering checks now:
-
Enter a date in the
Date column (A3)
-
Enter a check number of
205 (B3)
-
Enter Energetic
Electric in the Paid To column (C3)
-
Enter Monthly electricity
bill in the Description column (D3)
-
Enter 250 in the
Withdrawal column (F3)
Look at the text you entered in
the Paid To and Description columns. One is cut off
and the other extends into the Deposit column. Let's fix it
so we can read them:
-
Select column
C
-
Click Format >
Column > Optimal Width... (use the default value)
-
Click OK
-
Repeat steps 1-3 for column D
You can also resize cells
manually:
-
Place your cursor over the
column dividing line between the letters C and
D
-
When you see the symbol with
two arrows, click the LMB and drag.
-
Size the column like you want
it and release the LMB
Now the fun starts! The current
balance is defined as the previous balance plus any deposits, minus
any withdrawals. In equation form it looks like:
Current Balance
= Previous Balance + Deposits Withdrawals
To enter this into the
spreadsheet:
-
Select G3
-
Type =
-
Click on G2
-
Type +
-
Click on E3
-
Type -
-
Click on F3
-
Press
Enter
Tada! You have everything you
need to use your check register! Enter another check on row 4. For
this check, put a withdrawal amount bigger than your balance. (Ladies & Gentlemen - Don't try this at
home!)
-
Enter a date (A4)
-
Enter a check number of
206 (B4)
-
Enter Fast Cars, Inc
in the Paid To column (C4)
-
Enter New Car in the
Description column (D4)
-
Enter 7000 in the
Withdrawal column (F4)
Now we need to copy the formula
in the 3rd row to the 4th row:
-
Select G3
-
Look at the black frame
around the cell and notice the little black box on the bottom
right corner
-
Put the cursor over the box.
When you see a +, click on it and drag it down to cell
G4
You now have a negative balance
and the font turned red. Dragging the little black box (I call it
drag-copy) is the shortcut for copying the contents of
one cell to a neighboring cell. You can also use the Copy and
Paste commands in the menu. The number turned red because the
currency format was set up that way. Cool, huh?
When you copy formulas, the
cells referenced in the formula will change. Activate cell G3
and look at the Input Line. You will see the formula for that
cell. Click G4 and you'll see the cell addresses change.
That's because spreadsheet programs use relative addressing. In other
words, the program doesn't store the actual cell address; rather, it
stores something like, "the active cell = one cell up + two
cells to the left one cell to the left." You need to keep
that in mind when you copy formulas.
Now, pretend we forgot to enter
an earlier deposit. In that case we would:
-
Select A4:G4 (or click row label 4)
-
Click Insert >
Cells... (A dialog box
opens)
-
Select Shift cells
down
-
Click OK
-
Enter an appropriate
date
-
Tab over to the
Description column
-
Enter Paycheck and
press Tab
-
Enter 20000 for an
amount (Wouldn't that be
great!)
-
Drag-copy the formula from
G3 down to G5
Note: If you tried to
insert the cells on row 3 and drag-copied up, you will find that the
technique doesn't work correctly. To remedy the problem, edit the
formula in G3 and replace G1 with G2, then
drag-copy G3 to G5.
Whew! At least we're out of
debt now! I encourage you to enter more checks and practice copying
formulas to get more comfortable with the information presented so
far.
Before we continue, change the
name of Sheet1 and save your work:
-
Click Format >
Sheet... > Rename...
-
Name it
Checking
-
Click File >
Save As...
-
Type a name like
CalcIntro in the File name box and click
Save
Borders and Shading
Before we move on to charts,
let's look at borders and shading. Borders can be used to separate
data, mark certain cells or anything else you want. They are
typically used to draw attention or separate. Add some borders to
the check register worksheet:
-
Select A1
-
Hold down the Shift
key
-
Click on cell G25
(Another way to select a block of
cells)
-
Click Format >
Cells...
-
Click on the Borders
tab
-
Find the User-defined
box
-
See the four gray
boxes?
-
Click to the left of
the top left box (Toward the middle of
the box side)
-
Click between the
top two boxes (Toward the middle of the
box sides)
-
Click to the right of
the top right box (You should have 3
vertical lines)
-
Click OK
-
Select
A1:G1
-
Find the Borders icon
on the Object toolbar
-
Click it
-
Click on the second
box from the left on the second row
-
Click Format >
Cells...
-
Click the Background
tab
-
Click on Gray
20% (Use tool tips to
find)
-
While you're there, click the
Borders tab
-
Click on the bottom
horizontal line in the User-defined box
-
Click the 2.5 pt line
weight in the Style box
-
Click
OK
As you can see, adding borders
and shading is pretty straight-forward. A lot depends on individual
tastes, so play around with the settings and see what you come up
with!
Charts
I could do a whole tutorial on
charts alone, but I'm only going to give you the basics to get you
started. Charting data is really an art form. You have to have an
intimate knowledge of the data, the best way to visualize the data
and a sense of what people respond to.
The first thing you need is
data that shows some kind relationship. Examples include
mathematical functions, stock market prices over time, rainfall over
time, statistical divisions of a population, or divisions of an
income that make up a budget. Since math is something that anyone
can duplicate, we'll use the sine function:
-
Go to the bottom of your
workbook and click on Sheet2.
-
Type X in
A1
-
Type Sine(X) in
B1
-
Enter 0 in A2
(That's a zero)
-
Select A2
-
Drag-copy it down until you
see the tool tip number read 90 (You
should see the numbers auto-increment)
-
Go back to the top and Select
B2 (Ctrl-up arrow is a quick way to
move up)
-
Enter
=SIN(A2)
-
Drag-copy the formula all the
way down to the 90 in the A
column.
Don't worry if you don't know
what the numbers mean; we aren't concerned with that.
The order of the columns
matters. Spreadsheet programs typically assume that the column on
the left is the variable that is plotted on the horizontal (x) axis
of the chart, and the column on the right is the variable that is
plotted on the vertical (y) axis. With that in mind:
-
Select columns A and
B
-
Click Insert >
Chart...
-
Select -New Sheet-
from the drop-down box labeled Chart results in
worksheet
-
Click
Next>>>
-
Select XY Chart (Hold the cursor over the icons to find
it)
-
Click Next>>>
-
Select Lines Only
and check the X axis and Y axis
grid line boxes (Y may already be checked.
Don't uncheck it)
-
Click
Next>>>
-
Give the chart a title in the
box that has "Main Title" in it (Replace
text)
-
Click the X axis and
Y axis check boxes
-
Type X for X axis
title, and Sine(x) for Y axis title. (Replace existing text)
-
Click
Create
-
Look and the worksheet tabs
at the bottom
-
Click on the last tab. (Probably labeled Sheet4)
-
Use the little boxes on the
corners to resize the chart by clicking on them and dragging them
until you like the proportions.
Charts created by spreadsheet
programs are unappealing most of the time. You have to mess with the
format of the chart elements to make them look better.
The first thing I notice is a
jagged plot line. That is appropriate for some data, but the sine
function is a smooth function, so make the following
changes:
-
Double-click somewhere
on the chart if you see green boxes or no boxes
-
Click Format >
Chart Type...
-
Select Cubic Spline
from the Variants box at the bottom
-
Click
OK
That's better, but it could
still use some improvement. Try:
-
Click Format >
Chart Wall
-
Click the Area tab and
select None
-
Click OK
-
Place the cursor over the
data plot line and double-click (smooth
Purple line)
-
Click the Line
tab
-
Change the Color to
Sea Blue and set the Width to .02
-
Click OK
-
Select Format >
Grid > All Axis Grids...
-
Change the Color to
Gray 40% (You have to scroll down the
palette)
-
Click OK
-
The chart still seems busy.
Select Format > Axis > X Axis
-
Click the Scale
tab
-
Clear the Maximum
check box and replace 90 with 45
-
Click OK
-
Change the main title text to
Sine Function by double-clicking on it and editing
it
-
When you are done, click
somewhere else on the chart to accept the changes.
-
Click on a worksheet
cell
-
Rename the sheet Sine
Graph
-
Save your
work
Ahh, much better!
You just used most of the chart editing commands. The point to carry
away from this section is that you can change every aspect of the
chart in some fashion. To get good at it, you'll have to experiment
with the settings and develop your own style.
Printing
Printing is pretty
much the same as printing in any other software application;
however, there are settings that are unique to Calc.
I guess the best
place to start is the print preview, so:
-
Bring up the
Checking worksheet
-
Click
File > Page Preview
This view lets you
see what Calc is going to print. If you look on the left end of the
third toolbar you will see two book icons with arrows. These let you
view each page that would go to the printer.
-
Click Close
Preview
Look at the
worksheet. You should see lines that are darker than the rest. These
are the page breaks based on the current page settings.
Let's start with the
chart:
-
Bring up the
Sine Graph worksheet.
-
Click on the
chart
-
Push it up into
the upper left corner
-
Resize it to fit
the dark gray page break lines.
-
Click
File > Page Preview
You will see a
header and footer above and below the chart. The header shows the
name of the sheet. The footer shows the page number. All the pages
have them. Here's how you can turn them off or edit them:
-
Click Page
Format on the toolbar
-
Click the
Header tab
You can turn them
off by unchecking the Header checkbox. You can also format
the margins and spacing. To edit the header:
-
Click
Edit...
Headers and Footers
are broken into three sections. You can use one of the auto-format
buttons below the three boxes or type your own header.
-
Click
Cancel
-
Uncheck the
Header box
-
Look through the
other tabs
-
Close the dialog
box
The same procedures
apply to the footer, so I won't elaborate on that. The Sheet
tab gives you the capability to control the way Calc determines the
page order and what features to print or scale. The remaining tabs
are self explanatory.
Removing the header
and footer will change the chart size, so you may have to resize
it.
What if you don't
want to print the whole worksheet? I'm glad you asked! Calc gives
you the ability to define print ranges.
-
Bring up the
Checking worksheet
-
Select
A1:G25
-
Click
Format > Print Ranges >
Define
-
Open the Page
Preview again
Now you only have
one page. Unfortunately, there is not an equivalent for charts. The
only way you can print a chart only is:
-
Click
File > Print...
-
Click the
Pages radio button on the bottom left
-
Type in the page
number of the worksheet the chart is on.
Summary
Well, that wasn't
so bad, was it? There are many more features that will help you in
your spreadsheet work, so explore the menu and try them out! By
completing this tutorial, you have experienced, and hopefully
learned, the basic tasks to enable you to begin using spreadsheets.
We began with the layout of the screen; then worked through entering
data, using formulas and functions, creating charts, using basic
format tools on charts and worksheets, and printing spreadsheets and
charts. More advanced topics will be covered in future tutorials. I
hope you enjoyed it. Good Luck!
NOTE
TUTORIALS ARE IMPROVED BY INPUT FROM USERS.
WE SOLICIT YOUR CONSTRUCTIVE CRITICISM.
CLICK HERE TO E-MAIL
SUGGESTIONS AND COMMENTS
First_Time_User_Calc
February
2005