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

Using Logical Functions

Function
And
Or
Not
If

Syntax
=AND(logical1,logical2,)
=OR(logical1,logical2,)
=NOT(logical)
=IF(logical,[if true],[if false])

Exercise:
Pizza Delivery: "Hot and On-Time"
This pizza company guarantees that deliveries will be made within 30 minutes, and that the
pizza will still be "hot and fresh out of the oven" when received by the customer, else it will
be given free of charge. Based on the feedback from the customers, how many orders had
to be given free of charge?
Delivery Time
21 minutes
37 minutes
44 minutes
30 minutes
20 minutes
30 minutes
30 minutes
27 minutes
41 minutes
35 minutes
43 minutes
28 minutes
39 minutes
38 minutes
32 minutes
39 minutes
23 minutes
24 minutes
22 minutes
35 minutes
37 minutes

Pizza Temperature Free Pizza?


Warm
1
Warm
1
Cold
1
Warm
1
Warm
1
Hot
1
Cold
1
Hot
0
Hot
1
Hot
1
Hot
1
Hot
0
Cold
1
Hot
1
Warm
1
Warm
1
Warm
1
Warm
1
Hot
0
Warm
1
Hot
1

Mountain hiking: A trail guide and a slot for the pre-hike orientation has to be available
before a group of hikers can proceed to climbing the Red Mountain trail. The weather
conditions are also monitored, since the winds can get pretty violent up in the trail. Bad
weather conditions would then also result in the denying of access to hikers. Determine
whether the groups below will be able to proceed with the hike.
Group
Number

Trail Guides
available

1
2
3
4

2
0
1
3

Pre-hike
Orientation Slot
Available
Yes
No
Yes
No

Weather
Conditions
Bad
Bad
Good
Good

Can group
proceed?
No
No
Yes
No

5
6
7
8
9
10

0
3
1
0
2
2

Yes
Yes
Yes
No
Yes
No

Good
Good
Bad
Good
Bad
Bad

No
Yes
No
No
No
No

Using Statistical Functions


Function
Average
Mode
Count
CountA
Countif
Mod
Minimum
Maximum
Small
Large
Ceiling
Floor

Syntax
=AVERAGE(number1,number2,)
=MODE(number1,number2,...)
=COUNT(value1,value2,)
=COUNTA(value1,value2,...)
=COUNTIF(range,criteria)
=MOD(number,divisor)
=MIN(number1,number2,...)
=MAX(number1,number2,...)
=SMALL(array,k)
=large(array,k)
=CEILING(number,significance)
=FLOOR(number,significance)

Description
Returns the average (arithmetic mean) of its arguments
Returns the most frequently occurring or repetitive, value in an array or ra
Counts the number of cells in a range that contain numbers
Counts
number of
a range
that that
are not
empty
Counts the
the number
of cells
cells in
within
a range
meet
the given condition
Returns the remainder, after a number is divided by a divisor
Returns the smallest value in a set of values
Returns the largest value in a set of values
Returns the k-th smallest value in a data set
Returns the k-th largest value in a data set
Rounds a number up, to the nearest multiple of significance
Rounds a number down, to the nearest multiple of significance

Exercise:
Finding the Average
Age
6

45

22

30

Mode
Student
Number
1
2
3
4
5
6
7
8
9
10

Age
17
15
16
16
18
16
14
15
12
12

Numbers
Is the
Round down to
number
Round up to the
Number
the nearest
divisible by nearest multiple of 3
multiple of 5
4? (Yes/No)
198 No
198
195
12 Yes
12
10
104 Yes
105
100
58 No
60
55
80 Yes
81
80
144 Yes
144
140
64 Yes
66
60
20 Yes
21
20
48 Yes
48
45

Which age is most represented?


17

15

76 Yes
59 No
142 No
22 No
73 No
115 No
171 No
114 No
29 No
128 Yes
60 Yes
59 No
139 No
105 No
36 Yes
91 No
41 No
32 Yes
181 No
162 No
93 No
71 No
157 No
97 No
166 No
27 No
39 No
96 Yes
158 No
121 No
124 Yes
34 No
78 No
165 No
163 No

78
60
144
24
75
117
171
114
30
129
60
60
141
105
36
93
42
33
183
162
93
72
159
99
168
27
39
96
159
123
126
36
78
165
165

75
55
140
20
70
115
170
110
25
125
60
55
135
105
35
90
40
30
180
160
90
70
155
95
165
25
35
95
155
120
120
30
75
165
160

( a ) What is the smallest number? (Cells A37-A80)


( b ) What is the largest number? (Cells C37-C80)
( c ) What is the 5th smallest number? (Cells C37-C8
( d ) What is the 10th largest number? (Cells A37-C8

12
198
30
168

titive, value in an array or range of data


ntain numbers

t meet the given condition

ded by a divisor

of significance
le of significance

Average Age
18.7142857143

You might also like