Bird
Raised Fist0
Google Sheetsspreadsheet~20 mins

AND and OR functions in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
AND & OR Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Output of combined AND and OR functions
What is the output of the formula =AND(OR(TRUE, FALSE), OR(FALSE, FALSE)) in Google Sheets?
Google Sheets
=AND(OR(TRUE, FALSE), OR(FALSE, FALSE))
AError
BTRUE
CFALSE
D0
Attempts:
2 left
💡 Hint
Remember OR returns TRUE if any argument is TRUE; AND returns TRUE only if all arguments are TRUE.
❓ Function Choice
intermediate
2:00remaining
Choose the formula that returns TRUE only if all conditions are TRUE
Which formula returns TRUE only if all three cells A1, B1, and C1 contain values greater than 10?
A=AND(A1>10, OR(B1>10, C1>10))
B=AND(A1>10, B1>10, C1>10)
C=OR(A1>10, B1>10, C1>10)
D=OR(AND(A1>10, B1>10), C1>10)
Attempts:
2 left
💡 Hint
AND requires all conditions to be TRUE; OR requires only one.
🎯 Scenario
advanced
2:30remaining
Detect if a student passes based on multiple criteria
You want to mark a student as 'Pass' if their score in Math (A2) is at least 50, and either their score in English (B2) or Science (C2) is at least 60. Which formula correctly returns TRUE for passing students?
A=AND(A2>=50, OR(B2>=60, C2>=60))
B=OR(AND(A2>=50, B2>=60), C2>=60)
C=AND(OR(A2>=50, B2>=60), C2>=60)
D=OR(A2>=50, AND(B2>=60, C2>=60))
Attempts:
2 left
💡 Hint
Passing requires Math score at least 50 AND (English OR Science score at least 60).
📊 Formula Result
advanced
2:00remaining
Result of nested AND and OR with FALSE values
What is the result of the formula =OR(AND(TRUE, FALSE), AND(FALSE, FALSE), TRUE) in Google Sheets?
Google Sheets
=OR(AND(TRUE, FALSE), AND(FALSE, FALSE), TRUE)
ATRUE
BFALSE
CError
D0
Attempts:
2 left
💡 Hint
OR returns TRUE if any argument is TRUE; AND returns TRUE only if all arguments are TRUE.
❓ data_analysis
expert
3:00remaining
Count rows where multiple conditions are met using AND and OR
You have a table with columns A (Age), B (City), and C (Membership). You want to count how many rows have Age over 30 AND (City is 'New York' OR Membership is 'Gold'). Which formula correctly counts these rows?
A=COUNTIFS(A:A, ">30", B:B, "New York") + COUNTIFS(A:A, ">30", C:C, "Gold")
B=COUNTIFS(A:A, ">30", B:B, "New York", C:C, "Gold")
C))0>)"dloG"=C:C(+)"kroY weN"=B:B((*)03>A:A((TCUDORPMUS=
D=SUMPRODUCT((A:A>30)*((B:B="New York")+(C:C="Gold")>0))
Attempts:
2 left
💡 Hint
Use SUMPRODUCT with logical tests and ensure OR condition is handled correctly.

Practice

(1/5)
1. What does the AND function do in Google Sheets?
easy
A. Returns TRUE only if all conditions are TRUE
B. Returns TRUE if at least one condition is TRUE
C. Returns FALSE if all conditions are TRUE
D. Returns the sum of all conditions

Solution

  1. Step 1: Understand the purpose of AND

    The AND function checks multiple conditions and returns TRUE only if every condition is TRUE.
  2. Step 2: Compare with other options

    Returns TRUE if at least one condition is TRUE describes OR, C and D are incorrect because AND does not return FALSE if all are TRUE or sum values.
  3. Final Answer:

    Returns TRUE only if all conditions are TRUE -> Option A
  4. Quick Check:

    AND means all TRUE = TRUE [OK]
Hint: AND needs all TRUE to return TRUE, else FALSE [OK]
Common Mistakes:
  • Confusing AND with OR
  • Thinking AND sums values
  • Assuming AND returns TRUE if any condition is TRUE
2. Which of these is the correct syntax for the OR function in Google Sheets?
easy
A. =OR(A1>5, B1<10)
B. =OR(A1>5; B1<10)
C. =OR{A1>5, B1<10}
D. =OR[A1>5, B1<10]

Solution

  1. Step 1: Recall correct function syntax

    Google Sheets uses commas to separate arguments inside parentheses for functions like OR.
  2. Step 2: Check each option

    =OR(A1>5, B1<10) uses commas and parentheses correctly. Options A, B, and D use wrong separators or brackets.
  3. Final Answer:

    =OR(A1>5, B1<10) -> Option A
  4. Quick Check:

    OR uses commas inside parentheses [OK]
Hint: Use commas inside parentheses for function arguments [OK]
Common Mistakes:
  • Using semicolons instead of commas
  • Using curly or square brackets
  • Missing parentheses
3. Given the values: A1=7, B1=3, C1=10, what is the result of =AND(A1>5, OR(B1>5, C1=10))?
medium
A. 0
B. FALSE
C. Error
D. TRUE

Solution

  1. Step 1: Evaluate inner OR function

    OR(B1>5, C1=10) means OR(3>5, 10=10) -> OR(FALSE, TRUE) -> TRUE.
  2. Step 2: Evaluate AND function

    AND(A1>5, TRUE) means AND(7>5, TRUE) -> AND(TRUE, TRUE) -> TRUE.
  3. Final Answer:

    TRUE -> Option D
  4. Quick Check:

    AND with all TRUE returns TRUE [OK]
Hint: Evaluate OR inside AND first, then combine results [OK]
Common Mistakes:
  • Evaluating AND before OR
  • Confusing TRUE and FALSE values
  • Assuming numeric values instead of logical
4. Identify the error in this formula: =AND(A1>5 OR B1<10)
medium
A. Parentheses are not needed
B. OR cannot be used inside AND
C. Missing comma between conditions inside AND
D. No error, formula is correct

Solution

  1. Step 1: Analyze formula structure

    The formula tries to combine conditions inside AND but misses a comma between A1>5 and OR B1<10.
  2. Step 2: Correct syntax for nested functions

    AND requires each condition separated by commas. The correct form is =AND(A1>5, OR(B1<10)).
  3. Final Answer:

    Missing comma between conditions inside AND -> Option C
  4. Quick Check:

    Separate conditions with commas in AND [OK]
Hint: Use commas to separate all conditions inside AND [OK]
Common Mistakes:
  • Omitting commas between arguments
  • Thinking OR can't be nested inside AND
  • Ignoring parentheses placement
5. You want to check if a student passed both Math and English (score ≥ 50) or scored above 90 in Science. Which formula correctly returns TRUE if either condition is met?
hard
A. =OR(Math>=50, English>=50, Science>90)
B. =OR(AND(Math>=50, English>=50), Science>90)
C. =AND(Math>=50, English>=50, Science>90)
D. =AND(OR(Math>=50, English>=50), Science>90)

Solution

  1. Step 1: Understand conditions

    The student passes if both Math and English scores are at least 50 (AND condition) OR if Science score is above 90.
  2. Step 2: Translate to formula

    Use AND(Math>=50, English>=50) for both passing, then OR with Science>90 to allow either condition.
  3. Final Answer:

    =OR(AND(Math>=50, English>=50), Science>90) -> Option B
  4. Quick Check:

    Use OR for either condition, AND for both subjects [OK]
Hint: Use AND inside OR to combine conditions correctly [OK]
Common Mistakes:
  • Mixing AND and OR order incorrectly
  • Using AND for all conditions instead of OR
  • Not grouping conditions properly
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard