IF and VLOOKUP Lecture
IF and VLOOKUP Lecture
= Equal to
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
<> Not equal to
Create an If function to rate the players based on the following criteria:
IF FUNCTION FORMAT =IF(CONDITION, ACTION IF TRUE, ACTION IF FALSE)
If a player scores more than 15 points the Rating is “High score”
Otherwise the Rating is “Try harder”
=IFD(4>15, "High Score", "Try harder")
Copy the function down to rate all the players.
Name Animal Poohsticks score Matches Played Rating
Eeyore Mammal 14 3
Kanga Marsupial 17 3
Pooh Bear Mammal 15 2
Rabbit Rodent 16 3
Christopher Robin Mammal 17 5
Roo Marsupial 12 2
Wol Bird 15 3
Piglet Mammal 17 5
Tigger Mammal 18 5
In cell E4, find out the Job Level for each employee.
If the Employment Years is more than or equal to 5 years, then the
Job Level is "Senior".
Else, if it is less than 5 years, then Job Level is "Junior".
If the Rate is Standard the Total is equal to Hours multiplied by the Standard Rate
Otherwise the Total is equal to Hours multiplied by the Overtime Rate
Rates
Standard Overtime
£50.00 £75.00
Vlookup
Model Code Discount Interest
Honda CBR6000RR D
Honda CB1300 C
Honda VFR800 D
Kawasaki Z1000 C
Kawasaki ZX6R C
Suzuki SU6505 B
Suzuki RU125K3 A
Yamaha YZFR1 D
Yamaha YZFRE B
Average Remark
0 Fail
10 Pass
12 Good
14 Very Good
16 Excellent
Page 1
Vlookup
Instructions:
Motorcycle Coding
1. Name your data range. Select A12:D16. On the name box, type Coding and press Enter. (
2. For column C, lookup the discount for each model. Use the formula, =Vlookup(B2, Coding,
3. Copy the formula to fill in the rest of column C.
4. For column D, lookup the interest rate for each model. Use the formula =Vlookup(B2, Codi
5. Copy the formula to fill in the rest of column D.
Student Grades
Display the remarks for each of the students' grades using a VLOOKUP formula.
Page 2
Vlookup
UP formula.
Page 3
Vlookup
Page 4
Sort
Page 5
Sort
nt Method
Page 6