

Instructions apply to Excel 2019, 2016, 2013, 2010 Excel for Mac, Excel for Microsoft 365, and Excel Online. This article explains five different ways to use conditional formatting in Excel.
#OUTLOOK CONDITIONAL FORMATTING NOT STATEMENT HOW TO#
If the value in cell A2 is not equal to the value in A3 or the value in A2 is not equal to the value in A4, return "OK." Otherwise, return "Not OK." (OK)įor more information about how to use these functions, see IF function, AND function, and OR function. If the value in cell A5 is not equal to "Sprockets" or the value in A6 is not equal to "Widgets", return "OK." Otherwise, return "Not OK." (Not OK) If the value in cell A2 is not equal to A3 and the value in A2 is also not equal to the value in A4, return "OK." Otherwise, return "Not OK." (OK)

If the value in cell A5 is not equal to "SPROCKETS", return "OK." Otherwise, return "Not OK." (Not OK) If the value in cell A2 is not equal to 15, return "OK." Otherwise, return "Not OK." (Not OK) If the value in cell A2 equals 15, return "OK." Otherwise, return "Not OK." (OK) To do this task, use the IF, AND, and OR functions and operators as shown in the following example. Top of Page Create a conditional formula that results in another calculation or in values other than TRUE or FALSE =AND(A2>A3, A2A3, A2"Sprockets",A6 = "Widgets")ĭetermines if the value in cell A5 is not equal to "Sprockets" or if the value in A6 is equal to "Widgets." (TRUE)įor more information about how to use these functions, see AND function, OR function, and NOT function. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.Īfter you copy the example to a blank worksheet, you can adapt it to suit your needs. Important: For the example to work properly, you must paste it into cell A1 of the worksheet.

The example may be easier to understand if you copy it to a blank worksheet. To do this task, use the AND, OR, and NOT functions and operators as shown in the following example. What do you want to do?Ĭreate a conditional formula that results in a logical value (TRUE or FALSE)Ĭreate a conditional formula that results in another calculation or in values other than TRUE or FALSE Value_if_false: The value to return if the condition is False.įor more information about how to create formulas, see Create or delete a formula. Value_if_true: The value to return if the condition is True. Logical_test: The condition that you want to check. You can use the AND, OR, NOT, and IF functions to create conditional formulas.įor example, the IF function uses the following arguments. Testing whether conditions are true or false and making logical comparisons between expressions are common to many tasks. Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More.
