
Similarly, the third IF statement is the value_if_false argument to the second IF statement. In this formula, the second IF statement is also the value_if_false argument to the first IF statement. (Refer Table 2a) Formula returns "Grade F", which corresponds to 36 Marks in cell A2. Basic IF function =IF(A284, "Grade A", IF(A2>=70, "Grade B", IF(A2>=55, "Grade C", IF(A2>=40, "GradeD", "Grade F")))) This formula determines the corresponding grade, of marks mentioned in cell A2. to count the number of occurrences within a range, use the the COUNTIF AND COUNTIFS functions to sum a range of values use the SUMIF AND SUMIFS functions. Excel also has some other functions which can be used to return values based on a condition viz. As alternatives to IF function and getting around its nesting limit, you can use the excel LOOKUP, VLOOKUP or HLOOKUP functions, as shown in examples below. Excel 2003 only allows 7 levels of nesting of functions, while Excel 2007 allows up to 64. The maximum number of IF functions that can be nested as value_if_true and value_if_false arguments is 64. after value_if_true there is no comma), the IF function will return FALSE. after value_if_true there is a comma and then blank before the closing paranthesis), the IF function will return zero (0). This value can also be a formula or function. value_if_false is the value that is returned by the IF function if the condition evaluates to FALSE. This value can also be a formula or function and if left blank, the function returns zero (0). value_if_true is the value that is returned by the IF function if the condition evaluates to TRUE. Any of the comparison calculation operators can be used here - these operators are: = (Equal to) > (Greater than) = (Greater than or equal to) (Not equal to).

condition is a value or expression which is tested to be True or False.

Syntax: IF(condition, value_if_true, value_if_false) 1. If a specified condition evaluates to TRUE, the IF function returns one value, and if the condition evaluates to FALSE another value is returned. Excel IF Function: The IF function is used to test if a condition is True or False. Excel IF Function and IF Statements, with Examples Related Link: If.Then.Else Statements (VBA).
