What function in microsoft Excel is used to add a certain range of cells when condition is met

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

 logical_test: The condition that you want to check.

 value_if_true: The value to return if the condition is True.

 value_if_false: The value to return if the condition is False.

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?

  1. Select the example in this article.

    Selecting an example from Help

  2. Press CTRL+C.

  3. In Excel, create a blank workbook or worksheet.

  4. 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.

  1. 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.

Data

15

9

8

Sprockets

Widgets

Formula

Description [Result]

=AND[A2>A3, A2A3, A2

Chủ Đề