Sei sulla pagina 1di 12

AND OR

"AND" checks if all arguments are true and returns


TRUE value else returns FALSE value.
"OR" checks if any of the conditions are true or not
and returns TRUE value else returns FALSE value.

=AND(Logical 1, Logical 2, Logical 3, and so on..)


=OR(Logical 1, Logical 2, Logical 3, and so on..)
Example

Maths score =100 >75 in all subjects


Students Maths Science English Award Distinction
Student 1 99 83 85 0 1
Student 2 65 53 43 0 0
Student 3 85 80 79 0 1
Student 4 100 99 82 1 1
Student 5 45 60 30 0 0
< 35 in any one
subject
Fail
0
0
0
0
1
IF

It checks whether a condition is true or not and


on the basis of that returns a value

=if(Logical_Test, [value_if_true],
[value_if_false])
Example

"A" for >= 75


"B" for <75
Students Maths Science English Maths Grade
Student 1 99 83 85 A
Student 2 65 53 43 B
Student 3 85 80 79 A
Student 4 100 99 82 A
Student 5 45 60 30 B

Passed with Distinction


(>75)
Students Maths Science English Distinction
Student 1 99 83 85 Passed with Distinction
Student 2 65 53 43
Student 3 85 80 79 Passed with Distinction
Student 4 100 99 82 Passed with Distinction
Student 5 45 60 30
"A" for >= 85 "A" for >= 85
"B" for >=60 "B" for >=60
"C" for < 60 "C" for < 60
Science Grade English Grade
B
C
B
A
B

Promoted to next class


(<35)
Fail
Promoted to next class
Promoted to next class
Promoted to next class
Promoted to next class
Failed
COUNTIF

This function returns the count of number of


cells which consist of numbers and meet a given
condition

=COUNTIF(Range,Criteria)
Example

Students Maths Science English Maths Grade Science Grade


Student 1 99 83 85 A B
Student 2 65 53 43 B C
Student 3 85 80 79 A B
Student 4 100 99 82 A A
Student 5 45 60 30 B B

Counts

Grade Maths Science English


A 3 1 1
B 2 3 2
C 0 1 2

Number of Distinctions

Criteria
>90 0
English Grade
A
C
B
B
C
SUMIF

This function returns the sum of the cells which


meet a given criteria

=SUMIF(Range, Criteria, [sum_range])


Example

Students Maths Science English Award Distinction Fail


Student 1 99 83 85 0 1 0
Student 2 65 53 43 0 0 0
Student 3 85 80 79 0 1 0
Student 4 100 99 82 1 1 0
Student 5 45 60 30 0 0 1

Sum of marks obtained by Promoted students

Fail Maths Science English


0 349 315 289

Potrebbero piacerti anche