Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More...Less Testing whether conditions are true or false and making logical comparisons between expressions are common to many tasks. You can use the AND, OR, NOT, and IF functions to create
conditional formulas. For example, the IF function uses the following arguments. Formula that uses the IF function For more
information about how to create formulas, see Create or delete a formula. To do this task, use the AND, OR, and NOT functions and operators as shown in the following example.
The example may be easier to understand if you copy it to a blank worksheet.
How do I copy an example?
Select the example in this article.
Selecting an example from Help
Press CTRL+C.
In Excel, create a blank workbook or worksheet.
In the worksheet, select cell A1, and press CTRL+V.
Important: For the example to work properly, you must paste it into cell A1 of the worksheet.
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.
After you copy the example to a blank worksheet, you can adapt it to suit your needs.
|