0% found this document useful (0 votes)
41 views10 pages

And or Assignment (Shaik Shoaib 2152)

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)
41 views10 pages

And or Assignment (Shaik Shoaib 2152)

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/ 10

Excel Logical Functions Exercises

Exercise
First 01 Use of AND Function: Second
Second Delivery Delivered
Delivery First Product Cost Delivery Product Cost Person Laptop Twice
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam FALSE
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet TRUE
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam FALSE
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo FALSE
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick FALSE
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather TRUE
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet FALSE
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel FALSE
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart FALSE
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam FALSE
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel FALSE
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam FALSE
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet FALSE
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick FALSE
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam FALSE
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo FALSE
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick FALSE
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo FALSE
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet FALSE
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam FALSE
Exercise
First 02 Use of OR Function: Second
Second Delivery Laptop
Delivery First Product Cost Delivery Product Cost Person Delivered
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam TRUE
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet TRUE
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam TRUE
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo TRUE
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick TRUE
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather TRUE
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet FALSE
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel FALSE
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart FALSE
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam FALSE
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel TRUE
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam FALSE
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet TRUE
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick TRUE
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam TRUE
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo TRUE
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick FALSE
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo FALSE
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet FALSE
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam FALSE

Exercise 03 Application of NOT Function:


First Second
Second Delivery Same Day
Delivery First Product Cost Delivery Product Cost Person Delivered
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam TRUE
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet FALSE
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam FALSE
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo FALSE
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick FALSE
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather FALSE
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet FALSE
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel TRUE
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart FALSE
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam FALSE
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel FALSE
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam FALSE
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet FALSE
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick FALSE
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam FALSE
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo TRUE
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick FALSE
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo FALSE
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet FALSE
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam TRUE

Exercise
First 04 Use of XOR Function: Second Only One
Second Delivery
Delivery First Product Cost Delivery Product Cost Person Product Cost
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam <$2000
#NAME?
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet #NAME?
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam #NAME?
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo #NAME?
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick #NAME?
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather #NAME?
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet #NAME?
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel #NAME?
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart #NAME?
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam #NAME?
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel #NAME?
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam #NAME?
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet #NAME?
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick #NAME?
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam #NAME?
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo #NAME?
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick #NAME?
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo #NAME?
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet #NAME?
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam #NAME?

Exercise 05 Combination of AND, OR Function: Laptop or


Estimated Delivery Delivery Delivery Delivery Mobile
Delivery First Product Cost Date Channel Company Person Delivered by
Date
1-Mar-22 Laptop $2,479.94 1-Mar-22 Delivery Van Astro Sam Astro
15-Mar-22 Laptop $1,732.99 16-Mar-22 Bike Chiral Janet
17-Mar-22 Laptop $1,174.99 18-Mar-22 Delivery Van Astro Sam
19-Mar-22 Laptop $1,799.99 21-Mar-22 Bike Chiral Leonardo
22-Mar-22 Laptop $3,164.99 23-Mar-22 Rented Car Umbrella Patrick
25-Mar-22 Laptop $1,199.00 26-Mar-22 Delivery Van Chiral Heather
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Bike Astro Sam
29-Mar-22 Mobile Phone $949 29-Mar-22 Bike Umbrella Daniel
2-Apr-22 Mobile Phone $429 3-Apr-22 Delivery Van Umbrella Stewart
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Rented Car Astro Sam
11-Apr-22 Laptop $1,799.99 13-Apr-22 Rented Car Chiral Daniel
17-Apr-22 Mobile Phone $475 18-Apr-22 Bike Astro Sam
23-Apr-22 Mobile Phone $449 24-Apr-22 Delivery Van Chiral Janet
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Bike Astro Sam
4-May-22 Fitness Tracker $129.95 6-May-22 Delivery Van Umbrella Patrick
7-May-22 Smart Watch $399 7-May-22 Delivery Van Umbrella Jennie
13-May-22 Smart Watch $183.90 14-May-22 Bike Astro Sam
15-May-22 Smart Watch $299 16-May-22 Rented Car Chiral Leonardo
17-May-22 Tablet $560 19-May-22 Bike Chiral Janet
19-May-22 Tablet $565 19-May-22 Delivery Van Chiral Heather
Now, let’s state the exercise problems. For a delivery person to be paid, they
must deliver two items in a single slot. This single slot means delivery in the
same row. If delivery is not possible on the same date, then it is fulfilled at a
later date. So on each row of the data, there will be two product deliveries.
This is applicable for the first four exercises.

Exercise 01 Use of AND Function: The delivered products are given. Your
task is to find the number of occurrences where two laptops delivered in a
single slot (same row). The output will be true or false.
Exercise 02 Use of OR Function: Find when a laptop is delivered.
Again, the output will be true or false.
Exercise 03 Application of NOT Function: Check if the second
delivery is on the same date as the first delivery. The output will be
true or false.
Exercise 04 Use of XOR Function: Return true if only one of the
products’ cost is less than $2,000. Again, the output will be true or
false.
Exercise 05 Combination of AND, OR Function: In this exercise,
your task is to return true whenever a laptop or mobile phone is
delivered by the “Astro” company.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy