Logical function

AND function

Returns TRUE only when every condition you give it is TRUE, and FALSE as soon as any one of them is FALSE.

Available in All versions of Excel, including Microsoft 365, Excel for the web and Excel for Mac

In every Excel versionWorks in Google Sheets

Syntax

AND(logical1, [logical2], ...)
ArgumentWhat it means
logical1RequiredThe first condition to test, such as B2>=50000, or a range of TRUE/FALSE values.
logical2, ...OptionalFurther conditions, up to 255 in total. Each must work out to TRUE or FALSE (or a number, where 0 counts as FALSE).

Returns: TRUE if all conditions are TRUE, otherwise FALSE.

How AND works

AND is the "all of these must be true" test. You hand it two or more conditions and it gives back a single TRUE or FALSE: TRUE only if every one of the conditions holds. Think of a bonus rule like "sales of at least 50,000 and at least three years with the company" — one failed condition is enough to turn the whole answer into FALSE.

On its own AND just shows TRUE or FALSE in a cell, which is useful for quick checks and filters. Most of the time, though, it sits inside IF as the test: =IF(AND(...), "Yes", "No"). It is also the natural way to write a rule for conditional formatting or data validation that depends on several cells at once.

Each argument can be a comparison (C2>=3), a cell holding TRUE or FALSE, or a whole range of them. Inside a range, text and empty cells are skipped; numbers count, with 0 treated as FALSE and any other number as TRUE. If nothing in the arguments is a logical value at all, AND returns #VALUE! instead of guessing.

Examples

1Check whether a salesperson qualifies for a bonus

D2fx=AND(B2>=50000, C2>=3)
ABCD
1NameSalesYears
2Maria520004TRUE
3Tom610002
4Priya385006

Result: TRUE

Maria sold 52,000 (at least 50,000) and has 4 years (at least 3), so both tests pass and AND returns TRUE. Copied down, Tom gets FALSE (only 2 years) and Priya gets FALSE (sales too low).

2Turn the test into a readable label with IF

D3fx=IF(AND(B3>=50000, C3>=3), "Bonus", "No bonus")
ABCD
1NameSalesYears
2Maria520004
3Tom610002No bonus
4Priya385006

Result: No bonus

Tom's sales are high, but with 2 years he fails the second condition. AND returns FALSE, so IF shows its third argument, No bonus.

3Is a date inside the first quarter?

C2fx=AND(B2>=DATE(2026,1,1), B2<=DATE(2026,3,31))
ABC
1InvoiceDate
2INV-20412026-02-14TRUE
3INV-20422026-04-02

Result: TRUE

A range check needs two comparisons: on or after 1 January and on or before 31 March. 14 February passes both. For INV-2042 (2 April) the second test fails and the result is FALSE.

4Are all checklist items ticked?

D2fx=AND(B2:B5)
ABCD
1StepDone
2Contract signedTRUEFALSE
3Laptop issuedTRUE
4Payroll set upFALSE
5Badge printedTRUE

Result: FALSE

Given a range of TRUE/FALSE values, AND checks all of them. One step (payroll) is still FALSE, so the onboarding is not complete.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 18 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!None of the arguments contains a logical value — for example a range that holds only text or only empty cells.Point AND at comparisons (B2:B5="Yes") or at cells that really contain TRUE/FALSE, not the words typed as text.
#NAME?Text in a condition is not wrapped in quotes, e.g. B2=Paid.Write B2="Paid".

Tips

  • AND evaluates every argument, so AND(B2<>0, A2/B2>1) can still return #DIV/0!. Put the risky part inside a nested IF instead.
  • Inside dynamic array formulas such as FILTER, AND collapses a whole column to one value. To combine conditions row by row, multiply them: FILTER(A2:C9, (B2:B9>100)*(C2:C9="East")).
  • Text comparisons inside AND ignore case: B2="east" is TRUE when B2 holds East.

Questions

What is the difference between AND and OR?

AND needs every condition to be TRUE. OR needs at least one. A customer who must be a member and spend 100 is an AND rule; a discount for members or big orders is an OR rule.

How many conditions can AND take?

Up to 255 arguments, and each argument can be a range, so in practice you can test thousands of cells.

Why does AND work on one row but give one answer for the whole column in FILTER?

AND always returns a single value. For row-by-row logic in array formulas use multiplication of the conditions instead.

Google Sheets

AND also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

AND in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

Recipes that use AND