Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 15

IF Function Excel Practice Exercises

Exercise 01 Display Status Text:


Order ID Date Time Customer Item Price
A001 19-Nov-22 2:22 PM Ross Pizza $6.99
A002 19-Nov-22 2:22 PM Ross Drinks $2.50
A003 19-Nov-22 2:22 PM Ross Pizza $8.99
A004 19-Nov-22 2:52 PM Joey Pizza $12.99
A005 19-Nov-22 3:22 PM Ross Burger $5.99
A006 19-Nov-22 3:22 PM Joey Sub Sandwich $5.99
A007 19-Nov-22 3:22 PM Joey Sub Sandwich $5.99
A008 19-Nov-22 3:23 PM Joey Sub Sandwich $5.99
A009 19-Nov-22 3:23 PM Joey Sub Sandwich $5.99
A010 19-Nov-22 3:35 PM Monica Hot Dog $7.99
A011 19-Nov-22 3:36 PM Monica Drinks $2.99
A012 19-Nov-22 3:45 PM Gunther Pizza $12.99
A013 19-Nov-22 3:45 PM Gunther Drinks $1.50
A014 19-Nov-22 3:55 PM Gunther Sub Sandwich $4.99
A015 19-Nov-22 3:57 PM Rachel Sub Sandwich $5.99
A016 19-Nov-22 3:57 PM Rachel Pizza $12.99
A017 19-Nov-22 3:57 PM Rachel Pizza $9.99
A018 19-Nov-22 3:57 PM Rachel Pizza $9.99
A019 19-Nov-22 3:57 PM Rachel Drinks $2.99
A020 19-Nov-22 4:25 PM Chandler Tea $1.99
A021 19-Nov-22 4:45 PM Phoebe Pizza $7.99
A022 19-Nov-22 4:45 PM Phoebe Burger $5.99
A023 19-Nov-22 4:47 PM Phoebe Drinks $2.99

Exercise 02 Calculate Tax Amount:


Order ID Date Time Customer Item Price
A001 19-Nov-22 2:22 PM Ross Pizza $6.99
A002 19-Nov-22 2:22 PM Ross Drinks $2.50
A003 19-Nov-22 2:22 PM Ross Pizza $8.99
A004 19-Nov-22 2:52 PM Joey Pizza $12.99
A005 19-Nov-22 3:22 PM Ross Burger $5.99
A006 19-Nov-22 3:22 PM Joey Sub Sandwich $5.99
A007 19-Nov-22 3:22 PM Joey Sub Sandwich $5.99
A008 19-Nov-22 3:23 PM Joey Sub Sandwich $5.99
A009 19-Nov-22 3:23 PM Joey Sub Sandwich $5.99
A010 19-Nov-22 3:35 PM Monica Hot Dog $7.99
A011 19-Nov-22 3:36 PM Monica Drinks $2.99
A012 19-Nov-22 3:45 PM Gunther Pizza $12.99
A013 19-Nov-22 3:45 PM Gunther Drinks $1.50
A014 19-Nov-22 3:55 PM Gunther Sub Sandwich $4.99
A015 19-Nov-22 3:57 PM Rachel Sub Sandwich $5.99
A016 19-Nov-22 3:57 PM Rachel Pizza $12.99
A017 19-Nov-22 3:57 PM Rachel Pizza $9.99
A018 19-Nov-22 3:57 PM Rachel Pizza $9.99
A019 19-Nov-22 3:57 PM Rachel Drinks $2.99
A020 19-Nov-22 4:25 PM Chandler Tea $1.99
A021 19-Nov-22 4:45 PM Phoebe Pizza $7.99
A022 19-Nov-22 4:45 PM Phoebe Burger $5.99
A023 19-Nov-22 4:47 PM Phoebe Drinks $2.99

Exercise 03 Show Value from a Lookup Table:


Order ID Date Time Customer Item Price
A001 19-Nov-22 2:22 PM Ross Pizza $6.99
A002 19-Nov-22 2:22 PM Ross Drinks $2.50
A003 19-Nov-22 2:22 PM Ross Pizza $8.99
A004 19-Nov-22 2:52 PM Joey Pizza $12.99
A005 19-Nov-22 3:22 PM Ross Burger $5.99
A006 19-Nov-22 3:22 PM Joey Sub Sandwich $5.99
A007 19-Nov-22 3:22 PM Joey Sub Sandwich $5.99
A008 19-Nov-22 3:23 PM Joey Sub Sandwich $5.99
A009 19-Nov-22 3:23 PM Joey Sub Sandwich $5.99
A010 19-Nov-22 3:35 PM Monica Hot Dog $7.99
A011 19-Nov-22 3:36 PM Monica Drinks $2.99
A012 19-Nov-22 3:45 PM Gunther Pizza $12.99
A013 19-Nov-22 3:45 PM Gunther Drinks $1.50
A014 19-Nov-22 3:55 PM Gunther Sub Sandwich $4.99
A015 19-Nov-22 3:57 PM Rachel Sub Sandwich $5.99
A016 19-Nov-22 3:57 PM Rachel Pizza $12.99
A017 19-Nov-22 3:57 PM Rachel Pizza $9.99
A018 19-Nov-22 3:57 PM Rachel Pizza $9.99
A019 19-Nov-22 3:57 PM Rachel Drinks $2.99
A020 19-Nov-22 4:25 PM Chandler Tea $1.99
A021 19-Nov-22 4:45 PM Phoebe Pizza $7.99
A022 19-Nov-22 4:45 PM Phoebe Burger $5.99
A023 19-Nov-22 4:47 PM Phoebe Drinks $2.99

Exercise 04 Find Sales Commission:


Number Month Sales Rep Sales Zone
1 January Ryan $1,046,700 South
2 January Jacob $680,006 North
3 January Anderson $727,370 South
4 January Emily $500,543 North
5 January Richard $1,004,356 East
6 February Kevin $1,168,017 West
7 February Rachel $545,785 East
8 February Jenna 755408 West
9 January Monica $1,100,283 West
10 January Chandler $1,132,846 East
11 January Phoebe $1,101,206 West
12 February Gordon $882,264 South
13 April Joey $1,059,305 South
14 March Johnson $841,687 North
15 March Kristen $634,195 South
16 March Patrick $626,240 East
17 February David $531,543 South
18 February Adam $888,762 West
19 February Bell $1,137,234 South
20 January Nathalia $1,039,741 North
Exercise 05 Find Student Grades:
Student Result Date Teacher Score Subject
Ross 7-Nov Arteus 91 Physics
Jim 7-Nov Arteus 89 Physics
Anderson 7-Nov Arteus 58 Physics
Heather 7-Nov Arteus 17 Physics
Richard 7-Nov Arteus 34 Physics
Jordan 7-Nov Arteus 74 Physics
Rachel 7-Nov Arteus 18 Physics
Jenna 7-Nov Arteus 37 Physics
Monica 7-Nov Arteus 79 Physics
Chandler 7-Nov Arteus 5 Physics
Phoebe 7-Nov Arteus 84 Physics
Gordon 7-Nov Arteus 58 Physics
Joey 7-Nov Arteus 86 Physics
Johnson 7-Nov Arteus 44 Physics
Kristen 7-Nov Arteus 36 Physics
Patrick 7-Nov Arteus 53 Physics
David 7-Nov Arteus 29 Physics
Adam 7-Nov Arteus 22 Physics
Bell 7-Nov Arteus 44 Physics
Nathalia 7-Nov Arteus 89 Physics
es

Exercise 01 Display Status Text: When the product is more than $5,
Status will be applied. Use the IF function to find the display “Including Tax
including tax column.
FALSE Exercise 02 Calculate Tax Amount: When the product is more than $
tax will be applied. Use the IF function to find the tax amount.
including tax Exercise 03 Show Value from a Lookup Table: A small pizza costs les
including tax medium one costs less than $10, and a large one costs more than $1
including tax
table, you will find the pizza size.
Exercise 04 Find Sales Commission: Your task is to calculate the sale
including tax based on the sales value. The commission for the sales value betwee
including tax $750,000 is 3%, $750,001 to $900,000 is 5%, more than $900,000 is
Exercise 05 Find Student Grades: You will need to find the letter gra
including tax problem. 90 or more is graded as A, 75 to 89 as A-, 60 to 74 as B, 45
including tax to 44 as D, and less than 33 as F.
including tax
FALSE
including tax
FALSE
FALSE
including tax
including tax
including tax
including tax
FALSE
FALSE
including tax
including tax
FALSE

Tax Amount
$0.699

$0.899
$1.299
$0.599
$0.599
$0.599
$0.599
$0.599
$0.799

$1.299

$0.599
$1.299
$0.999
$0.999

$0.799
$0.599

Pizza Size
small size
small size
medium size
large size
small size
small size
small size
small size
small size
medium size
small size
large size
small size
small size
small size
large size
medium size
medium size
small size
small size
medium size
small size
small size

Commission
10%
3%
3%
0%
10%
10%
0%
#N/A
10%
10%
10%
#N/A
10%
#N/A
3%
3%
0%
#N/A
10%
10%
Grade
A
A-
C
F
D
B
F
D
A-
F
A-
C
A-
D
D
C
F
F
D
A-
Exercise 01 Display Status Text: When the product is more than $5, then a 10% tax
will be applied. Use the IF function to find the display “Including Tax” in the Status
column.
Exercise 02 Calculate Tax Amount: When the product is more than $5, then a 10%
tax will be applied. Use the IF function to find the tax amount.
Exercise 03 Show Value from a Lookup Table: A small pizza costs less than $7, a
medium one costs less than $10, and a large one costs more than $10. Using this
table, you will find the pizza size.
Exercise 04 Find Sales Commission: Your task is to calculate the sales commission
based on the sales value. The commission for the sales value between $600,000 to
$750,000 is 3%, $750,001 to $900,000 is 5%, more than $900,000 is 7%.
Exercise 05 Find Student Grades: You will need to find the letter grades for this
problem. 90 or more is graded as A, 75 to 89 as A-, 60 to 74 as B, 45 to 59 as C, 33
to 44 as D, and less than 33 as F.
•Exercise 04 Find Sales Commission: Your task is to calculate the
sales commission based on the sales value. The commission for the
sales value between $600,000 to $750,000 is 3%, $750,001 to
$900,000 is 5%, more than $900,000 is 7%.

You might also like