0% found this document useful (0 votes)
12 views12 pages

IF and VLOOKUP Lecture

notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views12 pages

IF and VLOOKUP Lecture

notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Logical test: Comparison between two values using logical operators

= 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".

Name District Employment Years Job Level


Linda East 2
Joe West 9
Mary East 3
Mark South 12
John South 6
Ted East 1
Bill North 4
If Sales less than $50,000, Commission = Sales * 3%
If Sales more than or equal to $50,000, Commission = Sales * 4%.
=IF(D4<50,000, D4*0.03, D4*0.04)

Salesperson Sales Commission


Jon $98,000
Mike $24,000
Arnold $39,000
Alvin $56,000
Wilbert $81,000
Francis $17,000
Steve $22,000
Create an IF function to calculate the total for each labor item in the charge sheet based on the following criteria:

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

Bob the Builder - Charge Sheet

Item Hours Rate Total


Removing old plaster 4 Standard
Brew time 0.5 Standard
Preparing walls 3 Standard
Preparing walls 1 Overtime
Plastering walls 7.5 Standard
Accidentally knocking off some new plaster 0.5 Overtime
Replastering bits knocked off 2 Overtime
Skimming 3 Standard
Brew time 0.5 Standard
Skimming 3 Standard
Clear up 2 Overtime
following criteria:

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

Code Discount Interest Rate


A 1% 5%
B 2.5% 10%
C 1.5% 15%
D 6% 20%

Student Course 1 Course 2 Course 3 Average Remark


Lucy 8 15 9 10.67
Estelle 4 15 16 11.67
Laurent 11 6 8 8.33
Paul 17 16 3 12.00
Léa 17 18 10 15.00
Murielle 6 5 13 8.00
Thierry 18 19 15 17.33

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

oding and press Enter. (Refer to image)


a, =Vlookup(B2, Coding, 2)

mula =Vlookup(B2, Coding, 3)

UP formula.

Page 3
Vlookup

Page 4
Sort

Homeroom # First Name Last Name T-Shirt SizPayment Method


220-B Malik Reynolds Small Cash
105 Melissa White Small Debit Card
220-B Windy Shaw Small Cash
105 Esther Yaron Small Check
220-A Brigid Ellison Small Cash
220-B Michael Lazar Small Cash
135 Anisa Naser Small Pending
220-A Christopher Peyton-Gomez Small Check
105 Christiana Chen Medium Cash
105 Sidney Kelly Medium Check
105 Nathan Albee Medium Check
110 Gabriel Del Toro Medium Cash
220-B Avery Kelly Medium Debit Card
135 James Panarello Medium Check
135 Chantal Weller Medium Cash
220-A Chevonne Means Medium Money Order
110 Matt Benson Medium Money Order
220-B Samantha Bell Medium Check
110 Kris Ackerman Large Money Order
135 Jordan Weller Large Money Order
135 Alex Yuen Large Check
105 Derek MacDonald Large Cash
110 Regina Olivera Large Pending
220-A Juan Flores X-Large Pending
220-B Karla Nichols X-Large Money Order
220-B Tyrese Hanlon X-Large Debit Card
135 Lia Richards X-Large Cash

Page 5
Sort

nt Method

Page 6

You might also like