SheetsLessons
Logical function

AND function in Google Sheets

AND returns TRUE only when every condition you give it is TRUE. It's mostly used inside IF to require several things at once.

Syntax

=AND(logical1, [logical2, ...])
logical1
The first condition.
logical2, ...
Optional. More conditions or ranges of TRUE/FALSE values.

Practice AND

Task 1 of 2

An applicant is approved if they are at least 21 AND have a credit score of 650 or more. Return TRUE/FALSE in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

AND examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1StudentClassScorePassed
2PriyaA92TRUE
3LeoB67FALSE
4ChloeA48FALSE
5MateoB81TRUE
6InesCFALSE
7KaiC75TRUE
Test scores (Ines missed the test)
FormulaResultWhat it shows
=AND(C2>=70, B2="A")TRUEBoth are true for Priya.
=AND(C3>=70, B3="A")FALSENeither is true for Leo.
=AND(D2:D7)FALSEDid everyone pass? Ranges of TRUE/FALSE work too.
=IF(AND(C5>=80, B5="B"), "Star", "")StarTypical use inside IF.

Tips and common mistakes

  • Each condition must be a complete comparison. =AND(C2>=70, <=100) is invalid; write =AND(C2>=70, C2<=100).

Related functions