You are on page 1of 10

IF Function

ISKANDAR
Introduction to IF

 IF function is generally used to check on a cell value


and obtain a correct answer based on two possible
variable.
Example:
 =IF(B2>50, “Pass” ,“ Fail”)
Cell Answer if it is true Answer if it is false
criteria
Nested IF

 Nested IF is used to check for a cell value based on


more than 1 criteria in a cell (BUT <= 7 times on one
cell)
 Cth:
 =IF(B2>1000,500, if(B2<200, 0,250))
Answer if it is false
1st criteria Answer if it is true 2nd
criteria

Answer if it is true
Nested IF Example
AND and OR

 AND Function is used to check on a cell value and


has to meet more than 1 criteria at a given time
 OR Function is used to check on a cell value and has
to meet either 1 or more criteria at a given time.
AND and OR Function Examples
COUNTIF

 COUNTIF is used to check on a cell range based on


a non numerical criteria ( example: item)
 Example:
 =COUNTIF(A2:A5,"apples")

range criteria

 COUNTIFS is used primarily for checking based on


more than one criteria . Example : Apples which
quantities are more than 50
CountIF example
SUMIF Function

 SUMIF is used to check on a cell range based on a


criteria and total the value
 Example:
 =SUMIF(A2:A5,">160000",B2:B5)

range Criteria Sum range


 SUMIFS is used to give a total on a given cell range
with more than 1 criteria
 Example: Sales data for Salesman Bob which is
more than 3000
SumIF Example

You might also like