Relative, Absolute, & Mixed References
Relative, Absolute, & Mixed References
=IF(B2>=70,”Pass”,”Fail”)
IF() Function
Form
=IF(condition,
value-for-TRUE-case,
value-for-FALSE-case)
Example
Assume: B2 contains semester average
Then, in C2, we can have:
=IF(B2>=70, “Pass”, “Fail”)
VLOOKUP() Function
Suppose letter grades for exam scores are
assigned as follows:
A – 90 or above
B – 80 or above, but less than 90
C – 70 or above, but less than 80
D – 60 or above, but less than 70
F – less than 60
Use VLOOKUP() function to assigning letter
grade to a score, buy looking up a table.
Grade Table Lookup
A B C D E F G H
1 Name Exam Grade
2 Adams 87 B
3 Benson 92 A
4 Carson 68 D
5 Danson 78 C
6 Criteria
7 0 F
8 60 D
9 70 C
10 80 B
11 90 A
VLOOKUP()
Format
=VLOOKUP( Value to look up,
The range of the table,
The column number containing
the grade)
For example,
In the preceding case
=VLOOKUP(B2, $G$7:$H$11,2)
With VLOOKUP(),
Remember…
In the VLOOKUP(), the 2nd argument, the
range for the lookup table, should be in
absolute address.
In the lookup table, values to be looked
up should be in ascending order (from
small to larger).
Tax Table Lookup
A B C F G H
1 Name Income Tax Rate
2 Adams 18000 0%
3 Benson 85000 15%
4 Carson 28000 10%
5 Danson 31000 15%
6 Erickson 125000 ? Tax Rate
7 0 0%
8 20,000 10%
9 50,000 15%
10 100,000 20%
11 200,000 30%
Your Turn