# Excel AND function: step-by-step instructions and examples

The popular **spreadsheet program Excel included in Microsoft Office** allows you to enter numbers and text in spreadsheets to make sense of your data. Excel offers a wide range of functions which have a variety of uses, especially for worksheets containing multiple values. With **over 400 different options**, you can edit or evaluate your data automatically. Excel AND has always been one of the most popular functions. Using this function, you can define up to 255 conditions and check whether the values in your spreadsheet meet these conditions in just a few clicks. In the following, we will provide you with step-by-step instructions on how to use the Excel AND function.

## Excel AND function – TRUE or FALSE?

Excel AND is one of Excel’s logical functions which allows you to check **whether or not certain conditions have been met**. This function results in two possible return values: if all the conditions you specified have been met, Excel will output the return value “TRUE”, but if even one condition has not been met, the return value will be “FALSE”.

## Excel AND: a step-by-step explanation of how to use this function

So, you have an Excel spreadsheet containing a many values, and you wish to determine which values meet specific requirements. Performing a manual search would take a lot of time. Not to mention, the human eye can easily overlook values and is thus a possible source of error. That is why Excel provides the AND function which is great for **automatically checking whether certain conditions have been met**. In the following, you will find step-by-step instructions on how to use the Excel AND function.

### Step 1: Defining conditions

In this example, we will check which employees meet all the requirements for receiving a bonus payment. There are **two conditions**: the employee must have obtained at least three new customers and two or more contract extensions. So, for example, if an employee has obtained five new customers (i.e. more than required) but only one contract extension, they will not receive a bonus. The Excel AND function works well for this concrete example because it allows the program to optimally test whether all the conditions have been met.

[![Image: Excel example: creating a spreadsheet](https://www.ionos.com/digitalguide/fileadmin/_processed_/1/9/csm_and-excel-1_606a2c883b.webp "Excel example: creating a spreadsheet")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-1.png) Excel example: creating a spreadsheet ### Step 2: Using the Excel AND function

After entering all the values for this Excel AND example, you apply the function to the spreadsheet. For clarity’s sake, it is recommended to use a **separate column** for the function and its return value. There are **two ways** to enter the function:

#### Enter the function in the cell

You can enter the function **in the cell** where you want the **return value to be displayed**. Functions always begin with an equals sign and the name of the function. This is followed by the individually defined parameters for the function which are placed inside parentheses.

The following is the **general syntax** for the Excel AND function:

```none
=AND([logical1];[logical2];etc.)
```

Note If you use lowercase letters when writing “AND”, Excel will automatically correct the input. Therefore, you do not need to worry about using the correct capitalization.

The **logical values** are your **conditions** which are separated with a comma or semicolon depending Excel version you are using. When using Excel AND, you can enter anywhere from **two to 255 conditions** in the program. However, you should avoid using an excessive number of conditions. The more conditions a function contains, the more complex and nested it becomes. This makes it more difficult to create, check, and manage a function.

When **defining and entering** the logical values (i.e. the conditions), use the equals sign (=), greater-than sign (&gt;) and less-than sign (). In our example, logical value 1 is the condition stating that an employee must have obtained at least three new customers. The value in column B must therefore be greater than or equal to three. You define this condition by entering “B2&gt;=3”. Logical value 2 is the condition stating that the employee must have also obtained two contract extensions. This is defined by entering “C2&gt;=2”. In our example, the entire Excel function is as follows:

```none
=AND(B2>=3;C2>=2)
```

[![Image: Excel AND function: entering the function in the cell](https://www.ionos.com/digitalguide/fileadmin/_processed_/0/b/csm_and-excel-2_d3d8b3865d.webp "Excel AND function: entering the function in the cell")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-2.png) Excel AND function: entering the function in the cell Press the Enter key on your keyboard to confirm your entry. Excel will then display the resulting return value in the cell, not the function. In our example, Employee 1 only meets one of the two conditions. Therefore, the displayed return value is “FALSE”.

[![Image: Excel AND: example of the function’s return value](https://www.ionos.com/digitalguide/fileadmin/_processed_/b/9/csm_and-excel-3_3596be8bfe.webp "Excel AND: example of the function’s return value")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-3.png) Excel AND: example of the function’s return value #### Open the function using the menu

Alternatively, Excel offers the option to use a separate **dialog box** for the Excel AND function. To open this dialog box, go to “Formulas” and then select “Insert Function” in the menu or left-click on the corresponding icon located next to the formula bar.

[![Image: Excel “Insert Function” dialog box](https://www.ionos.com/digitalguide/fileadmin/_processed_/7/3/csm_and-excel-4_6649edfb79.webp "Excel “Insert Function” dialog box")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-4.png) Excel “Insert Function” dialog box Excel will then open the **“Insert Function” dialog box**. When it opens, the category “Most Recently Used” will automatically be selected. If you have recently used the Excel AND function, it will appear in the list below. If this is the case, select the “AND” function. This will highlight it in blue. Confirm your selection by clicking “**OK**”.

[![Image: “Insert Function” dialog box: Excel AND function](https://www.ionos.com/digitalguide/fileadmin/_processed_/2/8/csm_and-excel-5_5ce8d8d700.webp "“Insert Function” dialog box: Excel AND function")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-5.png) “Insert Function” dialog box: Excel AND function If the desired function is not included in the list, open the drop-down menu next to “Or select a category” and select “**All**”. Excel will then display a list of **all the available functions**. Use the arrows to scroll until you find the “AND” option. Left-click on the function. Once it is highlighted blue, confirm your selection by clicking “**OK**”.

[![Image: Selecting the Excel AND function](https://www.ionos.com/digitalguide/fileadmin/_processed_/0/e/csm_and-excel-6_2b94f1e126.webp "Selecting the Excel AND function")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-6.png) Selecting the Excel AND function Excel will then open the **“Function Arguments” dialog box**. In this dialog box, you enter each condition on a **separate line**. As you do this, the program will already display whether the conditions have been met. Once you have entered all the conditions, confirm them by left-clicking on “OK”. Excel then applies the formula and displays the resulting return value in the cell.

[![Image: Excel AND: “Function Arguments” dialog box](https://www.ionos.com/digitalguide/fileadmin/_processed_/3/3/csm_and-excel-7_1e55dd78c4.webp "Excel AND: “Function Arguments” dialog box")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-7.png) Excel AND: “Function Arguments” dialog box ### Step 3: Checking all the spreadsheet values

You do not need to manually insert the Excel AND function in each row. If the defined conditions apply to all values (all employees in our example), **Excel can apply the function to all lines in just a few clicks**.

To do this, first select the cell containing the AND function by left-clicking on it. Then, left-click on the corner of the green rectangle around the cell. Keep holding the mouse button and drag the function across all the cells where it is to be applied. In our example, this includes cells D2 (Employee 1) to D11 (Employee 10).

[![Image: Excel AND function: extending it to multiple cells](https://www.ionos.com/digitalguide/fileadmin/_processed_/7/b/csm_and-excel-8_8999135b6a.webp "Excel AND function: extending it to multiple cells")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-8.png) Excel AND function: extending it to multiple cells Excel will automatically carry the AND function over to the other cells and **adjust the formula accordingly**. The program will then check each employee to see whether they have met the conditions.

[![Image: Excel AND: example of how it is used](https://www.ionos.com/digitalguide/fileadmin/_processed_/e/d/csm_and-excel-9_5a8842ea37.webp "Excel AND: example of how it is used")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-9.png) Excel AND: example of how it is used ## Comparing expected and actual values using the IF function

Using the [IF function](https://www.ionos.com/digitalguide/online-marketing/online-sales/excel-if-then-statements/ "Excel if-then statements"), you can check whether a requested value matches an expected one. The **general syntax** for this formula is as follows:

```none
=IF(logical_test;[value_if_true];[value_if_false])
```

The IF function is very similar to the AND function. The following are the **two main differences**:

- The IF function only checks if **one of the conditions** has been met.
- You can **individually** define the **displayed return values** for the evaluation when using the IF function.

When using the Excel AND function, the possible resulting return values are “TRUE” and “FALSE”. In contrast, when using the IF function, you use the **parameters “value\_if\_true”** and **“value\_if\_false”** to define the resulting return values that Excel displays in the cell after the evaluation.

Tip The special SUMIF function can be used to add only specific values together. You can read about how to use this function in our article “The [SUMIF function](https://www.ionos.com/digitalguide/online-marketing/online-sales/sumif-in-excel/ "SUMIF in Excel") explained”.

In our example spreadsheet, the IF function is used as follows: If an employee obtains at least five new customers, they will receive a bonus of 100 euros. If the employee does not achieve this target number, their bonus will be 0 euros. This condition is defined by the following IF function:

```none
=IF(B2>=5;100;0)
```

[![Image: IF function in an Excel spreadsheet](https://www.ionos.com/digitalguide/fileadmin/_processed_/0/3/csm_and-excel-10_94c9447095.webp "IF function in an Excel spreadsheet")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-10.png) IF function in an Excel spreadsheet ## Combining the Excel AND function with the IF function

Excel allows you to combine **multiple functions in the same formula**. Combining the AND and IF functions provides **two advantages**: you can define multiple conditions and individually define what the displayed return values will be.

When you combine the two functions, the general syntax will look like the following:

```none
=IF(AND([logical1];[logical2];[logical3];etc.);[value_if_true];[value_if_false])
```

For our example, the **formula** would look like this **in practice**:

```none
=IF(AND(B2>=3;C2>=2);100;0)
```

[![Image: Combination of the Excel AND and IF functions](https://www.ionos.com/digitalguide/fileadmin/_processed_/4/d/csm_and-excel-11_8eb4b9b1b8.webp "Combination of the Excel AND and IF functions")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-11.png) Combination of the Excel AND and IF functions After confirming the combined formula in our example, we get the following results.

[![Image: Excel spreadsheet example with results](https://www.ionos.com/digitalguide/fileadmin/_processed_/f/5/csm_and-excel-12_bce63ffec9.webp "Excel spreadsheet example with results")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/and-excel-12.png) Excel spreadsheet example with results


This is a markdown version of: [https://www.ionos.com/digitalguide/online-marketing/online-sales/excel-and-function/](https://www.ionos.com/digitalguide/online-marketing/online-sales/excel-and-function/) for AI/LLM consumption.