4 - 2 Decisions and Functions
4 - 2 Decisions and Functions
FUNCTIONS
Module 4.2
CO
IUMIF UP
UN
TI
S OFK
F DECISIONS AND
V L O
FUNCTIONS
Module 4.2
Content
3
CO
I IF
U
N
TI
M
F
FSU
VLO
O KUP
Calculations based on a
4 decision or test
CO
I IF
U
N
TI
M
F
FSU
COUNTIF and SUMIF functions
5
7
IF function
8
IF(D2>800
If the value is greater than 800, the
TRUE “Gold”
word Gold will be displayed,
otherwise the Value_if_false part is
FALSE executed.
CO
I IF
U
N
TI
M
F
FSU
Activity 2
12
TryNestedIF
ABC_printing
Overtime
Marks
CO
I IF
U
N
TI
M
F
FSU
The VLOOKUP function
13
K U P
VL OO
Looking up a specific value
14
2nd column
Activity 3
15
CostsCourses
K U P
VL OO
Activity 4
16
BooksOutstanding
OnlineCourses
Increase_Stationer
y
StudyOppBooks
K U P
VL OO
Looking up a value in an interval
17
The following table To do the Only the minimum values of
shows how the conversion with each interval are stored in the
conversion must be the help of a lookup table in Excel.
done. VLOOKUP, the A B
intervals must first 1 Marks Symbol
Marks Symbol be sorted from 2 0 H
smallest to largest. 3 10 G
90-100 A+ Marks Symbol 4 30 FF
80-89 A 0-9 H 5 34 F
70-79 B 10-29 G 6 40 E
60-69 C 30-33 FF 7 50 D
50-59 D 34-39 F 8 60 C
40-49 E 40-49 E 9 70 B
34-39 F 50-59 D 10 80 A
30-33 FF 60-69 C
11 90 A+
10-29 G 70-79 B
0-9 H 80-89 A
90-100 A+
When intervals are used, TRUE must be the last argument in the VLOOKUP
Activity 5
18
SchoolMarks
Medals
Bonuses_Gifts
K U P
VL OO
Test and improve your
19 knowledge and skills
CO
IUMIF UP
UN
TI
S O K
F
V L O
Summary of module
20
The IF statement
• The nested IF statement = an IF statement within an IF
statement.
• When you use a nested IF statement the conditions must be
entered in the correct order. Begin with the largest, e.g.
= IF(B2>=80,”A”,IF(B2>=70,”B”,IF(B2>=60,”C”,”D”)))
• In a nested IF statement make sure that the number of left
and right-hand brackets agree. Check that every IF
function has a closing bracket at the end.
Summary of module
23
CO
IUMIF UP
UN
TI
S O K
F
V L O
Practical module activity
25
Awards
FundRaising
Swimming
ReadingCompetition
CO
IUMIF UP
UN
TI
S O K
F
V L O