


Naturally, you are not limited to using only two AND/OR functions in your IF formulas. The screenshot below indicates that we've done the formula right: As the result, you get the following IF formula with multiple AND / OR conditions: Then, use the OR function for the logical test of IF and supply the desired value_if_true and value_if_false values. If either of the conditions is met, the final exam is deemed passed.Īt first sight, the formula seems a little tricky, but in fact it is not! You just express each of the above conditions as an AND statement and nest them in the OR function (since it's not necessary to meet both conditions, either will suffice): In our sample table, suppose you have the following criteria for checking the exam results: If your task requires evaluating several sets of multiple conditions, you will have to utilize both AND & OR functions at a time. More formula examples can be found in Excel IF OR function. a cell can be "this" or "that"), then you can build a more compact formula using an array constant.įor example, to mark a sale as "closed" if cell B2 is either "delivered" or "paid", the formula is: In case you are creating a multiple IF statement with text and testing a value in one cell with the OR logic (i.e. The generic formula of Excel IF with two or more conditions is this: Excel IF statement with multiple conditions (AND logic) To better illustrate the point, let's investigate some real-life formulas examples.

OR function - returns TRUE if any single condition is met FALSE otherwise.AND function - returns TRUE if all the conditions are met FALSE otherwise.Consequently, in the logical test of your IF formula, you should use one of these functions: In essence, there are two types of the IF formula with multiple criteria based on the AND / OR logic.
If then formula excel 2013 how to#
How to use IF function with multiple conditions
