Google Sheets AND function

Returns TRUE only when every condition holds. In Spanish Sheets it is called Y.

Syntax

English Sheets

=AND(logical_expression1, [logical_expression2], …)

Spanish Sheets (Mexico locale)

=Y(expresión_lógica1, [expresión_lógica2], …)

Spanish Sheets (Spain, Latin America)

=Y(expresión_lógica1; [expresión_lógica2]; …)

ArgumentWhat it is
logical_expression1The first condition.
logical_expression2optionalMore conditions.

Example

AND returns TRUE only when all its conditions are met. Inside IF, it requires several things at once.

=IF(AND(B2>=95,C2>=8),"Yes","No")

Common mistake

Inside ARRAYFORMULA it does not work row by row: AND collapses the whole range into one result. Multiply conditions there instead: (A2:A10>5)*(B2:B10="Yes").

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice AND

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

IF with AND

AND returns TRUE only when all its conditions are met. Inside IF, it requires several things at once.

Example=IF(AND(B2>=95,C2>=8),"Sí","No")SI = IFY = AND

The bonus ("Yes") requires attendance of 95 or more and a review of 8 or more. Otherwise, "No".

D2
ABCDE
1EmployeeAttendance %ReviewBonus
2Marisol989
3Fernando929.5
4Gabriela958
5Hugo1007.5
6Daniela978.5
7

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is AND called in Spanish?
In Spanish Google Sheets it is Y. The formula =IF(AND(B2>=95,C2>=8),"Yes","No") is written =SI(Y(B2>=95;C2>=8);"Sí";"No") (or with commas under a Mexico locale).
Why does AND use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common AND mistake?
Inside ARRAYFORMULA it does not work row by row: AND collapses the whole range into one result. Multiply conditions there instead: (A2:A10>5)*(B2:B10="Yes").