

However, if the value at B2 is greater than or equal to 20, then the inner IF block is evaluated. The formula translates to – if the value at B2 is less than 20, then the text "Below Room Temperature" is returned from the outer IF block. = IF(B2 =20,B2 <=25)," Normal Room Temperature", " Above Room Temperature")) If we are able to find the 'Blue' color, then in the adjacent cell, we need to assign a 'Yes' otherwise, assign a 'No'. In this example, we have a list of colors, and we aim to find the 'Blue' color. Now, let's try to see a simple example of the Excel IF function: Example 1: Using 'equal to' comparison operator within the IF function Now, let's see some simple examples to use these comparison operators within the IF Function: Simple Examples of Excel IF Statement For example – ISBLANK, ISERROR, ISEVEN, ISODD, etc Apart from these, you can also use any other function that returns a boolean result (either 'true' or 'false').Nesting of IF statement means using one if statement within another.Ĭomparison Operators That Can Be Used With IF Statementsįollowing comparison operators can be used within the 'logic_test' argument of the IF function:


Example 10: Using the IF function along with OR Function.Example 9: Using the IF function along with AND Function.Use Of AND & OR Functions or Logical Operators with Excel IF Statement.Example 8: Using the Excel IF function to return another formula a result.Example 7: Using an Excel Logical Function within the IF formula in Excel.Example 6: Using 'less than or equal to' operator within the IF statement.Example 5: Using 'greater than' operator within the IF statement.Example 4: Using 'greater than or equal to' operator within the IF statement.Example 3: Using 'less than' operator within the IF function.Example 2: Using 'not equal to' comparison operator within the IF function.Example 1: Using 'equal to' comparison operator within the IF function.Comparison Operators That Can Be Used With IF Statements.Important Characteristics of IF Function in Excel.
