AND Function

Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE
Functions  >  Logical  >  AND

Overview of the Excel AND Function

The Excel AND function is a logical function used to require more than one condition at the same time. AND returns either TRUE or FALSE. To test if a number in A1 is greater than zero and less than 10, use =AND(A1>0,A1<10). The AND function can be used as the logical test inside the IF function to avoid extra nested IFs, and can be combined with the OR function. For more details, see Microsoft’s official AND function documentation.

Syntax

=AND (logical1, [logical2], …)

Arguments

logical1 – The first condition or logical value to evaluate.
logical2 – [optional] The second condition or logical value to evaluate.

Version

Excel 2003 and onward

Purpose

The Excel AND function is used to check whether all logical conditions evaluate as TRUE.  Each argument must be an expression or a value that evaluates as either TRUE or FALSE.  The arguments can be constants, cell references, logical expressions or arrays.  Regardless of the number of arguments included in the AND function, there will always be a single result.  

Referring to the examples below, we can see how each function evaluates assuming that the cell A1 contains the number 25.

=AND(A1 > 5, A1 < 30) // returns TRUE
=AND(A1 > 5, A1 < 20) // returns FALSE

Examples of the Excel AND Function

To determine if the value in cell A1 is greater than or equal to 50 and less than or equal to 100, you can use:

=AND(A1 >= 50, A1 <= 100)

If you’re a teacher marking a test and you’re trying to quickly determine if a student passed or failed, you can embed the AND function into an IF function, as follows:

=IF(AND(A1 >= 50, A1 <= 100), “Pass”, “Fail”) 

The formula above will return “Pass” if the value in cell A1 is greater than or equal to 50 and less than or equal to 100.

Notes

  • The AND function supports up to 255 arguments
  • The AND function is not case sensitive
  • Text values and empty cells entered as arguments will be ignored
  • Official Documentation: For more examples and in-depth details, refer to Microsoft’s official AND function documentation.

Author

Kyle Stott

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has been consulting on and teaching best practices in Microsoft Excel to over 400 companies across 30+ countries.

Want to learn more?

Join My Excel Academy Today!

This All-Access Pass Includes:

Excel Academy Bundle

30-Day Money-Back Guarantee

Want to learn more?

Join My Excel Academy Today!

Excel Academy Bundle

All-Access Pass Includes:

30-Day Money-Back Guarantee

Excel Academy Bundle

Want to learn more?

Join My Excel Academy Today!

30-Day Money-Back Guarantee

This all-access pass includes:

Don’t hesitate – join now!

Have any questions?

View our Frequently Asked Questions or contact us!