Syntax
| Parameter | Description |
|---|---|
| logical1 | Parameter of the AND function. |
| [logical2 | (Optional.) Parameter of the AND function. |
| ...] | Parameter of the AND function. |
Examples
Check if score is in a range
=IF(AND(B2>=80, B2<=90), "B Grade", "Other")
Verify all fields are filled
=IF(AND(A2<>"", B2<>"", C2<>""), "Complete", "Incomplete")
Multiple criteria for bonus
=IF(AND(C2>50000, D2>=4), C2*0.05, 0)
Common Errors
One of the conditions evaluates to a text string instead of TRUE/FALSE. Make sure all arguments are logical comparisons.
Tips
In most spreadsheets, AND evaluates all conditions even if the first is FALSE. This differs from programming languages.
Use AND in conditional formatting rules to highlight rows meeting multiple criteria simultaneously.
AND supports many conditions: =AND(A1>0, B1>0, C1>0, D1>0) checks all four at once.
Try AND in Viztab
Import your data and use AND with 370+ other formulas. No signup required.
Open Viztab