Advertisement

The AND Function in Excel

Excel Functions
Aug 23, 2025 4 min read
AND Function in Excel

The AND function in Excel checks if multiple conditions are met and returns TRUE if only all the conditions are TRUE; otherwise, it returns FALSE.

Advertisement

Syntax:

=AND(logical1, [logical2], …)

Arguments:

  1. logical1 (required): The first condition or logical test to evaluate.
  2. logical2, … (optional): Additional conditions or logical tests up to 255 to evaluate.

Explanation of Syntax and Arguments

  • logical1: This will be the first condition you want Excel to check. For example, if you want to check if the value in cell A1 is greater than 10, you can enter A1>10.
  • logical2, …: These are the additional conditions you can specify. For instance, if you want to check if the value in the cell B1 is less than 20, you can enter B1<20.

All conditions are executed simultaneously, and the AND function will return TRUE only if all the specified conditions are TRUE. If even one condition is FALSE, the function also returns as FALSE.

How to Use the AND Function

The AND function is used most to evaluate multiple conditions in decision-making scenarios, data validation, and conditional formatting. Although the AND function doesn’t directly include operators, you can use it with logical operators like =, <, >, <=, and >= within the conditions.

Examples of AND Function

Example 1: Eligibility Check for Loan Approval

Scenario:

A bank evaluates loan applications with conditions such as the applicant’s age should be above 21, and their credit score must be above 700.

Example 1

Formula:

=AND(C3>21,D3>700)

Explanation:

The formula checks if the applicant’s age is greater than 21 in the first logic, and then their credit score is above 700. For Sarah, the age and credit score both meet our logic and the formula returned as TRUE. For Michael, the age is greater than 21, but the credit score is less than 700 and the result is FALSE.

Example 2: Attendance and Performance Check

Scenario:

A company evaluates employees for rewards and recognition where the employee should have an attendance of 90% or above and performance ratings of 4 or above.

Example 2

Formula:

=AND(C4>=90%,D4>=4)

Explanation:

The formula in this scenario first checks if the Attendance is 90% or above in the first logic, and then if the performance rating is greater than or equal to 4. For Alex, both conditions are met, so the result is TRUE. For Mia and David, you can notice either Attendance is not matching the logic or Performance Rating and the result is FALSE.

Note: When working with percentages, notice I have used the “%” symbol along with the value for accurate results.

Example 3: Conditional Formatting for Exam Results

Scenario:

A school wants to highlight students whose score is above 80 in both Math and Science.

Example 3

Formula:

=AND($C3>80, $D3>80)

Explanation:

The formula in this scenario first checks if the Marks in Maths is greater than 80 and then checks in Science. For Arjun, both conditions are met, so the result is TRUE. For Priya and Ethan, you can notice either Maths marks are less than 80 or in Science and the result is FALSE.

Example 4: Scholarship Eligibility

Scenario:

A university is providing scholarships if the student’s score is above 85 in Math, and 80 in Science, and their participation in extracurricular activities is marked as “Yes”.

Example 4

Formula:

=AND(C3>85,D3>80,E3="Yes")

Explanation:

The formula checks if all three conditions are met. Rohan meets all the conditions passed, so the result is TRUE. However, Augustin scored 85 in Math but not greater than the first logic and the result is FALSE.

Conditional Formatting to highlight with AND Function

Steps:

  • Select the range where data exists. In this scenario, it will be from B3 to D8.
  • Under the Home ribbon, navigate to Conditional Formatting and Click on New Rule.
Conditional Formatting with AND
  • Use the formula:
Excel
=AND($C3>80, $D3>80)
Conditional Formatting with AND
  • Set the format as per your requirement (e.g., fill the color with light green) and click OK.
Conditional Formatting with AND

OR
You can also refer the column E as a helper where we created in Example 2 for more dynamic control where you will change the formula in Conditional Formatting as:

Excel
=E3=TRUE

Result: Rows meeting the criteria will be highlighted.

Conditional Formatting with AND

Combining AND with Other Functions

Example 1: AND with IF for Promotion Criteria

Scenario:

An organization wants to promote employees with over 3 years of experience and a rating above 4.5

Example 1

Formula:

=IF(AND(C3>3,D3>4.5),"Yes","No")

Explanation:

The IF function combines with AND to check if both conditions are met. For Alex, the result is “Yes” instead of TRUE as we have combined AND function with IF. For Mia, it is “No” as the experience criteria have not been met.

Example 2: AND with OR for Discount Offers

Scenario:

A store wants to give discounts to their customers if they spend above $500 or purchase more than 10 items and are members.

Example 2

Formula:

=IF(AND(OR(C3>500,D3>10),E3="Yes"),"Eligible","")

Explanation:

The OR function evaluates if spending exceeds $500 or if the item purchased exceeds 10, and the AND function ensures the customer is a member. Aman qualifies and the formula returned Eligible and as Anjali does not, it returned blank.

Example 3: AND with NOT for Employee Probation

Scenario:

Employees are on probation if they haven’t completed training and their contract is not permanent.

Example 3

Formula:

=AND(NOT(C3="Yes"),D3="Temporary")

Explanation:

The NOT function checks if the training for employees is completed, and the AND function checks if the contract for employees is Temporary. Alex meets the criteria, so the result is TRUE.

The AND function is an indispensable tool when you want to evaluate multiple conditions in Excel. From eligibility checks to advanced decision-making scenarios, it simplifies logical operations and enhances your data analysis.

Advertisement

Comments (0)

Leave a Comment

Comments are moderated before publishing.

No comments yet. Be the first to comment!

Quick Tip

Press Ctrl+1 to open Format Cells dialog for any selected range.

Advertisement
Advertisement