0% found this document useful (0 votes)
100 views12 pages

And Or: AND (Logical 1, Logical 2, Logical 3, and So On..) OR (Logical 1, Logical 2, Logical 3, and So On..)

AND checks if all conditions are true and returns TRUE, else returns FALSE. OR checks if any condition is true and returns TRUE, else returns FALSE. IF checks if a condition is true or false and returns one value if true, and another value if false. COUNTIF counts the number of cells meeting a given criteria. SUMIF sums the values in a range if they meet a given criteria.

Uploaded by

Paras Jain
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)
100 views12 pages

And Or: AND (Logical 1, Logical 2, Logical 3, and So On..) OR (Logical 1, Logical 2, Logical 3, and So On..)

AND checks if all conditions are true and returns TRUE, else returns FALSE. OR checks if any condition is true and returns TRUE, else returns FALSE. IF checks if a condition is true or false and returns one value if true, and another value if false. COUNTIF counts the number of cells meeting a given criteria. SUMIF sums the values in a range if they meet a given criteria.

Uploaded by

Paras Jain
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/ 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

You might also like