You are on page 1of 24

Excel Logical Functions Exercises

Task 01 Use of AND Function:


First Delivery Second Delivery
First Product Cost Second Product
Date Date
1-Mar-23 Laptop 2,479.94 ₼ 1-Mar-22 Mobile Phone
15-Mar-22 Laptop 1,732.99 ₼ 16-Mar-22 Laptop
17-Mar-22 Laptop 1,174.99 ₼ 18-Mar-22 Mobile Phone
19-Mar-22 Laptop 1,799.99 ₼ 21-Mar-22 Mobile Phone
22-Mar-22 Laptop 3,164.99 ₼ 23-Mar-22 Mobile Phone
25-Mar-22 Laptop 1,199.00 ₼ 26-Mar-22 Laptop
28-Mar-22 Mobile Phone 699.95 ₼ 29-Mar-22 Mobile Phone
29-Mar-22 Mobile Phone 949.00 ₼ 29-Mar-22 Fitness Tracker
2-Apr-22 Mobile Phone 429.00 ₼ 3-Apr-22 Fitness Tracker
5-Apr-22 Mobile Phone 1,525.00 ₼ 6-Apr-22 Smart Watch
11-Apr-22 Laptop 1,799.99 ₼ 13-Apr-22 Smart Watch
17-Apr-22 Mobile Phone 475.00 ₼ 18-Apr-22 Smart Watch
23-Apr-22 Mobile Phone 449.00 ₼ 24-Apr-22 Laptop
27-Apr-22 Fitness Tracker 149.95 ₼ 28-Apr-22 Laptop
4-May-22 Fitness Tracker 129.95 ₼ 6-May-22 Laptop
7-May-22 Smart Watch 399.00 ₼ 7-May-22 Laptop
13-May-22 Smart Watch 183.90 ₼ 14-May-22 Smart Watch
15-May-22 Smart Watch 299.00 ₼ 16-May-22 Tablet
17-May-22 Tablet 560.00 ₼ 19-May-22 Tablet
19-May-22 Tablet 565.00 ₼ 19-May-22 Smart Watch
ns Exercises

Cost
Delivery Delivered Laptop
Person Twice
699.95 ₼ Sam #VALUE!
3,164.99 ₼ Janet #VALUE!
Now, let’s state the exercise problem
429.00 ₼ Sam #VALUE! two items in a single slot. This single
1,525.00 ₼ Leonardo #VALUE! possible on the same date, then it is
will be two product deliveries. This is
599.00 ₼ Patrick #VALUE!
1,199.00 ₼ Heather #VALUE!
449.00 ₼ Janet #VALUE!
149.95 ₼ Daniel #VALUE!
129.95 ₼ Stewart #VALUE!
399.00 ₼ Sam #VALUE!
183.90 ₼ Daniel #VALUE!
299.00 ₼ Sam #VALUE!
2,479.94 ₼ Janet #VALUE!
Use of AND Function: The deliver
1,732.99 ₼ Patrick #VALUE! occurrences where two laptops d
1,174.99 ₼ Sam #VALUE! or false.
1,799.99 ₼ Leonardo #VALUE!
183.90 ₼ Patrick #VALUE!
565.00 ₼ Leonardo #VALUE!
560.00 ₼ Janet #VALUE!
299.00 ₼ Sam #VALUE!
tate the exercise problems. For a delivery person to be paid, they must deliver
n a single slot. This single slot means delivery in the same row. If delivery is not
the same date, then it is fulfilled at a later date. So on each row of the data, there
product deliveries. This is applicable for the first four tasks.

AND Function: The delivered products are given. Your task is to find the number of
nces where two laptops delivered in a single slot (same row). The output will be true
Task 02 Use of OR Function:
Second
First Delivery Date First Product Cost Delivery Second Product
Date
1-Mar-22 Laptop $2,479.94 1-Mar-22 Mobile Phone
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop
7-May-22 Smart Watch $399 7-May-22 Laptop
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch
15-May-22 Smart Watch $299 16-May-22 Tablet
17-May-22 Tablet $560 19-May-22 Tablet
19-May-22 Tablet $565 19-May-22 Smart Watch
Delivery
Cost
Person Laptop Delivered

$699.95 Sam
$3,164.99 Janet
$429 Sam
$1,525 Leonardo
$599 Patrick
$1,199.00 Heather
$449 Janet
$149.95 Daniel Use of OR Function: Find when
$129.95 Stewart
or false.
$399 Sam
$183.90 Daniel
$299 Sam
$2,479.94 Janet
$1,732.99 Patrick
$1,174.99 Sam
$1,799.99 Leonardo
$183.90 Patrick
$565 Leonardo
$560 Janet
$299 Sam
Function: Find when a laptop is delivered. Again, the output will be true
Task 03 Application of NOT Function:
Second
First Delivery Date First Product Cost Delivery Second Product
Date
1-Mar-22 Laptop 2,479.94 ₼ 1-Mar-22 Mobile Phone
15-Mar-22 Laptop 1,732.99 ₼ 16-Mar-22 Laptop
17-Mar-22 Laptop 1,174.99 ₼ 18-Mar-22 Mobile Phone
19-Mar-22 Laptop 1,799.99 ₼ 21-Mar-22 Mobile Phone
22-Mar-22 Laptop 3,164.99 ₼ 23-Mar-22 Mobile Phone
25-Mar-22 Laptop 1,199.00 ₼ 26-Mar-22 Laptop
28-Mar-22 Mobile Phone 699.95 ₼ 29-Mar-22 Mobile Phone
29-Mar-22 Mobile Phone 949.00 ₼ 29-Mar-22 Fitness Tracker
2-Apr-22 Mobile Phone 429.00 ₼ OT Fitness Tracker
5-Apr-22 Mobile Phone 1,525.00 ₼ 6-Apr-22 Smart Watch
11-Apr-22 Laptop 1,799.99 ₼ 13-Apr-22 Smart Watch
17-Apr-22 Mobile Phone 475.00 ₼ 18-Apr-22 Smart Watch
23-Apr-22 Mobile Phone 449.00 ₼ 24-Apr-22 Laptop
27-Apr-22 Fitness Tracker 149.95 ₼ 28-Apr-22 Laptop
4-May-22 Fitness Tracker 129.95 ₼ 6-May-22 Laptop
7-May-22 Smart Watch 399.00 ₼ 7-May-22 Laptop
13-May-22 Smart Watch 183.90 ₼ 14-May-22 Smart Watch
15-May-22 Smart Watch 299.00 ₼ 16-May-22 Tablet
17-May-22 Tablet 560.00 ₼ 19-May-22 Tablet
19-May-22 Tablet 565.00 ₼ 19-May-22 Smart Watch
Delivery
Cost
Person Same Day Delivered

699.95 ₼ Sam
3,164.99 ₼ Janet
429.00 ₼ Sam
1,525.00 ₼ Leonardo
599.00 ₼ Patrick
1,199.00 ₼ Heather
449.00 ₼ Janet
Application of NOT Function: Ch
149.95 ₼ Daniel the first delivery. The output will be
129.95 ₼ Stewart
399.00 ₼ Sam
183.90 ₼ Daniel
299.00 ₼ Sam
2,479.94 ₼ Janet
1,732.99 ₼ Patrick
1,174.99 ₼ Sam
1,799.99 ₼ Leonardo
183.90 ₼ Patrick
565.00 ₼ Leonardo
560.00 ₼ Janet
299.00 ₼ Sam
n of NOT Function: Check if the second delivery is on the same date as
very. The output will be true or false.
Task 04 Use of XOR Function:
Second
First Delivery
First Product Cost Delivery Second Product
Date
Date
1-Mar-22 Laptop $2,479.94 1-Mar-22 Mobile Phone
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop
7-May-22 Smart Watch $399 7-May-22 Laptop
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch
15-May-22 Smart Watch $299 16-May-22 Tablet
17-May-22 Tablet $560 19-May-22 Tablet
19-May-22 Tablet $565 19-May-22 Smart Watch
Cost
Delivery Only One Product
Person Cost <$2000
$699.95 Sam
$3,164.99 Janet
$429 Sam
$1,525 Leonardo
$599 Patrick
$1,199.00 Heather
$449 Janet Use of XOR Function: Return true
$149.95 Daniel $2,000. Again, the output will be tru
$129.95 Stewart
$399 Sam
$183.90 Daniel
$299 Sam
$2,479.94 Janet
$1,732.99 Patrick
$1,174.99 Sam
$1,799.99 Leonardo
$183.90 Patrick
$565 Leonardo
$560 Janet
$299 Sam
R Function: Return true if only one of the products’ cost is less than
in, the output will be true or false.
Task 05 Combination of AND, OR Function:

Estimated Delivery
Delivery Date First Product Cost Date Delivery Channel

1-Mar-22 Laptop 2,479.94 ₼ 1-Mar-22 Delivery Van


15-Mar-22 Laptop 1,732.99 ₼ 16-Mar-22 Bike
17-Mar-22 Laptop 1,174.99 ₼ 18-Mar-22 Delivery Van
19-Mar-22 Laptop 1,799.99 ₼ 21-Mar-22 Bike
22-Mar-22 Laptop 3,164.99 ₼ 23-Mar-22 Rented Car
25-Mar-22 Laptop 1,199.00 ₼ 26-Mar-22 Delivery Van
28-Mar-22 Mobile Phone 699.95 ₼ 29-Mar-22 Bike
29-Mar-22 Mobile Phone 949.00 ₼ 29-Mar-22 Bike
2-Apr-22 Mobile Phone 429.00 ₼ 3-Apr-22 Delivery Van
5-Apr-22 Mobile Phone 1,525.00 ₼ 6-Apr-22 Rented Car
11-Apr-22 Laptop 1,799.99 ₼ 13-Apr-22 Rented Car
17-Apr-22 Mobile Phone 475.00 ₼ 18-Apr-22 Bike
23-Apr-22 Mobile Phone 449.00 ₼ 24-Apr-22 Delivery Van
27-Apr-22 Fitness Tracker 149.95 ₼ 28-Apr-22 Bike
4-May-22 Fitness Tracker 129.95 ₼ 6-May-22 Delivery Van
7-May-22 Smart Watch 399.00 ₼ 7-May-22 Delivery Van
13-May-22 Smart Watch 183.90 ₼ 14-May-22 Bike
15-May-22 Smart Watch 299.00 ₼ 16-May-22 Rented Car
17-May-22 Tablet 560.00 ₼ 19-May-22 Bike
19-May-22 Tablet 565.00 ₼ 19-May-22 Delivery Van
Delivery Delivery Laptop or Mobile
Company Person Delivered by Astro

Astro Sam
Chiral Janet
Astro Sam
Chiral Leonardo
Umbrella Patrick
Chiral Heather
Astro Sam
Umbrella Daniel
Umbrella Stewart
Astro Sam
Combination of AND, OR Function
whenever a laptop or mobile phone
Chiral Daniel
Astro Sam
Chiral Janet
Astro Sam
Umbrella Patrick
Umbrella Jennie
Astro Sam
Chiral Leonardo
Chiral Janet
Chiral Heather
of AND, OR Function: In this exercise, your task is to return true
aptop or mobile phone is delivered by the “Astro” company.
Task 6 Combination of IF, AND, and OR Functions:
Estimated Delivery
Delivery Date First Product Cost Date Delivery Channel
1-Mar-22 Laptop $2,479.94 1-Mar-22 Delivery Van
15-Mar-22 Laptop $1,732.99 16-Mar-22 Bike
17-Mar-22 Laptop $1,174.99 18-Mar-22 Delivery Van
19-Mar-22 Laptop $1,799.99 21-Mar-22 Bike
22-Mar-22 Laptop $3,164.99 23-Mar-22 Rented Car
25-Mar-22 Laptop $1,199.00 26-Mar-22 Delivery Van
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Bike
29-Mar-22 Mobile Phone $949 29-Mar-22 Bike
2-Apr-22 Mobile Phone $429 3-Apr-22 Delivery Van
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Rented Car
11-Apr-22 Mobile Phone $475 13-Apr-22 Rented Car
17-Apr-22 Mobile Phone $449 18-Apr-22 Bike
23-Apr-22 Fitness Tracker $149.95 24-Apr-22 Delivery Van
27-Apr-22 Fitness Tracker $129.95 28-Apr-22 Bike
4-May-22 Smart Watch $399 6-May-22 Delivery Van
7-May-22 Laptop $1,799.99 7-May-22 Delivery Van
13-May-22 Smart Watch $183.90 14-May-22 Bike
15-May-22 Smart Watch $299 16-May-22 Rented Car
17-May-22 Tablet $560 19-May-22 Bike
19-May-22 Tablet $565 19-May-22 Delivery Van
Delivery Delivery
Company Person Eligible to Leave
Astro Rachel
Chiral Ross
Astro Joey
Chiral Chandler
Umbrella Monica
Chiral Phoebe
Astro Ben
Umbrella Adam Combination of IF, AND, and OR
Umbrella Rowan
the dataset. Now, an employee wil
Delivers a product costing more th
Astro Ellie Either same day delivery or the de
Chiral Britt Using these two conditions, create
Astro Alan for leave and return “Yes” or “No”.
Chiral Hamish
Astro Byron
Umbrella Patrick
Umbrella Jennie
Astro Clark
Chiral Morrison
Chiral Parkinson
Chiral Coll
on of IF, AND, and OR Functions: One more time, we have changed
. Now, an employee will be eligible for a paid leave if he or she
product costing more than 2000 and
e day delivery or the delivered product is laptop
e two conditions, create a formula to find the employees that are eligible
nd return “Yes” or “No”.
Estimated Delivery
Delivery Date First Product Cost Date Delivery Channel
1-Mar-22 Laptop $2,479.94 1-Mar-22 Delivery Van
15-Mar-22 Laptop $1,732.99 16-Mar-22 Bike
17-Mar-22 Laptop $1,174.99 18-Mar-22 Delivery Van
19-Mar-22 Laptop $1,799.99 21-Mar-22 Bike
22-Mar-22 Laptop $3,164.99 23-Mar-22 Rented Car
25-Mar-22 Laptop $1,199.00 26-Mar-22 Delivery Van
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Bike
29-Mar-22 Mobile Phone $949 29-Mar-22 Bike
2-Apr-22 Mobile Phone $429 3-Apr-22 Delivery Van
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Rented Car
11-Apr-22 Mobile Phone $475 13-Apr-22 Rented Car
17-Apr-22 Mobile Phone $449 18-Apr-22 Bike
23-Apr-22 Fitness Tracker $149.95 24-Apr-22 Delivery Van
27-Apr-22 Fitness Tracker $129.95 28-Apr-22 Bike
4-May-22 Smart Watch $399 6-May-22 Delivery Van
7-May-22 Laptop $1,799.99 7-May-22 Delivery Van
13-May-22 Smart Watch $183.90 14-May-22 Bike
15-May-22 Smart Watch $299 16-May-22 Rented Car
17-May-22 Tablet $560 19-May-22 Bike
19-May-22 Tablet $565 19-May-22 Delivery Van
Delivery Delivery Commission Commission Commission
Company Person (TASK 1) (TASK 2) (TASK 3)
Astro Sam 1% 24.7994 1%
Chiral Janet 1% 17.3299 1%
Astro Sam 7% 82.2493 7%
Chiral Leonardo 3% 53.9997 3%
Umbrella Patrick 1% 31.6499 1%
Chiral Heather 1% 11.99 1%
Astro Sam 1% 6.9995 1%
Umbrella Daniel 1% 9.49 1% TASK 1. A
Umbrella Stewart 1% 4.29 1%
Astro Sam 1% 15.25 1%
Chiral Daniel 1% 4.75 1%
Astro Sam 1% 4.49 1% TASK 2. C
Chiral Janet 1% 1.4995 1% these fun
Astro Sam 1% 1.2995 1%
Umbrella Patrick 1% 3.99 1%
Umbrella Jennie 1% 17.9999 1%
Astro Sam 1% 1.839 1% TASK 3.
Chiral Leonardo 1% 2.99 1% time, usin
Chiral Janet 1% 5.6 1%
Chiral Heather 1% 5.65 1%
>Cost Commission
$500 1%
$1,200 3%
$1,700 7%
$2,800 15%

TASK 1. Application of Nested IF: Calculate the commission rate using the nested IF.

TASK 2. Combination of IF and AND Functions: Find the commission rate by combi
these functions.

TASK 3. Application of IFS Function: Your task is to find the commission again, but t
time, using the IFS function.
using the nested IF.

ssion rate by combining

mission again, but this


Inventory Item Quantity Discount Inventory Item Quantity Is Dept 202
202-PRT-3013 76 0% 202-PRT-3013 76 1
201-FIN-1452 69 0% 201-FIN-1452 69 -
202-FIN-8206 12 10% 202-FIN-8206 12 1
201-FIN-8238 79 0% 201-FIN-8238 79 -
203-FIN-8882 16 0% 203-FIN-8882 16 -
202-PRT-9587 87 0% 202-PRT-9587 87 1
203-FIN-4614 97 0% 203-FIN-4614 97 -
201-PRT-2478 25 0% 201-PRT-2478 25 -
202-SUB-1955 14 0% 202-SUB-1955 14 1
201-SUB-8641 67 0% 201-SUB-8641 67 -
202-FIN-9069 40 10% 202-FIN-9069 40 1
202-PRT-7937 61 0% 202-PRT-7937 61 1
201-SUB-3124 70 0% 201-SUB-3124 70 -
203-SUB-4369 16 0% 203-SUB-4369 16 -
202-FIN-6273 74 10% 202-FIN-6273 74 1
203-SUB-3972 85 0% 203-SUB-3972 85 -
203-PRT-3335 84 0% 203-PRT-3335 84 -
201-SUB-1022 48 0% 201-SUB-1022 48 -
203-FIN-3507 17 0% 203-FIN-3507 17 -
203-SUB-8304 31 0% 203-SUB-8304 31 -
Is Final Assembly Discount
- 0%
1 0%
1 10%
1 0%
1 0%
- 0%
1 0%
- 0%
- 0%
- 0%
1 10%
- 0%
- 0%
- 0%
1 10%
- 0%
- 0%
- 0%
1 0%
- 0%

You might also like