Back to Functions

AND

Returns true if all of the provided arguments are logically true, and false if any of the provided arguments are logically false.

LogicalAND(logical_expression1, [logical_expression2, ...])

The AND function in Google Sheets is a powerful tool to determine if all of the provided logical expressions are true. It returns true if all of the arguments are logically true, and false if any of the arguments are logically false. This function is commonly used to evaluate multiple conditions and make decisions based on the results.

Parameters

  • logical_expression1: The first logical expression to evaluate.
  • logical_expression2, ...: [Optional] Additional logical expressions to evaluate.

Step-by-Step Tutorial

  1. Using AND with two logical expressions:

    • Example: =AND(A1>10, B1<20)
    • Result: Returns true if the value in cell A1 is greater than 10 and the value in cell B1 is less than 20.
  2. Using AND with multiple logical expressions:

    • Example: =AND(C1="Yes", D1="No", E1="Maybe")
    • Result: Returns true if the values in cells C1, D1, and E1 are "Yes", "No", and "Maybe", respectively.

Working with a Single Value, a List, and a Range

AND accepts logical expressions one at a time, as a comma-separated list, or as a range — mix and match freely.

  • Single value: =AND(A1) — returns TRUE if A1 is TRUE, FALSE otherwise.
  • List of values: =AND(A1, A2, A3) — evaluates each cell individually and returns TRUE only if all of them are TRUE.
  • Range: =AND(A1:A3) — evaluates every cell in the range and returns TRUE only if all of them are TRUE. If A1:A3 holds TRUE, TRUE, FALSE, the result is FALSE.
  • Mixed: =AND(A1, A3:A6) — you can combine single cells and ranges in one call.

Use Cases and Scenarios

  1. Data Validation: Check if all required fields in a form are filled.
  2. Conditional Formatting: Apply formatting based on multiple conditions being met.
  3. Conditional Statements: Execute specific actions only if multiple conditions are true.

Related Functions

  • OR: Returns true if any of the provided arguments are logically true.
  • NOT: Reverses the logical value of a provided expression.

Related Articles

Newsletter

More AND examples coming soon.

We are building short, practical updates for Sheets power users.