Google Sheets function · Logical
AND in Google Sheets: syntax and examples
AND checks several conditions and returns TRUE only if all of them are true. You rarely show its result directly: it usually sits inside IF, FILTER or conditional formatting.
Syntax
AND(logical_expression1, [logical_expression2, ...])
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
logical_expression1 | boolean | yes | A condition, a cell or a range that should evaluate to TRUE or FALSE. |
logical_expression2, ... | boolean | no | More conditions. AND returns TRUE only when every one of them is TRUE. |
Examples
The examples use this table, starting in A1:
| Order | Paid | Amount | Country |
| GT-1 | True | 250 | RO |
| GT-2 | False | 90 | RO |
| GT-3 | True | 40 | BG |
| GT-4 | True | 120 | RO |
=AND(B2, C2>100)Result: TRUE
Paid and above 100: both conditions hold for the first order.
Run in a Google Sheet (English US locale) on .
=AND(B3, C3>100)Result: FALSE
One false condition is enough for FALSE: the second order is unpaid.
Run in a Google Sheet (English US locale) on .
=IF(AND(B4, D4="RO"), "ship", "hold")Result: hold
AND inside IF: ship only paid orders going to Romania.
Run in a Google Sheet (English US locale) on .
=AND(B2:B5)Result: FALSE
A whole range: TRUE only if every cell in it is TRUE. One unpaid order makes it FALSE.
Run in a Google Sheet (English US locale) on .
=AND(C5>=100, C5<=200)Result: TRUE
A between test: the amount is from 100 to 200 inclusive.
Run in a Google Sheet (English US locale) on .
Common errors
- AND always returns one value. ARRAYFORMULA(AND(C2:C5>100)) does not give a TRUE or FALSE per row; it collapses the whole column into a single FALSE. For a per-row test, multiply the conditions: (B2:B5)*(C2:C5>100).
- A text cell that is not TRUE or FALSE returns #VALUE!, for example AND(A2) on an order code.
- Several ranges are combined into one answer, not compared pair by pair.
Compared with Excel
Same syntax and behaviour as AND in Excel.