Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende AND and OR Functions | Logical Functions
Google Spreadsheets
course content

Contenido del Curso

Google Spreadsheets

Google Spreadsheets

1. Introduction to Google Sheets
2. Formatting of Cells and Ranges
3. Advanced Formatting of Cells
4. Sorting, Filtering and Cleaning Data
5. Creating Charts
6. Basic Functions
7. Logical Functions
8. Collaboration and Security

book
AND and OR Functions

The AND function returns TRUE if all the specified conditions are true. If even one condition is false, the function returns FALSE. AND is helpful for verifying whether a value meets multiple criteria at once.

Syntax and Examples:

AND(logical_expression1, logical_expression2,...logical\_expression2, ...)

  • logical_expression1 - A logical expression or a cell reference that evaluates to a logical value (TRUE or FALSE).
  • logical_expression2, ... - OPTIONALOPTIONAL Additional logical expressions or cell references.
Value (A)Value (B)Value (C)FormulaResultComment
5010025AND(A2 > 0, B2 > 0, C2 > 0)TRUEAll values A2, B2, and C2 are greater than 0, so the result is TRUE.
1050-5AND(A3 > 0, B3 > 0, C3 > 0)FALSEC3 is negative, so the result is FALSE.
6085200AND(A4 + B4 > 100, C4 / 2 < 120)TRUEA4 + B4 is greater than 100, and C4 divided by 2 is less than 120; result is TRUE.
1507550AND(A5 >= B5 * 2, C5 < 60, MOD(A5, C5) = 0)TRUEA5 is greater than or equal to twice B5, C5 is less than 60, and A5 is divisible by C5; result is TRUE.

OR Function

The OR function returns TRUE if any of the specified conditions are true. If all conditions are false, the function returns *FALSE. OR is used to check whether values meet at least one of multiple criteria.

Syntax and Examples:

OR(logical_expression1, logical_expression2,...logical\_expression2, ...)

  • logical_expression1 - A logical expression or a cell reference that evaluates to a logical value (TRUE or FALSE).
  • logical_expression2, ... - OPTIONALOPTIONAL Additional logical expressions or cell references.
Value (G)Value (H)Value (I)FormulaResultComment
5010025OR(G2 > 60, H2 < 110, I2 = 0)TRUECondition H2 < 110 is true, so the result is TRUE.
201530OR(G3 < H3, G3 + I3 > 50)TRUEThe second condition (G3 + I3 > 50) is true, so the result is TRUE.
20040100OR(MOD(G4, 50) = 0, H4 + I4 < 150)TRUEBoth conditions (G4 divisible by 50 and H4 + I4 < 150) are true; result is TRUE.
5812OR(LEN(G5 & H5 & I5) > 3, G5 + H5 + I5 = 30)TRUEThe condition using LEN is true because the combined string length exceeds 3.
302010OR(SQRT(G6) > 5.5, G6 / H6 * I6 > 20)TRUEThe first condition (SQRT(G6) > 5.5) is true; result is TRUE.
02550OR(ABS(G7) = 0, ROUND(H7 / I7, 2) = 0.5)TRUEThe first condition (ABS(G7) = 0) is true; result is TRUE.

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 7. Capítulo 1
We're sorry to hear that something went wrong. What happened?
some-alt