You are on page 1of 22

Data Used in Formula

1
0

Formula Result Commentary


=AND(TRUE,TRUE) 1 Both values are TRUE, and hence it returns TRUE
=AND(TRUE,FALSE) 0 One value is FALSE, and hence it returns FALSE
=AND(A2,A3) 0 One value is FALSE, and hence it returns FALSE

=AND(3>1,3=3) 1 Both conditions are TRUE, and hence it returns TRUE

=AND("TRUE","TRUE") #VALUE! TRUE in double quotes is considered as TRUE by AND

=AND(3,2) 1 Any positive number is considered as TRUE by AND

=AND(0,2) 0 0 is considered FALSE by AND


Data Used in Formula
1
0

Formula Result Commentary


=OR(TRUE,FALSE) 1 One value is TRUE, and hence it returns TRUE
=OR(A2,A3) 1 One value is TRUE, and hence it returns TRUE
=OR(FALSE,FALSE) 0 None of the value is TRUE, hence it returns FALSE

=OR(3>1,3<3) 1 One of conditions is TRUE, and hence it returns TRUE

=OR("TRUE","FALSE") #VALUE! TRUE in double quotes is considered as TRUE by OR

=OR(3,2) 1 Any positive number is considered as TRUE by OR


=OR(0,0) 0 0 is considered FALSE by OR
Data Used in Formula
20

Formula Result Commentary


=NOT(TRUE) 0 Reverse the TRUE to FALSE
=NOT(A2>10) 0 Reverse the condition that returns TRUE to FALSE
Any non-zero integer is considered TRUE, and NOT
=NOT(1) 0
reverses it to FALSE
=NOT(0) 1 0 is considered FALSE, and NOT reverses it to TRUE
Formula Result Commentary
=TRUE() 1 TRUE formula takes no arguments
=TRUE 1 It works even if the parentheses are not added
Formula Result Commentary
=FALSE() 0 FALSE formula takes no arguments
=FALSE 0 It works even if the parentheses are not added
Data Used in Formula
20

Formula Result Commentary


Since the condition is TRUE, it returns the value for
=IF(A2>10,"RIGHT","WRONG") RIGHT
TRUE (which is the text "RIGHT")

=IF(A2>10,,"WRONG") 0 If the value for TRUE is omitted, it returns a 0 when


the IF condition is TRUE

=IF(A2<10,"RIGHT") 0 If the value for FALSE is omitted, it returns FALSE


when the IF condition is FALSE
If the value for FALSE is omitted (but the comma is
=IF(A2<10,"RIGHT",) 0 still there), it returns a 0 [Note the difference from
above]
Data Used in Formula
100
10
0

Formula Result Commentary


The value is not an error, and hence the result is
=IFERROR(A2/A3,"Error") 10
displayed

=IFERROR(A3/A4,"Error") Error The value is an error, and hence the text Error is
displayed
If nothing is specified in case of error, it returns a 0.
=IFERROR(A3/A4,) 0 Note that there should be a comma though, else it
gives an error
Data Used in Formula

#DIV/0!
#N/A
2
1
Hello

Formula Result Commentary


=ISBLANK(A2) 1 Checks if the value is blank
=ISERROR(A3) 1 Checks if the value is an error
=ISNA(A4) 1 Checks if the value is an #N/A error
=ISNUMBER(A5) 1 Checks if the value is a number
=ISODD(A6) 1 Checks if the value is odd
=ISEVEN(A5) 1 Checks if the value is even
=ISTEXT(A7) 1 Checks if the value is text
Stu Name Marks Grade
Name 1 87 A
Name 2 45 C
Name 3 89 A
Name 4 23 D
Name 5 22 D
Name 6 58 B
Name 7 99 A
Name 8 87 A
Name 9 11 D
Marks Grade
< 30 D
30 - 50 C
51 - 80 B
81 - 100 A
Sales Target 1500

Item Name Total Sale


Item 1 1000
Item 2 2000
Item 3 1500
Item 4 1000
Item 5 5000
Item 6 2000
Item 7 1500
NESTED IF IFS
Higher | Lower | Equal Higher | Lower | Equal
Lower Lower
Higher Higher
Equal Equal
Lower Lower
Higher Higher
Higher Higher
Equal Equal
S. No. Values ISNA
1 #N/A 1
2 Ravinder kannoujiya 0
3 #DIV/0! 0
4 5/26/2018 0
5 #DIV/0 0
6 1:08 PM 0
7 #N/A 1
8 9999616615 0
9 0
10 #NUM! 0
Name Amount Vlookup ISNA ISNAVLOOKUP
Kavita 25000 Kavita 25000 0 0
Hansa 18000 Hansa 18000 0 0
Mamta 64000 Manu #N/A 1 1
Raman 35000 Raman 35000 0 0
Suraj 12000 Sman #N/A 1 1
Name Amount Vlookup ISNA ISNAVLOOKUP
Kavita 25000 Kavita 25000 25000 25000
Hansa 18000 Hansa 18000 18000 18000
Mamta 64000 Manu #N/A Wrong Data Wrong Data
Raman 35000 Raman 35000 35000 35000
Suraj 12000 Sman #N/A Wrong Data Wrong Data

You might also like