
- •Introduction 2
- •Introducing Ms. Formula 10
- •Introduction Calc is a spread sheet -- what are those?
- •Open Sesame How to open a document
- •Save Me How to open a document
- •Close the Gates How to close a document
- •Introducing Ms. Formula An oversized calculator
- •Our first, real formula...
- •Average Joe The second formula
- •The time is now How to let Calc give you time
- •Extracting a given number of characters from a cells, counting from left
- •Extracting a given number of characters from a cells, counting from right
- •Extracting a given number characters, counting from the point you specify
- •How to create and use random numbers
- •How to look up values in a grid
- •How to round numbers
- •How to cut off decimals in an elegant way
- •How to sum only lines meeting your criteria
- •Vlookup(a1;b1:d100;3;0)
- •Vlookup(a1;b1:d100;3;0)
- •How to count characters in a cell or string
- •Formatting of text and cells How to change the appearance of the spreadsheet easily
- •DataPilot How to manipulate huge amounts of data easily
- •Charts How to create simple charts
Our first, real formula...
The
sum formula will be our first, real formula! This is one of the
definitively most widely used formulas.
The formula is
built like this: =sum()
I
guess the point of the formula is quite obvious, to "sum"
something... To be more specific, to sum any number of numbers. With
the sum formula you can enter the numbers to sum or you can refer to
cells in which the numbers are. We’ll excamplify the latter
now.
OK, let’s jump right into it! Make a list of
numbers like this:
Now
we’ll try to sum these numbers, enter the formula as
following:
The
"="
is very important, this tells OpenOffice that this is a formula. The
word sum is
important because it tells Calc what to do with the numbers. The
paranthesis with the cell references are used to show Calc which
numbers to do something with.
Now, here’s a really cool
trick; start entering the forumula =sum( and
nothing else! Now click on the topmost cell that contains the
numbers, and hold the mouse button down while you drag down until you
have marked the entire area you want to evaluate. Enter ),
the ending paranthesis.
What happened now? Calc actually
entered the cell adresses for you!
When you hit [Enter],
your numbers will be summed, like this:
Now,
try changing the uppmost value. Do that by clicking once on the cell,
and start typing the number you want entered:
Now
you’ll see that Calc automatically updates the sum to reflect the
changes:
OK,
delete the sum formula by selecting the cell, hit
the [Delete] button,
and finally [Enter]. Re-enter the same formula as before:
When
you hit [Enter],
you get the sum to the right of the area. This shows that you can
place the sum wherever you want, which you will experience sooner or
later is invaluable!
Now,
try to enter a new number below the number in cell A5,
like below:
What
happened with the sum formula? Nothing! Why? Because we didn’t
allow the formula to include any new number. Go to the cell which
contains the formula, press [F2]
to enter the edit mode. The cells inclued in the formula will be
bordered to show which area is included in the formula. At the bottom
right of the formula you’ll see a handle, which you now should
click and hold, and drag down, so that you include also the new
number you entered:
Hit
[Enter], and see that the formula now includes the last number you
entered.
Again,
go to the the formula and hit [F2].
Change A6 to A1000:
Now,
try to enter new numbers below the others, and see what happens...
You are now able to enter new numbers without having to update the
formula each time! Well, until you’ve got 1000 numbers anyway... If
you expect to reach that many numbers, you can increas the number
from A1000 to A10000 e.g.
But try it as you’ve edited now:
NB:
The dark marking is done to examplify new numbers.
Average Joe The second formula
Now,
we could of
course turn the notch up a bit, now that we know how formulas work,
and go to a harder formula -- but we won't. We'll do a similar
formula to =sum(),
which is =average().
This
formula works in exactly the
same manner as =sum() --
it is built the same way, has the same criterions and parameters. The
only difference in these two formulas, is what the outcome is. You
now know that =sum() give
you the sum of any number of, eh, numbers. If you can guess what
the =average() formula
does, please mail
here, and receive a brand
new car as a prize... Yes, it gives you the average of any number of,
eh, numbers!
This is very typical for Calc, in that
similar formulas are also very similar to use. This makes it very
much easier to learn new formulas -- you only have to learn the new
formula name, and use the syntax (= the way that the formula want its
input formated) from the similar formula that you already know.
Why
don't we just use the same figures as last time? Like this:
Now,
type =average( and
remember not to
complete the parenthesis:
Click
and drag from the cell A1 to
cell A5,
like below:
If
you now press [enter] to
finnish the editing of the formula. Pardon? You on the back, speak
up, please! Did I forget to enter the final parenthesis? Hm, yes,
you're right. But did we get an error? Nope, Calc guessed that we had
finished editing the formula and actually completed the
formula for us! If you happened to notice my "error" and
put the end parenthesis yourself, you ended up with exactly the same
result.
Please see
the lesson for =sum() for
further details on the =average() formula,
as they are almost identical in almost every aspect.