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], ...)| Argument | What it means | |
|---|---|---|
logical1 | Required | The first condition to test, such as B2>=50000, or a range of TRUE/FALSE values. |
logical2, ... | Optional | Further 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Sales | Years | |
| 2 | Maria | 52000 | 4 | TRUE |
| 3 | Tom | 61000 | 2 | |
| 4 | Priya | 38500 | 6 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Sales | Years | |
| 2 | Maria | 52000 | 4 | |
| 3 | Tom | 61000 | 2 | No bonus |
| 4 | Priya | 38500 | 6 |
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?
| A | B | C | |
|---|---|---|---|
| 1 | Invoice | Date | |
| 2 | INV-2041 | 2026-02-14 | TRUE |
| 3 | INV-2042 | 2026-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?
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Step | Done | ||
| 2 | Contract signed | TRUE | FALSE | |
| 3 | Laptop issued | TRUE | ||
| 4 | Payroll set up | FALSE | ||
| 5 | Badge printed | TRUE |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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 holdsEast.
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.
| Language | Function name |
|---|---|
| Czech | A |
| Danish | OG |
| Dutch | EN |
| Finnish | JA |
| French | ET |
| German | UND |
| Hungarian | ÉS |
| Italian | E |
| Norwegian (Bokmål) | OG |
| Polish | ORAZ |
| Portuguese (Brazil) | E |
| Portuguese (Portugal) | E |
| Russian | И |
| Spanish | Y |
| Swedish | OCH |
| Turkish | VE |
Recipes that use AND
- How to make a Gantt chart with conditional formatting in Excel
- How to use conditional formatting with a formula in Excel
- How to use IF with multiple conditions in Excel