If Function | And Function | Or Function. Learn how to use Excel's logical functions such as the IF, AND and OR function. The IF function checks whether a condition is met, and returns one value if TRUE and another value if FALSE. 1. Select cell C2 and enter the following function. The IF function returns Correct because the value in cell A1 is higher than 10. The AND Function returns TRUE if all conditions are true and returns FALSE if any of the conditions are false. 1. Select cell D2 and enter the following formula.