LocalExcelTool
Get started

Excel AND function

AND combines conditions with "and": all of them must hold. In practice it almost always sits inside IF's first argument — IF(AND(region="North",amount>1000),...). On its own AND only produces a TRUE/FALSE, which is rarely what you need.

Logic · Available in: Excel 97 and every desktop version since

Syntax

AND(logical1, [logical2], ...)

What it returns TRUE only when every condition is true; otherwise FALSE.

Arguments
logical1requiredThe first condition.
logical2optionalFurther conditions, up to 255.

Examples

Two conditions for a big deal

RegionAmountBig deal?
North1500
North800
South1500
= IF(AND(A2="North",B2>1000),"Yes","No")

→ Yes

The region must be North and the amount over 1000. Row 3 fails on amount and row 4 fails on region, so both return No.

Common mistakes

  • 1.Passing a range to AND: before Excel 365, AND(A2:A10>100) only evaluates the first cell — the answer looks right but only covers one row.
  • 2.AND ignores text and empty cells in a range and evaluates only numbers and booleans; if everything is ignored it returns #VALUE!.
  • 3.Expecting AND to add things up. For conditional totals use SUMIFS or COUNTIFS — AND only returns a boolean.

How to use it

  1. 1.Click the cell where the result should appear.
  2. 2.Type = then the function name, and press Tab to accept it.
  3. 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
  4. 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.

Frequently asked questions

What is the syntax of AND?

AND(logical1, [logical2], ...). What it returns: TRUE only when every condition is true; otherwise FALSE.

Which Excel versions support AND?

Excel 97 and every desktop version since. It is available in every desktop version unless the note above says otherwise.

Why does AND return an error instead of a value?

Passing a range to AND: before Excel 365, AND(A2:A10>100) only evaluates the first cell — the answer looks right but only covers one row.

Related functions

More in this group

Need to get the data in first?

← All Excel formulas