Logical & Count Functions
Logical & Count Functions
LOGICAL FUNCTIONS
1.AND
Syntax: = AND (logical 1, logical 2 ...)
Returns TRUE if all its arguments are TRUE; returns FALSE if one or
more argument is FALSE.
Logical1, logical2 ... are 1 to 30 conditions you want to test that can be
either TRUE or FALSE.
2. OR
Syntax: = OR (logical1, logical2...)
1
K’the king
3.IF
Syntax: = IF (logical_test, value_if_true, value_if_false)
A2 A3 A4
4.NOT
Syntax : = NOT ( logical )
Reverses the value of its argument. Use NOT when you want to
make sure a value is not equal to one particular value.
COUNTING FUNCTIONS
2
K’the king
A B C D E
1 EXAM CLEARED MARK
ROLL NO NAME DATE OR NOT ? S
1/12/20
2 1 C 09 # 20
2/12/20
3 2 C++ 09 23
3/12/20
4 3 JAVA 09 # 53
4/12/20
5 4 VB 09 48
5/12/20
6 5 VB .NET 09 # 72
7 6
8 COUNT 0 5 0 5
9 COUNTA 5 5 3 5
COUNTBLA
10 NK 1 1 3 1
11 COUNTIF 3
1.COUNT
Syntax: = COUNT (value1, value2...)
Counts the number of cells that contain numbers and also numbers within the
list of arguments. Use COUNT to get the number of entries in a number field that's in
a range or array of numbers.
Value1, value2 ... are 1 to 30 arguments that can contain or refer to a variety
of different types of data, but only numbers are counted.
2.COUNTA
Syntax: = COUNTA (value1, value2...)
Counts the number of cells that are not empty and the values within the list of
arguments. Use COUNTA to count the number of cells that contain data in a range
or array.
Value1, value2 ... are 1 to 30 arguments representing the values you want to
count. In this case, a value is any type of information, including empty text ("") but
not including empty cells. If an argument is an array or reference, empty cells within
3
K’the king
the array or reference are ignored. If you do not need to count logical values, text, or
error values, use the COUNT function.
3.COUNTBLANK
Syntax: = COUNTBLANK (range)
Range : is the range from which you want to count the blank
cells.
Cells with formulas that return "" (empty text) are also counted.
Cells with zero values are not counted.
4.COUNTIF
Syntax : = COUNTIF ( range, criteria )
Counts the number of cells within a range that meet the given
criteria.
Range is the range of cells from which you want to count cells.