Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Formulae
To get in to formula view press Ctrl +
A formula is a simple calculation in a spreadsheet. Formulae begin with an = sign
and consist of cell references and make use of (),+,-,*,/.
Formulae in Excel are automatically recalculated every time the input values are
changed.
C4 Input
B4 Input
Column
Letter
Simple
Formula
Row
Numbe
r
H9
Cell
Referen
Functions
Functions are used to perform complex calculations which refer to RANGES of cells.
All functions have the same form:
=FUNCTIONNAME(RANGE)
Some functions may contain more attributes, For example:
=ROUND(M6, 2)
To use most functions you must understand RANGES. A range is simply the START
and END cell reference of a group of cells. E.g. M6:M12 refers to all the cells starting
from M6 and ending at cell M12.
This is the
range I6:M6
Functions VLOOKUP
VLOOKUP is used to find a piece of data in a table and will return another piece of
related data from a column you specify.
In the example above, we know the Form group, and we a table of tutors stored
separately:
So we can LOOKUP the tutor by finding the form in this table and looking one
column to the right.
VLOOKUP take the form:
=VLOOKUP(What are you trying to find?, Where are you going to find it?, How
many columns across is the data you want back?, FALSE)
SUMIF
SUMIF will add up all the numbers in a given range IF they match a given criteria.
COUNTIF
COUNTIF will keep a tally of how many times a given criteria appears in a list.
In this example, we want to count how many times the text ABS appears in the
range I6:M6.
Note: All text must be in quotes
Nested Functions (using Round and Average in this example)
ROUNDED AVERAGE
=ROUND(AVERAGE(I6:M6),0)
A nested function is simply where on function is used inside another. In this
example we calculate the average and then the answer to this calculation is
rounded because it is inside a ROUND function.
ROUND simply rounds a number to a certain number of decimal places and takes
the form:
=ROUND(NUMBER, Amount of decimal places)
AVERAGE does exactly what it says find the average of a range of numbers.
IF
In the example above, the value in P6 (their total score) must be higher or the
same as the value in B3 (the score needed for a certificate). IF the value in P6 is
higher or the same, then the word Yes will appear in the cell. If the value in P6
is not higher or the same, then the word No will be displayed.
It is often a help to remember that you write an IF statement exactly as you
would say it in words:
If their test score is higher or the same as the pass mark, THEN say Yes,
OTHERWISE say No.
Note the key words IF, THEN, OTHERWISE.
NestedIF
Sometimes, we need to test more than one rule. The giveaway in the question is
the word AND.
The question here was A student is awarded a prize IF they have had a previous
certificate AND they require a certificate.
There are clearly two things to check here:
1. Do they require a certificate?
2. Did they have a previous certificate?
The way to answer these questions is to break it down (like above) in to
questions to be answered and then write an IF for each one. So
1. Do they require a certificate = IF(S6=Yes, , )
2. Did they have a previous certificate =IF(H6=Yes,
, )
, ), )
, ), No )
Finally, we fill in what happens if they Do require a certificate but did NOT get a
previous one:
= IF(S6=Yes, IF(H6=Yes, Yes , No ), No )
In word this is: IF they require a certificate, THEN IF they had a previous
certificate THEN yes they get a certificate, OTHERWISE no they dont. If they do
NOT require a certificate then NO they do not get a prize.